From 51a81ad4a612af687b234c1e37134edf89861b01 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 6 Aug 2020 04:55:25 +0000 Subject: [PATCH] Generated from e5ce9c76c6fe095af71dc4fbd6a47c35c419c437 Add 2020-06-01 for web --- services/web/mgmt/2016-09-01/web/apps.go | 476 +-- .../web/appservicecertificateorders.go | 29 +- .../2016-09-01/web/appserviceenvironments.go | 102 +- .../mgmt/2016-09-01/web/appserviceplans.go | 53 +- .../web/mgmt/2016-09-01/web/billingmeters.go | 4 +- .../web/certificateregistrationprovider.go | 4 +- .../web/mgmt/2016-09-01/web/certificates.go | 12 +- services/web/mgmt/2016-09-01/web/client.go | 27 +- .../web/mgmt/2016-09-01/web/deletedwebapps.go | 4 +- .../web/mgmt/2016-09-01/web/diagnostics.go | 55 +- .../web/domainregistrationprovider.go | 4 +- services/web/mgmt/2016-09-01/web/domains.go | 27 +- services/web/mgmt/2016-09-01/web/enums.go | 1207 ++++++ services/web/mgmt/2016-09-01/web/models.go | 3523 ++++++++++------- services/web/mgmt/2016-09-01/web/provider.go | 12 +- .../mgmt/2016-09-01/web/recommendations.go | 18 +- .../2016-09-01/web/resourcehealthmetadata.go | 18 +- .../mgmt/2016-09-01/web/topleveldomains.go | 9 +- services/web/mgmt/2016-09-01/web/version.go | 2 +- 19 files changed, 3604 insertions(+), 1982 deletions(-) create mode 100644 services/web/mgmt/2016-09-01/web/enums.go diff --git a/services/web/mgmt/2016-09-01/web/apps.go b/services/web/mgmt/2016-09-01/web/apps.go index c458ba38c7bb..a7bb47d845ca 100644 --- a/services/web/mgmt/2016-09-01/web/apps.go +++ b/services/web/mgmt/2016-09-01/web/apps.go @@ -123,7 +123,6 @@ func (client AppsClient) AddPremierAddOnSender(req *http.Request) (*http.Respons func (client AppsClient) AddPremierAddOnResponder(resp *http.Response) (result PremierAddOn, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -215,7 +214,6 @@ func (client AppsClient) AddPremierAddOnSlotSender(req *http.Request) (*http.Res func (client AppsClient) AddPremierAddOnSlotResponder(resp *http.Response) (result PremierAddOn, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -303,7 +301,6 @@ func (client AppsClient) AnalyzeCustomHostnameSender(req *http.Request) (*http.R func (client AppsClient) AnalyzeCustomHostnameResponder(resp *http.Response) (result CustomHostnameAnalysisResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -393,7 +390,6 @@ func (client AppsClient) AnalyzeCustomHostnameSlotSender(req *http.Request) (*ht func (client AppsClient) AnalyzeCustomHostnameSlotResponder(resp *http.Response) (result CustomHostnameAnalysisResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -483,7 +479,6 @@ func (client AppsClient) ApplySlotConfigToProductionSender(req *http.Request) (* func (client AppsClient) ApplySlotConfigToProductionResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -574,7 +569,6 @@ func (client AppsClient) ApplySlotConfigurationSlotSender(req *http.Request) (*h func (client AppsClient) ApplySlotConfigurationSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -670,7 +664,6 @@ func (client AppsClient) BackupSender(req *http.Request) (*http.Response, error) func (client AppsClient) BackupResponder(resp *http.Response) (result BackupItem, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -770,7 +763,6 @@ func (client AppsClient) BackupSlotSender(req *http.Request) (*http.Response, er func (client AppsClient) BackupSlotResponder(resp *http.Response) (result BackupItem, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -859,7 +851,6 @@ func (client AppsClient) CreateDeploymentSender(req *http.Request) (*http.Respon func (client AppsClient) CreateDeploymentResponder(resp *http.Response) (result Deployment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -951,7 +942,6 @@ func (client AppsClient) CreateDeploymentSlotSender(req *http.Request) (*http.Re func (client AppsClient) CreateDeploymentSlotResponder(resp *http.Response) (result Deployment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1040,7 +1030,6 @@ func (client AppsClient) CreateFunctionSender(req *http.Request) (future AppsCre func (client AppsClient) CreateFunctionResponder(resp *http.Response) (result FunctionEnvelope, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1132,7 +1121,6 @@ func (client AppsClient) CreateInstanceFunctionSlotSender(req *http.Request) (fu func (client AppsClient) CreateInstanceFunctionSlotResponder(resp *http.Response) (result FunctionEnvelope, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1221,7 +1209,6 @@ func (client AppsClient) CreateInstanceMSDeployOperationSender(req *http.Request func (client AppsClient) CreateInstanceMSDeployOperationResponder(resp *http.Response) (result MSDeployStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusConflict), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1312,7 +1299,6 @@ func (client AppsClient) CreateInstanceMSDeployOperationSlotSender(req *http.Req func (client AppsClient) CreateInstanceMSDeployOperationSlotResponder(resp *http.Response) (result MSDeployStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusConflict), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1399,7 +1385,6 @@ func (client AppsClient) CreateMSDeployOperationSender(req *http.Request) (futur func (client AppsClient) CreateMSDeployOperationResponder(resp *http.Response) (result MSDeployStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusConflict), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1488,7 +1473,6 @@ func (client AppsClient) CreateMSDeployOperationSlotSender(req *http.Request) (f func (client AppsClient) CreateMSDeployOperationSlotResponder(resp *http.Response) (result MSDeployStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusConflict), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1591,7 +1575,6 @@ func (client AppsClient) CreateOrUpdateSender(req *http.Request) (future AppsCre func (client AppsClient) CreateOrUpdateResponder(resp *http.Response) (result Site, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1685,7 +1668,6 @@ func (client AppsClient) CreateOrUpdateConfigurationSender(req *http.Request) (* func (client AppsClient) CreateOrUpdateConfigurationResponder(resp *http.Response) (result SiteConfigResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1782,7 +1764,6 @@ func (client AppsClient) CreateOrUpdateConfigurationSlotSender(req *http.Request func (client AppsClient) CreateOrUpdateConfigurationSlotResponder(resp *http.Response) (result SiteConfigResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1872,7 +1853,6 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierSender(req *http func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierResponder(resp *http.Response) (result Identifier, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1965,7 +1945,6 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierSlotSender(req * func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierSlotResponder(resp *http.Response) (result Identifier, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2054,7 +2033,6 @@ func (client AppsClient) CreateOrUpdateHostNameBindingSender(req *http.Request) func (client AppsClient) CreateOrUpdateHostNameBindingResponder(resp *http.Response) (result HostNameBinding, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2146,7 +2124,6 @@ func (client AppsClient) CreateOrUpdateHostNameBindingSlotSender(req *http.Reque func (client AppsClient) CreateOrUpdateHostNameBindingSlotResponder(resp *http.Response) (result HostNameBinding, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2237,7 +2214,6 @@ func (client AppsClient) CreateOrUpdateHybridConnectionSender(req *http.Request) func (client AppsClient) CreateOrUpdateHybridConnectionResponder(resp *http.Response) (result HybridConnection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2330,7 +2306,6 @@ func (client AppsClient) CreateOrUpdateHybridConnectionSlotSender(req *http.Requ func (client AppsClient) CreateOrUpdateHybridConnectionSlotResponder(resp *http.Response) (result HybridConnection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2420,7 +2395,6 @@ func (client AppsClient) CreateOrUpdatePublicCertificateSender(req *http.Request func (client AppsClient) CreateOrUpdatePublicCertificateResponder(resp *http.Response) (result PublicCertificate, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2513,7 +2487,6 @@ func (client AppsClient) CreateOrUpdatePublicCertificateSlotSender(req *http.Req func (client AppsClient) CreateOrUpdatePublicCertificateSlotResponder(resp *http.Response) (result PublicCertificate, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2603,7 +2576,6 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnectionSender(req *http.Re func (client AppsClient) CreateOrUpdateRelayServiceConnectionResponder(resp *http.Response) (result RelayServiceConnectionEntity, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2696,7 +2668,6 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnectionSlotSender(req *htt func (client AppsClient) CreateOrUpdateRelayServiceConnectionSlotResponder(resp *http.Response) (result RelayServiceConnectionEntity, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2820,7 +2791,6 @@ func (client AppsClient) CreateOrUpdateSlotSender(req *http.Request) (future App func (client AppsClient) CreateOrUpdateSlotResponder(resp *http.Response) (result Site, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2907,7 +2877,6 @@ func (client AppsClient) CreateOrUpdateSourceControlSender(req *http.Request) (f func (client AppsClient) CreateOrUpdateSourceControlResponder(resp *http.Response) (result SiteSourceControl, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2997,7 +2966,6 @@ func (client AppsClient) CreateOrUpdateSourceControlSlotSender(req *http.Request func (client AppsClient) CreateOrUpdateSourceControlSlotResponder(resp *http.Response) (result SiteSourceControl, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -3087,7 +3055,6 @@ func (client AppsClient) CreateOrUpdateVnetConnectionSender(req *http.Request) ( func (client AppsClient) CreateOrUpdateVnetConnectionResponder(resp *http.Response) (result VnetInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -3181,7 +3148,6 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGatewaySender(req *http.Req func (client AppsClient) CreateOrUpdateVnetConnectionGatewayResponder(resp *http.Response) (result VnetGateway, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -3278,7 +3244,6 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGatewaySlotSender(req *http func (client AppsClient) CreateOrUpdateVnetConnectionGatewaySlotResponder(resp *http.Response) (result VnetGateway, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -3371,7 +3336,6 @@ func (client AppsClient) CreateOrUpdateVnetConnectionSlotSender(req *http.Reques func (client AppsClient) CreateOrUpdateVnetConnectionSlotResponder(resp *http.Response) (result VnetInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -3464,7 +3428,6 @@ func (client AppsClient) DeleteSender(req *http.Request) (*http.Response, error) func (client AppsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -3549,7 +3512,6 @@ func (client AppsClient) DeleteBackupSender(req *http.Request) (*http.Response, func (client AppsClient) DeleteBackupResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -3632,7 +3594,6 @@ func (client AppsClient) DeleteBackupConfigurationSender(req *http.Request) (*ht func (client AppsClient) DeleteBackupConfigurationResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -3718,7 +3679,6 @@ func (client AppsClient) DeleteBackupConfigurationSlotSender(req *http.Request) func (client AppsClient) DeleteBackupConfigurationSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -3806,7 +3766,6 @@ func (client AppsClient) DeleteBackupSlotSender(req *http.Request) (*http.Respon func (client AppsClient) DeleteBackupSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -3891,7 +3850,6 @@ func (client AppsClient) DeleteContinuousWebJobSender(req *http.Request) (*http. func (client AppsClient) DeleteContinuousWebJobResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -3979,7 +3937,6 @@ func (client AppsClient) DeleteContinuousWebJobSlotSender(req *http.Request) (*h func (client AppsClient) DeleteContinuousWebJobSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -4064,7 +4021,6 @@ func (client AppsClient) DeleteDeploymentSender(req *http.Request) (*http.Respon func (client AppsClient) DeleteDeploymentResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -4152,7 +4108,6 @@ func (client AppsClient) DeleteDeploymentSlotSender(req *http.Request) (*http.Re func (client AppsClient) DeleteDeploymentSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -4237,7 +4192,6 @@ func (client AppsClient) DeleteDomainOwnershipIdentifierSender(req *http.Request func (client AppsClient) DeleteDomainOwnershipIdentifierResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -4325,7 +4279,6 @@ func (client AppsClient) DeleteDomainOwnershipIdentifierSlotSender(req *http.Req func (client AppsClient) DeleteDomainOwnershipIdentifierSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -4410,7 +4363,6 @@ func (client AppsClient) DeleteFunctionSender(req *http.Request) (*http.Response func (client AppsClient) DeleteFunctionResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -4495,7 +4447,6 @@ func (client AppsClient) DeleteHostNameBindingSender(req *http.Request) (*http.R func (client AppsClient) DeleteHostNameBindingResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -4583,7 +4534,6 @@ func (client AppsClient) DeleteHostNameBindingSlotSender(req *http.Request) (*ht func (client AppsClient) DeleteHostNameBindingSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -4670,7 +4620,6 @@ func (client AppsClient) DeleteHybridConnectionSender(req *http.Request) (*http. func (client AppsClient) DeleteHybridConnectionResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -4759,7 +4708,6 @@ func (client AppsClient) DeleteHybridConnectionSlotSender(req *http.Request) (*h func (client AppsClient) DeleteHybridConnectionSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -4847,7 +4795,6 @@ func (client AppsClient) DeleteInstanceFunctionSlotSender(req *http.Request) (*h func (client AppsClient) DeleteInstanceFunctionSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -4936,7 +4883,6 @@ func (client AppsClient) DeleteInstanceProcessSender(req *http.Request) (*http.R func (client AppsClient) DeleteInstanceProcessResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -5028,7 +4974,6 @@ func (client AppsClient) DeleteInstanceProcessSlotSender(req *http.Request) (*ht func (client AppsClient) DeleteInstanceProcessSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -5113,7 +5058,6 @@ func (client AppsClient) DeletePremierAddOnSender(req *http.Request) (*http.Resp func (client AppsClient) DeletePremierAddOnResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -5201,7 +5145,6 @@ func (client AppsClient) DeletePremierAddOnSlotSender(req *http.Request) (*http. func (client AppsClient) DeletePremierAddOnSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -5287,7 +5230,6 @@ func (client AppsClient) DeleteProcessSender(req *http.Request) (*http.Response, func (client AppsClient) DeleteProcessResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -5376,7 +5318,6 @@ func (client AppsClient) DeleteProcessSlotSender(req *http.Request) (*http.Respo func (client AppsClient) DeleteProcessSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -5461,7 +5402,6 @@ func (client AppsClient) DeletePublicCertificateSender(req *http.Request) (*http func (client AppsClient) DeletePublicCertificateResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -5549,7 +5489,6 @@ func (client AppsClient) DeletePublicCertificateSlotSender(req *http.Request) (* func (client AppsClient) DeletePublicCertificateSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -5634,7 +5573,6 @@ func (client AppsClient) DeleteRelayServiceConnectionSender(req *http.Request) ( func (client AppsClient) DeleteRelayServiceConnectionResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -5722,7 +5660,6 @@ func (client AppsClient) DeleteRelayServiceConnectionSlotSender(req *http.Reques func (client AppsClient) DeleteRelayServiceConnectionSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -5807,7 +5744,6 @@ func (client AppsClient) DeleteSiteExtensionSender(req *http.Request) (*http.Res func (client AppsClient) DeleteSiteExtensionResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -5895,7 +5831,6 @@ func (client AppsClient) DeleteSiteExtensionSlotSender(req *http.Request) (*http func (client AppsClient) DeleteSiteExtensionSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -5993,7 +5928,6 @@ func (client AppsClient) DeleteSlotSender(req *http.Request) (*http.Response, er func (client AppsClient) DeleteSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -6076,7 +6010,6 @@ func (client AppsClient) DeleteSourceControlSender(req *http.Request) (*http.Res func (client AppsClient) DeleteSourceControlResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -6162,7 +6095,6 @@ func (client AppsClient) DeleteSourceControlSlotSender(req *http.Request) (*http func (client AppsClient) DeleteSourceControlSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -6247,7 +6179,6 @@ func (client AppsClient) DeleteTriggeredWebJobSender(req *http.Request) (*http.R func (client AppsClient) DeleteTriggeredWebJobResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -6335,7 +6266,6 @@ func (client AppsClient) DeleteTriggeredWebJobSlotSender(req *http.Request) (*ht func (client AppsClient) DeleteTriggeredWebJobSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -6420,7 +6350,6 @@ func (client AppsClient) DeleteVnetConnectionSender(req *http.Request) (*http.Re func (client AppsClient) DeleteVnetConnectionResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -6508,7 +6437,6 @@ func (client AppsClient) DeleteVnetConnectionSlotSender(req *http.Request) (*htt func (client AppsClient) DeleteVnetConnectionSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -6599,7 +6527,6 @@ func (client AppsClient) DiscoverRestoreSender(req *http.Request) (*http.Respons func (client AppsClient) DiscoverRestoreResponder(resp *http.Response) (result RestoreRequest, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -6694,7 +6621,6 @@ func (client AppsClient) DiscoverRestoreSlotSender(req *http.Request) (*http.Res func (client AppsClient) DiscoverRestoreSlotResponder(resp *http.Response) (result RestoreRequest, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -6778,7 +6704,6 @@ func (client AppsClient) GenerateNewSitePublishingPasswordSender(req *http.Reque func (client AppsClient) GenerateNewSitePublishingPasswordResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -6865,7 +6790,6 @@ func (client AppsClient) GenerateNewSitePublishingPasswordSlotSender(req *http.R func (client AppsClient) GenerateNewSitePublishingPasswordSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -6948,7 +6872,6 @@ func (client AppsClient) GetSender(req *http.Request) (*http.Response, error) { func (client AppsClient) GetResponder(resp *http.Response) (result Site, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7032,7 +6955,6 @@ func (client AppsClient) GetAuthSettingsSender(req *http.Request) (*http.Respons func (client AppsClient) GetAuthSettingsResponder(resp *http.Response) (result SiteAuthSettings, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7119,7 +7041,6 @@ func (client AppsClient) GetAuthSettingsSlotSender(req *http.Request) (*http.Res func (client AppsClient) GetAuthSettingsSlotResponder(resp *http.Response) (result SiteAuthSettings, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7203,7 +7124,6 @@ func (client AppsClient) GetBackupConfigurationSender(req *http.Request) (*http. func (client AppsClient) GetBackupConfigurationResponder(resp *http.Response) (result BackupRequest, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7290,7 +7210,6 @@ func (client AppsClient) GetBackupConfigurationSlotSender(req *http.Request) (*h func (client AppsClient) GetBackupConfigurationSlotResponder(resp *http.Response) (result BackupRequest, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7376,7 +7295,6 @@ func (client AppsClient) GetBackupStatusSender(req *http.Request) (*http.Respons func (client AppsClient) GetBackupStatusResponder(resp *http.Response) (result BackupItem, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7465,7 +7383,6 @@ func (client AppsClient) GetBackupStatusSlotSender(req *http.Request) (*http.Res func (client AppsClient) GetBackupStatusSlotResponder(resp *http.Response) (result BackupItem, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7550,7 +7467,6 @@ func (client AppsClient) GetConfigurationSender(req *http.Request) (*http.Respon func (client AppsClient) GetConfigurationResponder(resp *http.Response) (result SiteConfigResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7638,7 +7554,6 @@ func (client AppsClient) GetConfigurationSlotSender(req *http.Request) (*http.Re func (client AppsClient) GetConfigurationSlotResponder(resp *http.Response) (result SiteConfigResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7724,7 +7639,6 @@ func (client AppsClient) GetConfigurationSnapshotSender(req *http.Request) (*htt func (client AppsClient) GetConfigurationSnapshotResponder(resp *http.Response) (result SiteConfigResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7813,7 +7727,6 @@ func (client AppsClient) GetConfigurationSnapshotSlotSender(req *http.Request) ( func (client AppsClient) GetConfigurationSnapshotSlotResponder(resp *http.Response) (result SiteConfigResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7899,7 +7812,6 @@ func (client AppsClient) GetContinuousWebJobSender(req *http.Request) (*http.Res func (client AppsClient) GetContinuousWebJobResponder(resp *http.Response) (result ContinuousWebJob, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -7988,7 +7900,6 @@ func (client AppsClient) GetContinuousWebJobSlotSender(req *http.Request) (*http func (client AppsClient) GetContinuousWebJobSlotResponder(resp *http.Response) (result ContinuousWebJob, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -8074,7 +7985,6 @@ func (client AppsClient) GetDeploymentSender(req *http.Request) (*http.Response, func (client AppsClient) GetDeploymentResponder(resp *http.Response) (result Deployment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -8163,7 +8073,6 @@ func (client AppsClient) GetDeploymentSlotSender(req *http.Request) (*http.Respo func (client AppsClient) GetDeploymentSlotResponder(resp *http.Response) (result Deployment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -8247,7 +8156,6 @@ func (client AppsClient) GetDiagnosticLogsConfigurationSender(req *http.Request) func (client AppsClient) GetDiagnosticLogsConfigurationResponder(resp *http.Response) (result SiteLogsConfig, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -8334,7 +8242,6 @@ func (client AppsClient) GetDiagnosticLogsConfigurationSlotSender(req *http.Requ func (client AppsClient) GetDiagnosticLogsConfigurationSlotResponder(resp *http.Response) (result SiteLogsConfig, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -8420,7 +8327,6 @@ func (client AppsClient) GetDomainOwnershipIdentifierSender(req *http.Request) ( func (client AppsClient) GetDomainOwnershipIdentifierResponder(resp *http.Response) (result Identifier, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -8509,7 +8415,6 @@ func (client AppsClient) GetDomainOwnershipIdentifierSlotSender(req *http.Reques func (client AppsClient) GetDomainOwnershipIdentifierSlotResponder(resp *http.Response) (result Identifier, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -8595,7 +8500,6 @@ func (client AppsClient) GetFunctionSender(req *http.Request) (*http.Response, e func (client AppsClient) GetFunctionResponder(resp *http.Response) (result FunctionEnvelope, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -8679,7 +8583,6 @@ func (client AppsClient) GetFunctionsAdminTokenSender(req *http.Request) (*http. func (client AppsClient) GetFunctionsAdminTokenResponder(resp *http.Response) (result String, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -8765,7 +8668,6 @@ func (client AppsClient) GetFunctionsAdminTokenSlotSender(req *http.Request) (*h func (client AppsClient) GetFunctionsAdminTokenSlotResponder(resp *http.Response) (result String, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -8851,7 +8753,6 @@ func (client AppsClient) GetHostNameBindingSender(req *http.Request) (*http.Resp func (client AppsClient) GetHostNameBindingResponder(resp *http.Response) (result HostNameBinding, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -8940,7 +8841,6 @@ func (client AppsClient) GetHostNameBindingSlotSender(req *http.Request) (*http. func (client AppsClient) GetHostNameBindingSlotResponder(resp *http.Response) (result HostNameBinding, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -9028,7 +8928,6 @@ func (client AppsClient) GetHybridConnectionSender(req *http.Request) (*http.Res func (client AppsClient) GetHybridConnectionResponder(resp *http.Response) (result HybridConnection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -9118,7 +9017,6 @@ func (client AppsClient) GetHybridConnectionSlotSender(req *http.Request) (*http func (client AppsClient) GetHybridConnectionSlotResponder(resp *http.Response) (result HybridConnection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -9207,7 +9105,6 @@ func (client AppsClient) GetInstanceFunctionSlotSender(req *http.Request) (*http func (client AppsClient) GetInstanceFunctionSlotResponder(resp *http.Response) (result FunctionEnvelope, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -9293,7 +9190,6 @@ func (client AppsClient) GetInstanceMSDeployLogSender(req *http.Request) (*http. func (client AppsClient) GetInstanceMSDeployLogResponder(resp *http.Response) (result MSDeployLog, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -9381,7 +9277,6 @@ func (client AppsClient) GetInstanceMSDeployLogSlotSender(req *http.Request) (*h func (client AppsClient) GetInstanceMSDeployLogSlotResponder(resp *http.Response) (result MSDeployLog, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -9467,7 +9362,6 @@ func (client AppsClient) GetInstanceMsDeployStatusSender(req *http.Request) (*ht func (client AppsClient) GetInstanceMsDeployStatusResponder(resp *http.Response) (result MSDeployStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -9555,7 +9449,6 @@ func (client AppsClient) GetInstanceMsDeployStatusSlotSender(req *http.Request) func (client AppsClient) GetInstanceMsDeployStatusSlotResponder(resp *http.Response) (result MSDeployStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -9644,7 +9537,6 @@ func (client AppsClient) GetInstanceProcessSender(req *http.Request) (*http.Resp func (client AppsClient) GetInstanceProcessResponder(resp *http.Response) (result ProcessInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -9734,7 +9626,6 @@ func (client AppsClient) GetInstanceProcessDumpResponder(resp *http.Response) (r result.Value = &resp.Body err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound)) result.Response = autorest.Response{Response: resp} return @@ -9826,7 +9717,6 @@ func (client AppsClient) GetInstanceProcessDumpSlotResponder(resp *http.Response result.Value = &resp.Body err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound)) result.Response = autorest.Response{Response: resp} return @@ -9915,7 +9805,6 @@ func (client AppsClient) GetInstanceProcessModuleSender(req *http.Request) (*htt func (client AppsClient) GetInstanceProcessModuleResponder(resp *http.Response) (result ProcessModuleInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10009,7 +9898,6 @@ func (client AppsClient) GetInstanceProcessModuleSlotSender(req *http.Request) ( func (client AppsClient) GetInstanceProcessModuleSlotResponder(resp *http.Response) (result ProcessModuleInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10101,7 +9989,6 @@ func (client AppsClient) GetInstanceProcessSlotSender(req *http.Request) (*http. func (client AppsClient) GetInstanceProcessSlotResponder(resp *http.Response) (result ProcessInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10193,7 +10080,6 @@ func (client AppsClient) GetInstanceProcessThreadSender(req *http.Request) (*htt func (client AppsClient) GetInstanceProcessThreadResponder(resp *http.Response) (result ProcessThreadInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10288,7 +10174,6 @@ func (client AppsClient) GetInstanceProcessThreadSlotSender(req *http.Request) ( func (client AppsClient) GetInstanceProcessThreadSlotResponder(resp *http.Response) (result ProcessThreadInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10373,7 +10258,6 @@ func (client AppsClient) GetMigrateMySQLStatusSender(req *http.Request) (*http.R func (client AppsClient) GetMigrateMySQLStatusResponder(resp *http.Response) (result MigrateMySQLStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10460,7 +10344,6 @@ func (client AppsClient) GetMigrateMySQLStatusSlotSender(req *http.Request) (*ht func (client AppsClient) GetMigrateMySQLStatusSlotResponder(resp *http.Response) (result MigrateMySQLStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10544,7 +10427,6 @@ func (client AppsClient) GetMSDeployLogSender(req *http.Request) (*http.Response func (client AppsClient) GetMSDeployLogResponder(resp *http.Response) (result MSDeployLog, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10630,7 +10512,6 @@ func (client AppsClient) GetMSDeployLogSlotSender(req *http.Request) (*http.Resp func (client AppsClient) GetMSDeployLogSlotResponder(resp *http.Response) (result MSDeployLog, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10714,7 +10595,6 @@ func (client AppsClient) GetMSDeployStatusSender(req *http.Request) (*http.Respo func (client AppsClient) GetMSDeployStatusResponder(resp *http.Response) (result MSDeployStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10800,7 +10680,6 @@ func (client AppsClient) GetMSDeployStatusSlotSender(req *http.Request) (*http.R func (client AppsClient) GetMSDeployStatusSlotResponder(resp *http.Response) (result MSDeployStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10886,7 +10765,6 @@ func (client AppsClient) GetPremierAddOnSender(req *http.Request) (*http.Respons func (client AppsClient) GetPremierAddOnResponder(resp *http.Response) (result PremierAddOn, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -10975,7 +10853,6 @@ func (client AppsClient) GetPremierAddOnSlotSender(req *http.Request) (*http.Res func (client AppsClient) GetPremierAddOnSlotResponder(resp *http.Response) (result PremierAddOn, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -11061,7 +10938,6 @@ func (client AppsClient) GetProcessSender(req *http.Request) (*http.Response, er func (client AppsClient) GetProcessResponder(resp *http.Response) (result ProcessInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -11148,7 +11024,6 @@ func (client AppsClient) GetProcessDumpResponder(resp *http.Response) (result Re result.Value = &resp.Body err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound)) result.Response = autorest.Response{Response: resp} return @@ -11236,7 +11111,6 @@ func (client AppsClient) GetProcessDumpSlotResponder(resp *http.Response) (resul result.Value = &resp.Body err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound)) result.Response = autorest.Response{Response: resp} return @@ -11322,7 +11196,6 @@ func (client AppsClient) GetProcessModuleSender(req *http.Request) (*http.Respon func (client AppsClient) GetProcessModuleResponder(resp *http.Response) (result ProcessModuleInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -11413,7 +11286,6 @@ func (client AppsClient) GetProcessModuleSlotSender(req *http.Request) (*http.Re func (client AppsClient) GetProcessModuleSlotResponder(resp *http.Response) (result ProcessModuleInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -11502,7 +11374,6 @@ func (client AppsClient) GetProcessSlotSender(req *http.Request) (*http.Response func (client AppsClient) GetProcessSlotResponder(resp *http.Response) (result ProcessInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -11591,7 +11462,6 @@ func (client AppsClient) GetProcessThreadSender(req *http.Request) (*http.Respon func (client AppsClient) GetProcessThreadResponder(resp *http.Response) (result ProcessThreadInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -11683,7 +11553,6 @@ func (client AppsClient) GetProcessThreadSlotSender(req *http.Request) (*http.Re func (client AppsClient) GetProcessThreadSlotResponder(resp *http.Response) (result ProcessThreadInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -11769,7 +11638,6 @@ func (client AppsClient) GetPublicCertificateSender(req *http.Request) (*http.Re func (client AppsClient) GetPublicCertificateResponder(resp *http.Response) (result PublicCertificate, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -11858,7 +11726,6 @@ func (client AppsClient) GetPublicCertificateSlotSender(req *http.Request) (*htt func (client AppsClient) GetPublicCertificateSlotResponder(resp *http.Response) (result PublicCertificate, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -11944,7 +11811,6 @@ func (client AppsClient) GetRelayServiceConnectionSender(req *http.Request) (*ht func (client AppsClient) GetRelayServiceConnectionResponder(resp *http.Response) (result RelayServiceConnectionEntity, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12033,7 +11899,6 @@ func (client AppsClient) GetRelayServiceConnectionSlotSender(req *http.Request) func (client AppsClient) GetRelayServiceConnectionSlotResponder(resp *http.Response) (result RelayServiceConnectionEntity, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12119,7 +11984,6 @@ func (client AppsClient) GetSiteExtensionSender(req *http.Request) (*http.Respon func (client AppsClient) GetSiteExtensionResponder(resp *http.Response) (result SiteExtensionInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12208,7 +12072,6 @@ func (client AppsClient) GetSiteExtensionSlotSender(req *http.Request) (*http.Re func (client AppsClient) GetSiteExtensionSlotResponder(resp *http.Response) (result SiteExtensionInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12292,7 +12155,6 @@ func (client AppsClient) GetSitePhpErrorLogFlagSender(req *http.Request) (*http. func (client AppsClient) GetSitePhpErrorLogFlagResponder(resp *http.Response) (result SitePhpErrorLogFlag, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12378,7 +12240,6 @@ func (client AppsClient) GetSitePhpErrorLogFlagSlotSender(req *http.Request) (*h func (client AppsClient) GetSitePhpErrorLogFlagSlotResponder(resp *http.Response) (result SitePhpErrorLogFlag, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12464,7 +12325,6 @@ func (client AppsClient) GetSlotSender(req *http.Request) (*http.Response, error func (client AppsClient) GetSlotResponder(resp *http.Response) (result Site, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12548,7 +12408,6 @@ func (client AppsClient) GetSourceControlSender(req *http.Request) (*http.Respon func (client AppsClient) GetSourceControlResponder(resp *http.Response) (result SiteSourceControl, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12635,7 +12494,6 @@ func (client AppsClient) GetSourceControlSlotSender(req *http.Request) (*http.Re func (client AppsClient) GetSourceControlSlotResponder(resp *http.Response) (result SiteSourceControl, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12721,7 +12579,6 @@ func (client AppsClient) GetTriggeredWebJobSender(req *http.Request) (*http.Resp func (client AppsClient) GetTriggeredWebJobResponder(resp *http.Response) (result TriggeredWebJob, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12809,7 +12666,6 @@ func (client AppsClient) GetTriggeredWebJobHistorySender(req *http.Request) (*ht func (client AppsClient) GetTriggeredWebJobHistoryResponder(resp *http.Response) (result TriggeredJobHistory, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12900,7 +12756,6 @@ func (client AppsClient) GetTriggeredWebJobHistorySlotSender(req *http.Request) func (client AppsClient) GetTriggeredWebJobHistorySlotResponder(resp *http.Response) (result TriggeredJobHistory, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -12989,7 +12844,6 @@ func (client AppsClient) GetTriggeredWebJobSlotSender(req *http.Request) (*http. func (client AppsClient) GetTriggeredWebJobSlotResponder(resp *http.Response) (result TriggeredWebJob, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -13075,7 +12929,6 @@ func (client AppsClient) GetVnetConnectionSender(req *http.Request) (*http.Respo func (client AppsClient) GetVnetConnectionResponder(resp *http.Response) (result VnetInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -13163,7 +13016,6 @@ func (client AppsClient) GetVnetConnectionGatewaySender(req *http.Request) (*htt func (client AppsClient) GetVnetConnectionGatewayResponder(resp *http.Response) (result VnetGateway, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -13254,7 +13106,6 @@ func (client AppsClient) GetVnetConnectionGatewaySlotSender(req *http.Request) ( func (client AppsClient) GetVnetConnectionGatewaySlotResponder(resp *http.Response) (result VnetGateway, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -13343,7 +13194,6 @@ func (client AppsClient) GetVnetConnectionSlotSender(req *http.Request) (*http.R func (client AppsClient) GetVnetConnectionSlotResponder(resp *http.Response) (result VnetInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -13429,7 +13279,6 @@ func (client AppsClient) GetWebJobSender(req *http.Request) (*http.Response, err func (client AppsClient) GetWebJobResponder(resp *http.Response) (result Job, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -13518,7 +13367,6 @@ func (client AppsClient) GetWebJobSlotSender(req *http.Request) (*http.Response, func (client AppsClient) GetWebJobSlotResponder(resp *http.Response) (result Job, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -13603,7 +13451,6 @@ func (client AppsClient) GetWebSiteContainerLogsResponder(resp *http.Response) ( result.Value = &resp.Body err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent)) result.Response = autorest.Response{Response: resp} return @@ -13688,7 +13535,6 @@ func (client AppsClient) GetWebSiteContainerLogsSlotResponder(resp *http.Respons result.Value = &resp.Body err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent)) result.Response = autorest.Response{Response: resp} return @@ -13771,7 +13617,6 @@ func (client AppsClient) GetWebSiteContainerLogsZipResponder(resp *http.Response result.Value = &resp.Body err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent)) result.Response = autorest.Response{Response: resp} return @@ -13856,7 +13701,6 @@ func (client AppsClient) GetWebSiteContainerLogsZipSlotResponder(resp *http.Resp result.Value = &resp.Body err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent)) result.Response = autorest.Response{Response: resp} return @@ -13940,7 +13784,6 @@ func (client AppsClient) InstallSiteExtensionSender(req *http.Request) (future A func (client AppsClient) InstallSiteExtensionResponder(resp *http.Response) (result SiteExtensionInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusTooManyRequests), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -14029,7 +13872,6 @@ func (client AppsClient) InstallSiteExtensionSlotSender(req *http.Request) (futu func (client AppsClient) InstallSiteExtensionSlotResponder(resp *http.Response) (result SiteExtensionInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusTooManyRequests), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -14113,7 +13955,6 @@ func (client AppsClient) IsCloneableSender(req *http.Request) (*http.Response, e func (client AppsClient) IsCloneableResponder(resp *http.Response) (result SiteCloneability, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -14199,7 +14040,6 @@ func (client AppsClient) IsCloneableSlotSender(req *http.Request) (*http.Respons func (client AppsClient) IsCloneableSlotResponder(resp *http.Response) (result SiteCloneability, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -14237,6 +14077,9 @@ func (client AppsClient) List(ctx context.Context) (result AppCollectionPage, er if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "List", resp, "Failure responding to request") } + if result.ac.hasNextLink() && result.ac.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -14271,7 +14114,6 @@ func (client AppsClient) ListSender(req *http.Request) (*http.Response, error) { func (client AppsClient) ListResponder(resp *http.Response) (result AppCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -14392,7 +14234,6 @@ func (client AppsClient) ListApplicationSettingsSender(req *http.Request) (*http func (client AppsClient) ListApplicationSettingsResponder(resp *http.Response) (result StringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -14479,7 +14320,6 @@ func (client AppsClient) ListApplicationSettingsSlotSender(req *http.Request) (* func (client AppsClient) ListApplicationSettingsSlotResponder(resp *http.Response) (result StringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -14528,6 +14368,9 @@ func (client AppsClient) ListBackups(ctx context.Context, resourceGroupName stri if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackups", resp, "Failure responding to request") } + if result.bic.hasNextLink() && result.bic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -14564,7 +14407,6 @@ func (client AppsClient) ListBackupsSender(req *http.Request) (*http.Response, e func (client AppsClient) ListBackupsResponder(resp *http.Response) (result BackupItemCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -14652,6 +14494,9 @@ func (client AppsClient) ListBackupsSlot(ctx context.Context, resourceGroupName if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListBackupsSlot", resp, "Failure responding to request") } + if result.bic.hasNextLink() && result.bic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -14689,7 +14534,6 @@ func (client AppsClient) ListBackupsSlotSender(req *http.Request) (*http.Respons func (client AppsClient) ListBackupsSlotResponder(resp *http.Response) (result BackupItemCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -14827,7 +14671,6 @@ func (client AppsClient) ListBackupStatusSecretsSender(req *http.Request) (*http func (client AppsClient) ListBackupStatusSecretsResponder(resp *http.Response) (result BackupItem, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -14930,7 +14773,6 @@ func (client AppsClient) ListBackupStatusSecretsSlotSender(req *http.Request) (* func (client AppsClient) ListBackupStatusSecretsSlotResponder(resp *http.Response) (result BackupItem, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -14980,6 +14822,9 @@ func (client AppsClient) ListByResourceGroup(ctx context.Context, resourceGroupN if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListByResourceGroup", resp, "Failure responding to request") } + if result.ac.hasNextLink() && result.ac.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -15018,7 +14863,6 @@ func (client AppsClient) ListByResourceGroupSender(req *http.Request) (*http.Res func (client AppsClient) ListByResourceGroupResponder(resp *http.Response) (result AppCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -15104,6 +14948,9 @@ func (client AppsClient) ListConfigurations(ctx context.Context, resourceGroupNa if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurations", resp, "Failure responding to request") } + if result.scrc.hasNextLink() && result.scrc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -15140,7 +14987,6 @@ func (client AppsClient) ListConfigurationsSender(req *http.Request) (*http.Resp func (client AppsClient) ListConfigurationsResponder(resp *http.Response) (result SiteConfigResourceCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -15227,6 +15073,9 @@ func (client AppsClient) ListConfigurationSnapshotInfo(ctx context.Context, reso if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationSnapshotInfo", resp, "Failure responding to request") } + if result.scsic.hasNextLink() && result.scsic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -15263,7 +15112,6 @@ func (client AppsClient) ListConfigurationSnapshotInfoSender(req *http.Request) func (client AppsClient) ListConfigurationSnapshotInfoResponder(resp *http.Response) (result SiteConfigurationSnapshotInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -15352,6 +15200,9 @@ func (client AppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationSnapshotInfoSlot", resp, "Failure responding to request") } + if result.scsic.hasNextLink() && result.scsic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -15389,7 +15240,6 @@ func (client AppsClient) ListConfigurationSnapshotInfoSlotSender(req *http.Reque func (client AppsClient) ListConfigurationSnapshotInfoSlotResponder(resp *http.Response) (result SiteConfigurationSnapshotInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -15477,6 +15327,9 @@ func (client AppsClient) ListConfigurationsSlot(ctx context.Context, resourceGro if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListConfigurationsSlot", resp, "Failure responding to request") } + if result.scrc.hasNextLink() && result.scrc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -15514,7 +15367,6 @@ func (client AppsClient) ListConfigurationsSlotSender(req *http.Request) (*http. func (client AppsClient) ListConfigurationsSlotResponder(resp *http.Response) (result SiteConfigResourceCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -15635,7 +15487,6 @@ func (client AppsClient) ListConnectionStringsSender(req *http.Request) (*http.R func (client AppsClient) ListConnectionStringsResponder(resp *http.Response) (result ConnectionStringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -15722,7 +15573,6 @@ func (client AppsClient) ListConnectionStringsSlotSender(req *http.Request) (*ht func (client AppsClient) ListConnectionStringsSlotResponder(resp *http.Response) (result ConnectionStringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -15771,6 +15621,9 @@ func (client AppsClient) ListContinuousWebJobs(ctx context.Context, resourceGrou if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListContinuousWebJobs", resp, "Failure responding to request") } + if result.cwjc.hasNextLink() && result.cwjc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -15807,7 +15660,6 @@ func (client AppsClient) ListContinuousWebJobsSender(req *http.Request) (*http.R func (client AppsClient) ListContinuousWebJobsResponder(resp *http.Response) (result ContinuousWebJobCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -15895,6 +15747,9 @@ func (client AppsClient) ListContinuousWebJobsSlot(ctx context.Context, resource if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListContinuousWebJobsSlot", resp, "Failure responding to request") } + if result.cwjc.hasNextLink() && result.cwjc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -15932,7 +15787,6 @@ func (client AppsClient) ListContinuousWebJobsSlotSender(req *http.Request) (*ht func (client AppsClient) ListContinuousWebJobsSlotResponder(resp *http.Response) (result ContinuousWebJobCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -16056,7 +15910,6 @@ func (client AppsClient) ListDeploymentLogSender(req *http.Request) (*http.Respo func (client AppsClient) ListDeploymentLogResponder(resp *http.Response) (result Deployment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -16146,7 +15999,6 @@ func (client AppsClient) ListDeploymentLogSlotSender(req *http.Request) (*http.R func (client AppsClient) ListDeploymentLogSlotResponder(resp *http.Response) (result Deployment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -16195,6 +16047,9 @@ func (client AppsClient) ListDeployments(ctx context.Context, resourceGroupName if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeployments", resp, "Failure responding to request") } + if result.dc.hasNextLink() && result.dc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -16231,7 +16086,6 @@ func (client AppsClient) ListDeploymentsSender(req *http.Request) (*http.Respons func (client AppsClient) ListDeploymentsResponder(resp *http.Response) (result DeploymentCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -16319,6 +16173,9 @@ func (client AppsClient) ListDeploymentsSlot(ctx context.Context, resourceGroupN if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDeploymentsSlot", resp, "Failure responding to request") } + if result.dc.hasNextLink() && result.dc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -16356,7 +16213,6 @@ func (client AppsClient) ListDeploymentsSlotSender(req *http.Request) (*http.Res func (client AppsClient) ListDeploymentsSlotResponder(resp *http.Response) (result DeploymentCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -16442,6 +16298,9 @@ func (client AppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, res if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDomainOwnershipIdentifiers", resp, "Failure responding to request") } + if result.ic.hasNextLink() && result.ic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -16478,7 +16337,6 @@ func (client AppsClient) ListDomainOwnershipIdentifiersSender(req *http.Request) func (client AppsClient) ListDomainOwnershipIdentifiersResponder(resp *http.Response) (result IdentifierCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -16566,6 +16424,9 @@ func (client AppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListDomainOwnershipIdentifiersSlot", resp, "Failure responding to request") } + if result.ic.hasNextLink() && result.ic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -16603,7 +16464,6 @@ func (client AppsClient) ListDomainOwnershipIdentifiersSlotSender(req *http.Requ func (client AppsClient) ListDomainOwnershipIdentifiersSlotResponder(resp *http.Response) (result IdentifierCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -16689,6 +16549,9 @@ func (client AppsClient) ListFunctions(ctx context.Context, resourceGroupName st if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctions", resp, "Failure responding to request") } + if result.fec.hasNextLink() && result.fec.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -16725,7 +16588,6 @@ func (client AppsClient) ListFunctionsSender(req *http.Request) (*http.Response, func (client AppsClient) ListFunctionsResponder(resp *http.Response) (result FunctionEnvelopeCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -16848,7 +16710,6 @@ func (client AppsClient) ListFunctionSecretsSender(req *http.Request) (*http.Res func (client AppsClient) ListFunctionSecretsResponder(resp *http.Response) (result FunctionSecrets, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -16937,7 +16798,6 @@ func (client AppsClient) ListFunctionSecretsSlotSender(req *http.Request) (*http func (client AppsClient) ListFunctionSecretsSlotResponder(resp *http.Response) (result FunctionSecrets, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -16986,6 +16846,9 @@ func (client AppsClient) ListHostNameBindings(ctx context.Context, resourceGroup if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostNameBindings", resp, "Failure responding to request") } + if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -17022,7 +16885,6 @@ func (client AppsClient) ListHostNameBindingsSender(req *http.Request) (*http.Re func (client AppsClient) ListHostNameBindingsResponder(resp *http.Response) (result HostNameBindingCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -17110,6 +16972,9 @@ func (client AppsClient) ListHostNameBindingsSlot(ctx context.Context, resourceG if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostNameBindingsSlot", resp, "Failure responding to request") } + if result.hnbc.hasNextLink() && result.hnbc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -17147,7 +17012,6 @@ func (client AppsClient) ListHostNameBindingsSlotSender(req *http.Request) (*htt func (client AppsClient) ListHostNameBindingsSlotResponder(resp *http.Response) (result HostNameBindingCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -17272,7 +17136,6 @@ func (client AppsClient) ListHybridConnectionKeysSender(req *http.Request) (*htt func (client AppsClient) ListHybridConnectionKeysResponder(resp *http.Response) (result HybridConnectionKey, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -17362,7 +17225,6 @@ func (client AppsClient) ListHybridConnectionKeysSlotSender(req *http.Request) ( func (client AppsClient) ListHybridConnectionKeysSlotResponder(resp *http.Response) (result HybridConnectionKey, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -17446,7 +17308,6 @@ func (client AppsClient) ListHybridConnectionsSender(req *http.Request) (*http.R func (client AppsClient) ListHybridConnectionsResponder(resp *http.Response) (result HybridConnection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -17532,7 +17393,6 @@ func (client AppsClient) ListHybridConnectionsSlotSender(req *http.Request) (*ht func (client AppsClient) ListHybridConnectionsSlotResponder(resp *http.Response) (result HybridConnection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -17583,6 +17443,9 @@ func (client AppsClient) ListInstanceFunctionsSlot(ctx context.Context, resource if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceFunctionsSlot", resp, "Failure responding to request") } + if result.fec.hasNextLink() && result.fec.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -17620,7 +17483,6 @@ func (client AppsClient) ListInstanceFunctionsSlotSender(req *http.Request) (*ht func (client AppsClient) ListInstanceFunctionsSlotResponder(resp *http.Response) (result FunctionEnvelopeCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -17706,6 +17568,9 @@ func (client AppsClient) ListInstanceIdentifiers(ctx context.Context, resourceGr if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceIdentifiers", resp, "Failure responding to request") } + if result.aic.hasNextLink() && result.aic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -17742,7 +17607,6 @@ func (client AppsClient) ListInstanceIdentifiersSender(req *http.Request) (*http func (client AppsClient) ListInstanceIdentifiersResponder(resp *http.Response) (result AppInstanceCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -17829,6 +17693,9 @@ func (client AppsClient) ListInstanceIdentifiersSlot(ctx context.Context, resour if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceIdentifiersSlot", resp, "Failure responding to request") } + if result.aic.hasNextLink() && result.aic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -17866,7 +17733,6 @@ func (client AppsClient) ListInstanceIdentifiersSlotSender(req *http.Request) (* func (client AppsClient) ListInstanceIdentifiersSlotResponder(resp *http.Response) (result AppInstanceCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -17955,6 +17821,9 @@ func (client AppsClient) ListInstanceProcesses(ctx context.Context, resourceGrou if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcesses", resp, "Failure responding to request") } + if result.pic.hasNextLink() && result.pic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -17992,7 +17861,6 @@ func (client AppsClient) ListInstanceProcessesSender(req *http.Request) (*http.R func (client AppsClient) ListInstanceProcessesResponder(resp *http.Response) (result ProcessInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -18083,6 +17951,9 @@ func (client AppsClient) ListInstanceProcessesSlot(ctx context.Context, resource if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessesSlot", resp, "Failure responding to request") } + if result.pic.hasNextLink() && result.pic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -18121,7 +17992,6 @@ func (client AppsClient) ListInstanceProcessesSlotSender(req *http.Request) (*ht func (client AppsClient) ListInstanceProcessesSlotResponder(resp *http.Response) (result ProcessInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -18211,6 +18081,9 @@ func (client AppsClient) ListInstanceProcessModules(ctx context.Context, resourc if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessModules", resp, "Failure responding to request") } + if result.pmic.hasNextLink() && result.pmic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -18249,7 +18122,6 @@ func (client AppsClient) ListInstanceProcessModulesSender(req *http.Request) (*h func (client AppsClient) ListInstanceProcessModulesResponder(resp *http.Response) (result ProcessModuleInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -18341,6 +18213,9 @@ func (client AppsClient) ListInstanceProcessModulesSlot(ctx context.Context, res if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessModulesSlot", resp, "Failure responding to request") } + if result.pmic.hasNextLink() && result.pmic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -18380,7 +18255,6 @@ func (client AppsClient) ListInstanceProcessModulesSlotSender(req *http.Request) func (client AppsClient) ListInstanceProcessModulesSlotResponder(resp *http.Response) (result ProcessModuleInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -18469,6 +18343,9 @@ func (client AppsClient) ListInstanceProcessThreads(ctx context.Context, resourc if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessThreads", resp, "Failure responding to request") } + if result.ptic.hasNextLink() && result.ptic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -18507,7 +18384,6 @@ func (client AppsClient) ListInstanceProcessThreadsSender(req *http.Request) (*h func (client AppsClient) ListInstanceProcessThreadsResponder(resp *http.Response) (result ProcessThreadInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -18599,6 +18475,9 @@ func (client AppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, res if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListInstanceProcessThreadsSlot", resp, "Failure responding to request") } + if result.ptic.hasNextLink() && result.ptic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -18638,7 +18517,6 @@ func (client AppsClient) ListInstanceProcessThreadsSlotSender(req *http.Request) func (client AppsClient) ListInstanceProcessThreadsSlotResponder(resp *http.Response) (result ProcessThreadInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -18759,7 +18637,6 @@ func (client AppsClient) ListMetadataSender(req *http.Request) (*http.Response, func (client AppsClient) ListMetadataResponder(resp *http.Response) (result StringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -18846,7 +18723,6 @@ func (client AppsClient) ListMetadataSlotSender(req *http.Request) (*http.Respon func (client AppsClient) ListMetadataSlotResponder(resp *http.Response) (result StringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -18895,6 +18771,9 @@ func (client AppsClient) ListMetricDefinitions(ctx context.Context, resourceGrou if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitions", resp, "Failure responding to request") } + if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -18931,7 +18810,6 @@ func (client AppsClient) ListMetricDefinitionsSender(req *http.Request) (*http.R func (client AppsClient) ListMetricDefinitionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -19019,6 +18897,9 @@ func (client AppsClient) ListMetricDefinitionsSlot(ctx context.Context, resource if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitionsSlot", resp, "Failure responding to request") } + if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -19056,7 +18937,6 @@ func (client AppsClient) ListMetricDefinitionsSlotSender(req *http.Request) (*ht func (client AppsClient) ListMetricDefinitionsSlotResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -19146,6 +19026,9 @@ func (client AppsClient) ListMetrics(ctx context.Context, resourceGroupName stri if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetrics", resp, "Failure responding to request") } + if result.rmc.hasNextLink() && result.rmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -19188,7 +19071,6 @@ func (client AppsClient) ListMetricsSender(req *http.Request) (*http.Response, e func (client AppsClient) ListMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -19280,6 +19162,9 @@ func (client AppsClient) ListMetricsSlot(ctx context.Context, resourceGroupName if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricsSlot", resp, "Failure responding to request") } + if result.rmc.hasNextLink() && result.rmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -19323,7 +19208,6 @@ func (client AppsClient) ListMetricsSlotSender(req *http.Request) (*http.Respons func (client AppsClient) ListMetricsSlotResponder(resp *http.Response) (result ResourceMetricCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -19446,7 +19330,6 @@ func (client AppsClient) ListNetworkFeaturesSender(req *http.Request) (*http.Res func (client AppsClient) ListNetworkFeaturesResponder(resp *http.Response) (result NetworkFeatures, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -19535,7 +19418,6 @@ func (client AppsClient) ListNetworkFeaturesSlotSender(req *http.Request) (*http func (client AppsClient) ListNetworkFeaturesSlotResponder(resp *http.Response) (result NetworkFeatures, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -19587,6 +19469,9 @@ func (client AppsClient) ListPerfMonCounters(ctx context.Context, resourceGroupN if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPerfMonCounters", resp, "Failure responding to request") } + if result.pmcc.hasNextLink() && result.pmcc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -19626,7 +19511,6 @@ func (client AppsClient) ListPerfMonCountersSender(req *http.Request) (*http.Res func (client AppsClient) ListPerfMonCountersResponder(resp *http.Response) (result PerfMonCounterCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -19716,6 +19600,9 @@ func (client AppsClient) ListPerfMonCountersSlot(ctx context.Context, resourceGr if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPerfMonCountersSlot", resp, "Failure responding to request") } + if result.pmcc.hasNextLink() && result.pmcc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -19756,7 +19643,6 @@ func (client AppsClient) ListPerfMonCountersSlotSender(req *http.Request) (*http func (client AppsClient) ListPerfMonCountersSlotResponder(resp *http.Response) (result PerfMonCounterCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -19877,7 +19763,6 @@ func (client AppsClient) ListPremierAddOnsSender(req *http.Request) (*http.Respo func (client AppsClient) ListPremierAddOnsResponder(resp *http.Response) (result PremierAddOn, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -19964,7 +19849,6 @@ func (client AppsClient) ListPremierAddOnsSlotSender(req *http.Request) (*http.R func (client AppsClient) ListPremierAddOnsSlotResponder(resp *http.Response) (result PremierAddOn, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -20014,6 +19898,9 @@ func (client AppsClient) ListProcesses(ctx context.Context, resourceGroupName st if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcesses", resp, "Failure responding to request") } + if result.pic.hasNextLink() && result.pic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -20050,7 +19937,6 @@ func (client AppsClient) ListProcessesSender(req *http.Request) (*http.Response, func (client AppsClient) ListProcessesResponder(resp *http.Response) (result ProcessInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -20139,6 +20025,9 @@ func (client AppsClient) ListProcessesSlot(ctx context.Context, resourceGroupNam if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessesSlot", resp, "Failure responding to request") } + if result.pic.hasNextLink() && result.pic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -20176,7 +20065,6 @@ func (client AppsClient) ListProcessesSlotSender(req *http.Request) (*http.Respo func (client AppsClient) ListProcessesSlotResponder(resp *http.Response) (result ProcessInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -20263,6 +20151,9 @@ func (client AppsClient) ListProcessModules(ctx context.Context, resourceGroupNa if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessModules", resp, "Failure responding to request") } + if result.pmic.hasNextLink() && result.pmic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -20300,7 +20191,6 @@ func (client AppsClient) ListProcessModulesSender(req *http.Request) (*http.Resp func (client AppsClient) ListProcessModulesResponder(resp *http.Response) (result ProcessModuleInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -20390,6 +20280,9 @@ func (client AppsClient) ListProcessModulesSlot(ctx context.Context, resourceGro if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessModulesSlot", resp, "Failure responding to request") } + if result.pmic.hasNextLink() && result.pmic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -20428,7 +20321,6 @@ func (client AppsClient) ListProcessModulesSlotSender(req *http.Request) (*http. func (client AppsClient) ListProcessModulesSlotResponder(resp *http.Response) (result ProcessModuleInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -20515,6 +20407,9 @@ func (client AppsClient) ListProcessThreads(ctx context.Context, resourceGroupNa if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessThreads", resp, "Failure responding to request") } + if result.ptic.hasNextLink() && result.ptic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -20552,7 +20447,6 @@ func (client AppsClient) ListProcessThreadsSender(req *http.Request) (*http.Resp func (client AppsClient) ListProcessThreadsResponder(resp *http.Response) (result ProcessThreadInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -20641,6 +20535,9 @@ func (client AppsClient) ListProcessThreadsSlot(ctx context.Context, resourceGro if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListProcessThreadsSlot", resp, "Failure responding to request") } + if result.ptic.hasNextLink() && result.ptic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -20679,7 +20576,6 @@ func (client AppsClient) ListProcessThreadsSlotSender(req *http.Request) (*http. func (client AppsClient) ListProcessThreadsSlotResponder(resp *http.Response) (result ProcessThreadInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -20765,6 +20661,9 @@ func (client AppsClient) ListPublicCertificates(ctx context.Context, resourceGro if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublicCertificates", resp, "Failure responding to request") } + if result.pcc.hasNextLink() && result.pcc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -20801,7 +20700,6 @@ func (client AppsClient) ListPublicCertificatesSender(req *http.Request) (*http. func (client AppsClient) ListPublicCertificatesResponder(resp *http.Response) (result PublicCertificateCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -20889,6 +20787,9 @@ func (client AppsClient) ListPublicCertificatesSlot(ctx context.Context, resourc if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListPublicCertificatesSlot", resp, "Failure responding to request") } + if result.pcc.hasNextLink() && result.pcc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -20926,7 +20827,6 @@ func (client AppsClient) ListPublicCertificatesSlotSender(req *http.Request) (*h func (client AppsClient) ListPublicCertificatesSlotResponder(resp *http.Response) (result PublicCertificateCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -21047,7 +20947,6 @@ func (client AppsClient) ListPublishingCredentialsSender(req *http.Request) (fut func (client AppsClient) ListPublishingCredentialsResponder(resp *http.Response) (result User, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -21134,7 +21033,6 @@ func (client AppsClient) ListPublishingCredentialsSlotSender(req *http.Request) func (client AppsClient) ListPublishingCredentialsSlotResponder(resp *http.Response) (result User, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -21223,7 +21121,6 @@ func (client AppsClient) ListPublishingProfileXMLWithSecretsResponder(resp *http result.Value = &resp.Body err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK)) result.Response = autorest.Response{Response: resp} return @@ -21313,7 +21210,6 @@ func (client AppsClient) ListPublishingProfileXMLWithSecretsSlotResponder(resp * result.Value = &resp.Body err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK)) result.Response = autorest.Response{Response: resp} return @@ -21395,7 +21291,6 @@ func (client AppsClient) ListRelayServiceConnectionsSender(req *http.Request) (* func (client AppsClient) ListRelayServiceConnectionsResponder(resp *http.Response) (result RelayServiceConnectionEntity, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -21482,7 +21377,6 @@ func (client AppsClient) ListRelayServiceConnectionsSlotSender(req *http.Request func (client AppsClient) ListRelayServiceConnectionsSlotResponder(resp *http.Response) (result RelayServiceConnectionEntity, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -21531,6 +21425,9 @@ func (client AppsClient) ListSiteExtensions(ctx context.Context, resourceGroupNa if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteExtensions", resp, "Failure responding to request") } + if result.seic.hasNextLink() && result.seic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -21567,7 +21464,6 @@ func (client AppsClient) ListSiteExtensionsSender(req *http.Request) (*http.Resp func (client AppsClient) ListSiteExtensionsResponder(resp *http.Response) (result SiteExtensionInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -21655,6 +21551,9 @@ func (client AppsClient) ListSiteExtensionsSlot(ctx context.Context, resourceGro if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteExtensionsSlot", resp, "Failure responding to request") } + if result.seic.hasNextLink() && result.seic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -21692,7 +21591,6 @@ func (client AppsClient) ListSiteExtensionsSlotSender(req *http.Request) (*http. func (client AppsClient) ListSiteExtensionsSlotResponder(resp *http.Response) (result SiteExtensionInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -21813,7 +21711,6 @@ func (client AppsClient) ListSitePushSettingsSender(req *http.Request) (*http.Re func (client AppsClient) ListSitePushSettingsResponder(resp *http.Response) (result PushSettings, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -21899,7 +21796,6 @@ func (client AppsClient) ListSitePushSettingsSlotSender(req *http.Request) (*htt func (client AppsClient) ListSitePushSettingsSlotResponder(resp *http.Response) (result PushSettings, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -21984,7 +21880,6 @@ func (client AppsClient) ListSlotConfigurationNamesSender(req *http.Request) (*h func (client AppsClient) ListSlotConfigurationNamesResponder(resp *http.Response) (result SlotConfigNamesResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -22037,6 +21932,9 @@ func (client AppsClient) ListSlotDifferencesFromProduction(ctx context.Context, if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotDifferencesFromProduction", resp, "Failure responding to request") } + if result.sdc.hasNextLink() && result.sdc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -22075,7 +21973,6 @@ func (client AppsClient) ListSlotDifferencesFromProductionSender(req *http.Reque func (client AppsClient) ListSlotDifferencesFromProductionResponder(resp *http.Response) (result SlotDifferenceCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -22166,6 +22063,9 @@ func (client AppsClient) ListSlotDifferencesSlot(ctx context.Context, resourceGr if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlotDifferencesSlot", resp, "Failure responding to request") } + if result.sdc.hasNextLink() && result.sdc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -22205,7 +22105,6 @@ func (client AppsClient) ListSlotDifferencesSlotSender(req *http.Request) (*http func (client AppsClient) ListSlotDifferencesSlotResponder(resp *http.Response) (result SlotDifferenceCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -22291,6 +22190,9 @@ func (client AppsClient) ListSlots(ctx context.Context, resourceGroupName string if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSlots", resp, "Failure responding to request") } + if result.ac.hasNextLink() && result.ac.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -22327,7 +22229,6 @@ func (client AppsClient) ListSlotsSender(req *http.Request) (*http.Response, err func (client AppsClient) ListSlotsResponder(resp *http.Response) (result AppCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -22413,6 +22314,9 @@ func (client AppsClient) ListSnapshots(ctx context.Context, resourceGroupName st if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshots", resp, "Failure responding to request") } + if result.sc.hasNextLink() && result.sc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -22449,7 +22353,6 @@ func (client AppsClient) ListSnapshotsSender(req *http.Request) (*http.Response, func (client AppsClient) ListSnapshotsResponder(resp *http.Response) (result SnapshotCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -22536,6 +22439,9 @@ func (client AppsClient) ListSnapshotsSlot(ctx context.Context, resourceGroupNam if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSnapshotsSlot", resp, "Failure responding to request") } + if result.sc.hasNextLink() && result.sc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -22573,7 +22479,6 @@ func (client AppsClient) ListSnapshotsSlotSender(req *http.Request) (*http.Respo func (client AppsClient) ListSnapshotsSlotResponder(resp *http.Response) (result SnapshotCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -22694,7 +22599,6 @@ func (client AppsClient) ListSyncFunctionTriggersSender(req *http.Request) (*htt func (client AppsClient) ListSyncFunctionTriggersResponder(resp *http.Response) (result FunctionSecrets, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -22781,7 +22685,6 @@ func (client AppsClient) ListSyncFunctionTriggersSlotSender(req *http.Request) ( func (client AppsClient) ListSyncFunctionTriggersSlotResponder(resp *http.Response) (result FunctionSecrets, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -22831,6 +22734,9 @@ func (client AppsClient) ListTriggeredWebJobHistory(ctx context.Context, resourc if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobHistory", resp, "Failure responding to request") } + if result.tjhc.hasNextLink() && result.tjhc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -22868,7 +22774,6 @@ func (client AppsClient) ListTriggeredWebJobHistorySender(req *http.Request) (*h func (client AppsClient) ListTriggeredWebJobHistoryResponder(resp *http.Response) (result TriggeredJobHistoryCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -22957,6 +22862,9 @@ func (client AppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, res if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobHistorySlot", resp, "Failure responding to request") } + if result.tjhc.hasNextLink() && result.tjhc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -22995,7 +22903,6 @@ func (client AppsClient) ListTriggeredWebJobHistorySlotSender(req *http.Request) func (client AppsClient) ListTriggeredWebJobHistorySlotResponder(resp *http.Response) (result TriggeredJobHistoryCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -23081,6 +22988,9 @@ func (client AppsClient) ListTriggeredWebJobs(ctx context.Context, resourceGroup if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobs", resp, "Failure responding to request") } + if result.twjc.hasNextLink() && result.twjc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -23117,7 +23027,6 @@ func (client AppsClient) ListTriggeredWebJobsSender(req *http.Request) (*http.Re func (client AppsClient) ListTriggeredWebJobsResponder(resp *http.Response) (result TriggeredWebJobCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -23205,6 +23114,9 @@ func (client AppsClient) ListTriggeredWebJobsSlot(ctx context.Context, resourceG if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListTriggeredWebJobsSlot", resp, "Failure responding to request") } + if result.twjc.hasNextLink() && result.twjc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -23242,7 +23154,6 @@ func (client AppsClient) ListTriggeredWebJobsSlotSender(req *http.Request) (*htt func (client AppsClient) ListTriggeredWebJobsSlotResponder(resp *http.Response) (result TriggeredWebJobCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -23331,6 +23242,9 @@ func (client AppsClient) ListUsages(ctx context.Context, resourceGroupName strin if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListUsages", resp, "Failure responding to request") } + if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -23370,7 +23284,6 @@ func (client AppsClient) ListUsagesSender(req *http.Request) (*http.Response, er func (client AppsClient) ListUsagesResponder(resp *http.Response) (result CsmUsageQuotaCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -23461,6 +23374,9 @@ func (client AppsClient) ListUsagesSlot(ctx context.Context, resourceGroupName s if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListUsagesSlot", resp, "Failure responding to request") } + if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -23501,7 +23417,6 @@ func (client AppsClient) ListUsagesSlotSender(req *http.Request) (*http.Response func (client AppsClient) ListUsagesSlotResponder(resp *http.Response) (result CsmUsageQuotaCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -23622,7 +23537,6 @@ func (client AppsClient) ListVnetConnectionsSender(req *http.Request) (*http.Res func (client AppsClient) ListVnetConnectionsResponder(resp *http.Response) (result ListVnetInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -23709,7 +23623,6 @@ func (client AppsClient) ListVnetConnectionsSlotSender(req *http.Request) (*http func (client AppsClient) ListVnetConnectionsSlotResponder(resp *http.Response) (result ListVnetInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -23758,6 +23671,9 @@ func (client AppsClient) ListWebJobs(ctx context.Context, resourceGroupName stri if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListWebJobs", resp, "Failure responding to request") } + if result.jc.hasNextLink() && result.jc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -23794,7 +23710,6 @@ func (client AppsClient) ListWebJobsSender(req *http.Request) (*http.Response, e func (client AppsClient) ListWebJobsResponder(resp *http.Response) (result JobCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -23882,6 +23797,9 @@ func (client AppsClient) ListWebJobsSlot(ctx context.Context, resourceGroupName if err != nil { err = autorest.NewErrorWithError(err, "web.AppsClient", "ListWebJobsSlot", resp, "Failure responding to request") } + if result.jc.hasNextLink() && result.jc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -23919,7 +23837,6 @@ func (client AppsClient) ListWebJobsSlotSender(req *http.Request) (*http.Respons func (client AppsClient) ListWebJobsSlotResponder(resp *http.Response) (result JobCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -24046,7 +23963,6 @@ func (client AppsClient) MigrateMySQLSender(req *http.Request) (future AppsMigra func (client AppsClient) MigrateMySQLResponder(resp *http.Response) (result Operation, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -24140,7 +24056,6 @@ func (client AppsClient) MigrateStorageSender(req *http.Request) (future AppsMig func (client AppsClient) MigrateStorageResponder(resp *http.Response) (result StorageMigrationResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -24231,7 +24146,6 @@ func (client AppsClient) RecoverSender(req *http.Request) (future AppsRecoverFut func (client AppsClient) RecoverResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp @@ -24316,7 +24230,6 @@ func (client AppsClient) RecoverSiteConfigurationSnapshotSender(req *http.Reques func (client AppsClient) RecoverSiteConfigurationSnapshotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -24404,7 +24317,6 @@ func (client AppsClient) RecoverSiteConfigurationSnapshotSlotSender(req *http.Re func (client AppsClient) RecoverSiteConfigurationSnapshotSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -24496,7 +24408,6 @@ func (client AppsClient) RecoverSlotSender(req *http.Request) (future AppsRecove func (client AppsClient) RecoverSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp @@ -24580,7 +24491,6 @@ func (client AppsClient) ResetProductionSlotConfigSender(req *http.Request) (*ht func (client AppsClient) ResetProductionSlotConfigResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -24667,7 +24577,6 @@ func (client AppsClient) ResetSlotConfigurationSlotSender(req *http.Request) (*h func (client AppsClient) ResetSlotConfigurationSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -24760,7 +24669,6 @@ func (client AppsClient) RestartSender(req *http.Request) (*http.Response, error func (client AppsClient) RestartResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -24855,7 +24763,6 @@ func (client AppsClient) RestartSlotSender(req *http.Request) (*http.Response, e func (client AppsClient) RestartSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -24948,7 +24855,6 @@ func (client AppsClient) RestoreSender(req *http.Request) (future AppsRestoreFut func (client AppsClient) RestoreResponder(resp *http.Response) (result RestoreResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -25045,7 +24951,6 @@ func (client AppsClient) RestoreSlotSender(req *http.Request) (future AppsRestor func (client AppsClient) RestoreSlotResponder(resp *http.Response) (result RestoreResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -25131,7 +25036,6 @@ func (client AppsClient) RunTriggeredWebJobSender(req *http.Request) (*http.Resp func (client AppsClient) RunTriggeredWebJobResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -25219,7 +25123,6 @@ func (client AppsClient) RunTriggeredWebJobSlotSender(req *http.Request) (*http. func (client AppsClient) RunTriggeredWebJobSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -25302,7 +25205,6 @@ func (client AppsClient) StartSender(req *http.Request) (*http.Response, error) func (client AppsClient) StartResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -25387,7 +25289,6 @@ func (client AppsClient) StartContinuousWebJobSender(req *http.Request) (*http.R func (client AppsClient) StartContinuousWebJobResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -25475,7 +25376,6 @@ func (client AppsClient) StartContinuousWebJobSlotSender(req *http.Request) (*ht func (client AppsClient) StartContinuousWebJobSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -25560,7 +25460,6 @@ func (client AppsClient) StartSlotSender(req *http.Request) (*http.Response, err func (client AppsClient) StartSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -25655,7 +25554,6 @@ func (client AppsClient) StartWebSiteNetworkTraceSender(req *http.Request) (*htt func (client AppsClient) StartWebSiteNetworkTraceResponder(resp *http.Response) (result String, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -25753,7 +25651,6 @@ func (client AppsClient) StartWebSiteNetworkTraceSlotSender(req *http.Request) ( func (client AppsClient) StartWebSiteNetworkTraceSlotResponder(resp *http.Response) (result String, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -25837,7 +25734,6 @@ func (client AppsClient) StopSender(req *http.Request) (*http.Response, error) { func (client AppsClient) StopResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -25922,7 +25818,6 @@ func (client AppsClient) StopContinuousWebJobSender(req *http.Request) (*http.Re func (client AppsClient) StopContinuousWebJobResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -26010,7 +25905,6 @@ func (client AppsClient) StopContinuousWebJobSlotSender(req *http.Request) (*htt func (client AppsClient) StopContinuousWebJobSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -26095,7 +25989,6 @@ func (client AppsClient) StopSlotSender(req *http.Request) (*http.Response, erro func (client AppsClient) StopSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -26178,7 +26071,6 @@ func (client AppsClient) StopWebSiteNetworkTraceSender(req *http.Request) (*http func (client AppsClient) StopWebSiteNetworkTraceResponder(resp *http.Response) (result String, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -26264,7 +26156,6 @@ func (client AppsClient) StopWebSiteNetworkTraceSlotSender(req *http.Request) (* func (client AppsClient) StopWebSiteNetworkTraceSlotResponder(resp *http.Response) (result String, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -26356,7 +26247,6 @@ func (client AppsClient) SwapSlotSlotSender(req *http.Request) (future AppsSwapS func (client AppsClient) SwapSlotSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp @@ -26445,7 +26335,6 @@ func (client AppsClient) SwapSlotWithProductionSender(req *http.Request) (future func (client AppsClient) SwapSlotWithProductionResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp @@ -26528,7 +26417,6 @@ func (client AppsClient) SyncFunctionTriggersSender(req *http.Request) (*http.Re func (client AppsClient) SyncFunctionTriggersResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -26614,7 +26502,6 @@ func (client AppsClient) SyncFunctionTriggersSlotSender(req *http.Request) (*htt func (client AppsClient) SyncFunctionTriggersSlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -26697,7 +26584,6 @@ func (client AppsClient) SyncRepositorySender(req *http.Request) (*http.Response func (client AppsClient) SyncRepositoryResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -26782,7 +26668,6 @@ func (client AppsClient) SyncRepositorySlotSender(req *http.Request) (*http.Resp func (client AppsClient) SyncRepositorySlotResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -26869,7 +26754,6 @@ func (client AppsClient) UpdateSender(req *http.Request) (*http.Response, error) func (client AppsClient) UpdateResponder(resp *http.Response) (result Site, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -26956,7 +26840,6 @@ func (client AppsClient) UpdateApplicationSettingsSender(req *http.Request) (*ht func (client AppsClient) UpdateApplicationSettingsResponder(resp *http.Response) (result StringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -27046,7 +26929,6 @@ func (client AppsClient) UpdateApplicationSettingsSlotSender(req *http.Request) func (client AppsClient) UpdateApplicationSettingsSlotResponder(resp *http.Response) (result StringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -27133,7 +27015,6 @@ func (client AppsClient) UpdateAuthSettingsSender(req *http.Request) (*http.Resp func (client AppsClient) UpdateAuthSettingsResponder(resp *http.Response) (result SiteAuthSettings, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -27222,7 +27103,6 @@ func (client AppsClient) UpdateAuthSettingsSlotSender(req *http.Request) (*http. func (client AppsClient) UpdateAuthSettingsSlotResponder(resp *http.Response) (result SiteAuthSettings, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -27319,7 +27199,6 @@ func (client AppsClient) UpdateBackupConfigurationSender(req *http.Request) (*ht func (client AppsClient) UpdateBackupConfigurationResponder(resp *http.Response) (result BackupRequest, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -27419,7 +27298,6 @@ func (client AppsClient) UpdateBackupConfigurationSlotSender(req *http.Request) func (client AppsClient) UpdateBackupConfigurationSlotResponder(resp *http.Response) (result BackupRequest, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -27506,7 +27384,6 @@ func (client AppsClient) UpdateConfigurationSender(req *http.Request) (*http.Res func (client AppsClient) UpdateConfigurationResponder(resp *http.Response) (result SiteConfigResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -27596,7 +27473,6 @@ func (client AppsClient) UpdateConfigurationSlotSender(req *http.Request) (*http func (client AppsClient) UpdateConfigurationSlotResponder(resp *http.Response) (result SiteConfigResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -27683,7 +27559,6 @@ func (client AppsClient) UpdateConnectionStringsSender(req *http.Request) (*http func (client AppsClient) UpdateConnectionStringsResponder(resp *http.Response) (result ConnectionStringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -27773,7 +27648,6 @@ func (client AppsClient) UpdateConnectionStringsSlotSender(req *http.Request) (* func (client AppsClient) UpdateConnectionStringsSlotResponder(resp *http.Response) (result ConnectionStringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -27876,7 +27750,6 @@ func (client AppsClient) UpdateDiagnosticLogsConfigSender(req *http.Request) (*h func (client AppsClient) UpdateDiagnosticLogsConfigResponder(resp *http.Response) (result SiteLogsConfig, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -27982,7 +27855,6 @@ func (client AppsClient) UpdateDiagnosticLogsConfigSlotSender(req *http.Request) func (client AppsClient) UpdateDiagnosticLogsConfigSlotResponder(resp *http.Response) (result SiteLogsConfig, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -28072,7 +27944,6 @@ func (client AppsClient) UpdateDomainOwnershipIdentifierSender(req *http.Request func (client AppsClient) UpdateDomainOwnershipIdentifierResponder(resp *http.Response) (result Identifier, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -28165,7 +28036,6 @@ func (client AppsClient) UpdateDomainOwnershipIdentifierSlotSender(req *http.Req func (client AppsClient) UpdateDomainOwnershipIdentifierSlotResponder(resp *http.Response) (result Identifier, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -28256,7 +28126,6 @@ func (client AppsClient) UpdateHybridConnectionSender(req *http.Request) (*http. func (client AppsClient) UpdateHybridConnectionResponder(resp *http.Response) (result HybridConnection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -28349,7 +28218,6 @@ func (client AppsClient) UpdateHybridConnectionSlotSender(req *http.Request) (*h func (client AppsClient) UpdateHybridConnectionSlotResponder(resp *http.Response) (result HybridConnection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -28436,7 +28304,6 @@ func (client AppsClient) UpdateMetadataSender(req *http.Request) (*http.Response func (client AppsClient) UpdateMetadataResponder(resp *http.Response) (result StringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -28526,7 +28393,6 @@ func (client AppsClient) UpdateMetadataSlotSender(req *http.Request) (*http.Resp func (client AppsClient) UpdateMetadataSlotResponder(resp *http.Response) (result StringDictionary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -28616,7 +28482,6 @@ func (client AppsClient) UpdateRelayServiceConnectionSender(req *http.Request) ( func (client AppsClient) UpdateRelayServiceConnectionResponder(resp *http.Response) (result RelayServiceConnectionEntity, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -28709,7 +28574,6 @@ func (client AppsClient) UpdateRelayServiceConnectionSlotSender(req *http.Reques func (client AppsClient) UpdateRelayServiceConnectionSlotResponder(resp *http.Response) (result RelayServiceConnectionEntity, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -28799,7 +28663,6 @@ func (client AppsClient) UpdateSitePushSettingsSender(req *http.Request) (*http. func (client AppsClient) UpdateSitePushSettingsResponder(resp *http.Response) (result PushSettings, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -28891,7 +28754,6 @@ func (client AppsClient) UpdateSitePushSettingsSlotSender(req *http.Request) (*h func (client AppsClient) UpdateSitePushSettingsSlotResponder(resp *http.Response) (result PushSettings, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -29000,7 +28862,6 @@ func (client AppsClient) UpdateSlotSender(req *http.Request) (*http.Response, er func (client AppsClient) UpdateSlotResponder(resp *http.Response) (result Site, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -29088,7 +28949,6 @@ func (client AppsClient) UpdateSlotConfigurationNamesSender(req *http.Request) ( func (client AppsClient) UpdateSlotConfigurationNamesResponder(resp *http.Response) (result SlotConfigNamesResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -29175,7 +29035,6 @@ func (client AppsClient) UpdateSourceControlSender(req *http.Request) (*http.Res func (client AppsClient) UpdateSourceControlResponder(resp *http.Response) (result SiteSourceControl, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -29265,7 +29124,6 @@ func (client AppsClient) UpdateSourceControlSlotSender(req *http.Request) (*http func (client AppsClient) UpdateSourceControlSlotResponder(resp *http.Response) (result SiteSourceControl, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -29355,7 +29213,6 @@ func (client AppsClient) UpdateVnetConnectionSender(req *http.Request) (*http.Re func (client AppsClient) UpdateVnetConnectionResponder(resp *http.Response) (result VnetInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -29446,7 +29303,6 @@ func (client AppsClient) UpdateVnetConnectionGatewaySender(req *http.Request) (* func (client AppsClient) UpdateVnetConnectionGatewayResponder(resp *http.Response) (result VnetGateway, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -29540,7 +29396,6 @@ func (client AppsClient) UpdateVnetConnectionGatewaySlotSender(req *http.Request func (client AppsClient) UpdateVnetConnectionGatewaySlotResponder(resp *http.Response) (result VnetGateway, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -29633,7 +29488,6 @@ func (client AppsClient) UpdateVnetConnectionSlotSender(req *http.Request) (*htt func (client AppsClient) UpdateVnetConnectionSlotResponder(resp *http.Response) (result VnetInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go b/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go index 9fd362808f90..634914129206 100644 --- a/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go +++ b/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go @@ -129,7 +129,6 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdateSender(req *http.R func (client AppServiceCertificateOrdersClient) CreateOrUpdateResponder(resp *http.Response) (result AppServiceCertificateOrder, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -218,7 +217,6 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdateCertificateSender( func (client AppServiceCertificateOrdersClient) CreateOrUpdateCertificateResponder(resp *http.Response) (result AppServiceCertificateResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -302,7 +300,6 @@ func (client AppServiceCertificateOrdersClient) DeleteSender(req *http.Request) func (client AppServiceCertificateOrdersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -387,7 +384,6 @@ func (client AppServiceCertificateOrdersClient) DeleteCertificateSender(req *htt func (client AppServiceCertificateOrdersClient) DeleteCertificateResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -470,7 +466,6 @@ func (client AppServiceCertificateOrdersClient) GetSender(req *http.Request) (*h func (client AppServiceCertificateOrdersClient) GetResponder(resp *http.Response) (result AppServiceCertificateOrder, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -556,7 +551,6 @@ func (client AppServiceCertificateOrdersClient) GetCertificateSender(req *http.R func (client AppServiceCertificateOrdersClient) GetCertificateResponder(resp *http.Response) (result AppServiceCertificateResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -594,6 +588,9 @@ func (client AppServiceCertificateOrdersClient) List(ctx context.Context) (resul if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "List", resp, "Failure responding to request") } + if result.ascoc.hasNextLink() && result.ascoc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -628,7 +625,6 @@ func (client AppServiceCertificateOrdersClient) ListSender(req *http.Request) (* func (client AppServiceCertificateOrdersClient) ListResponder(resp *http.Response) (result AppServiceCertificateOrderCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -713,6 +709,9 @@ func (client AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context. if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ListByResourceGroup", resp, "Failure responding to request") } + if result.ascoc.hasNextLink() && result.ascoc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -748,7 +747,6 @@ func (client AppServiceCertificateOrdersClient) ListByResourceGroupSender(req *h func (client AppServiceCertificateOrdersClient) ListByResourceGroupResponder(resp *http.Response) (result AppServiceCertificateOrderCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -834,6 +832,9 @@ func (client AppServiceCertificateOrdersClient) ListCertificates(ctx context.Con if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersClient", "ListCertificates", resp, "Failure responding to request") } + if result.ascc.hasNextLink() && result.ascc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -870,7 +871,6 @@ func (client AppServiceCertificateOrdersClient) ListCertificatesSender(req *http func (client AppServiceCertificateOrdersClient) ListCertificatesResponder(resp *http.Response) (result AppServiceCertificateCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -994,7 +994,6 @@ func (client AppServiceCertificateOrdersClient) ReissueSender(req *http.Request) func (client AppServiceCertificateOrdersClient) ReissueResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -1080,7 +1079,6 @@ func (client AppServiceCertificateOrdersClient) RenewSender(req *http.Request) ( func (client AppServiceCertificateOrdersClient) RenewResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -1163,7 +1161,6 @@ func (client AppServiceCertificateOrdersClient) ResendEmailSender(req *http.Requ func (client AppServiceCertificateOrdersClient) ResendEmailResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -1249,7 +1246,6 @@ func (client AppServiceCertificateOrdersClient) ResendRequestEmailsSender(req *h func (client AppServiceCertificateOrdersClient) ResendRequestEmailsResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -1332,7 +1328,6 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateActionsSender func (client AppServiceCertificateOrdersClient) RetrieveCertificateActionsResponder(resp *http.Response) (result ListCertificateOrderAction, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -1416,7 +1411,6 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateEmailHistoryS func (client AppServiceCertificateOrdersClient) RetrieveCertificateEmailHistoryResponder(resp *http.Response) (result ListCertificateEmail, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -1503,7 +1497,6 @@ func (client AppServiceCertificateOrdersClient) RetrieveSiteSealSender(req *http func (client AppServiceCertificateOrdersClient) RetrieveSiteSealResponder(resp *http.Response) (result SiteSeal, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1590,7 +1583,6 @@ func (client AppServiceCertificateOrdersClient) UpdateSender(req *http.Request) func (client AppServiceCertificateOrdersClient) UpdateResponder(resp *http.Response) (result AppServiceCertificateOrder, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1679,7 +1671,6 @@ func (client AppServiceCertificateOrdersClient) UpdateCertificateSender(req *htt func (client AppServiceCertificateOrdersClient) UpdateCertificateResponder(resp *http.Response) (result AppServiceCertificateResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1765,7 +1756,6 @@ func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformationSende func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformationResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -1848,7 +1838,6 @@ func (client AppServiceCertificateOrdersClient) VerifyDomainOwnershipSender(req func (client AppServiceCertificateOrdersClient) VerifyDomainOwnershipResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp diff --git a/services/web/mgmt/2016-09-01/web/appserviceenvironments.go b/services/web/mgmt/2016-09-01/web/appserviceenvironments.go index 6c235401029d..e8f9da7a7942 100644 --- a/services/web/mgmt/2016-09-01/web/appserviceenvironments.go +++ b/services/web/mgmt/2016-09-01/web/appserviceenvironments.go @@ -129,7 +129,6 @@ func (client AppServiceEnvironmentsClient) CreateOrUpdateSender(req *http.Reques func (client AppServiceEnvironmentsClient) CreateOrUpdateResponder(resp *http.Response) (result AppServiceEnvironmentResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -216,7 +215,6 @@ func (client AppServiceEnvironmentsClient) CreateOrUpdateMultiRolePoolSender(req func (client AppServiceEnvironmentsClient) CreateOrUpdateMultiRolePoolResponder(resp *http.Response) (result WorkerPoolResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -305,7 +303,6 @@ func (client AppServiceEnvironmentsClient) CreateOrUpdateWorkerPoolSender(req *h func (client AppServiceEnvironmentsClient) CreateOrUpdateWorkerPoolResponder(resp *http.Response) (result WorkerPoolResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -394,7 +391,6 @@ func (client AppServiceEnvironmentsClient) DeleteSender(req *http.Request) (futu func (client AppServiceEnvironmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), autorest.ByClosing()) result.Response = resp @@ -477,7 +473,6 @@ func (client AppServiceEnvironmentsClient) GetSender(req *http.Request) (*http.R func (client AppServiceEnvironmentsClient) GetResponder(resp *http.Response) (result AppServiceEnvironmentResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -563,7 +558,6 @@ func (client AppServiceEnvironmentsClient) GetDiagnosticsItemSender(req *http.Re func (client AppServiceEnvironmentsClient) GetDiagnosticsItemResponder(resp *http.Response) (result HostingEnvironmentDiagnostics, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -647,7 +641,6 @@ func (client AppServiceEnvironmentsClient) GetMultiRolePoolSender(req *http.Requ func (client AppServiceEnvironmentsClient) GetMultiRolePoolResponder(resp *http.Response) (result WorkerPoolResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -733,7 +726,6 @@ func (client AppServiceEnvironmentsClient) GetWorkerPoolSender(req *http.Request func (client AppServiceEnvironmentsClient) GetWorkerPoolResponder(resp *http.Response) (result WorkerPoolResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -771,6 +763,9 @@ func (client AppServiceEnvironmentsClient) List(ctx context.Context) (result App if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "List", resp, "Failure responding to request") } + if result.asec.hasNextLink() && result.asec.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -805,7 +800,6 @@ func (client AppServiceEnvironmentsClient) ListSender(req *http.Request) (*http. func (client AppServiceEnvironmentsClient) ListResponder(resp *http.Response) (result AppServiceEnvironmentCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -891,6 +885,9 @@ func (client AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Conte if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListAppServicePlans", resp, "Failure responding to request") } + if result.aspc.hasNextLink() && result.aspc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -927,7 +924,6 @@ func (client AppServiceEnvironmentsClient) ListAppServicePlansSender(req *http.R func (client AppServiceEnvironmentsClient) ListAppServicePlansResponder(resp *http.Response) (result AppServicePlanCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1012,6 +1008,9 @@ func (client AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Conte if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListByResourceGroup", resp, "Failure responding to request") } + if result.asec.hasNextLink() && result.asec.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1047,7 +1046,6 @@ func (client AppServiceEnvironmentsClient) ListByResourceGroupSender(req *http.R func (client AppServiceEnvironmentsClient) ListByResourceGroupResponder(resp *http.Response) (result AppServiceEnvironmentCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1133,6 +1131,9 @@ func (client AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, r if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListCapacities", resp, "Failure responding to request") } + if result.scc.hasNextLink() && result.scc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1169,7 +1170,6 @@ func (client AppServiceEnvironmentsClient) ListCapacitiesSender(req *http.Reques func (client AppServiceEnvironmentsClient) ListCapacitiesResponder(resp *http.Response) (result StampCapacityCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1290,7 +1290,6 @@ func (client AppServiceEnvironmentsClient) ListDiagnosticsSender(req *http.Reque func (client AppServiceEnvironmentsClient) ListDiagnosticsResponder(resp *http.Response) (result ListHostingEnvironmentDiagnostics, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -1374,7 +1373,6 @@ func (client AppServiceEnvironmentsClient) ListMetricDefinitionsSender(req *http func (client AppServiceEnvironmentsClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinition, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1427,6 +1425,9 @@ func (client AppServiceEnvironmentsClient) ListMetrics(ctx context.Context, reso if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMetrics", resp, "Failure responding to request") } + if result.rmc.hasNextLink() && result.rmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1469,7 +1470,6 @@ func (client AppServiceEnvironmentsClient) ListMetricsSender(req *http.Request) func (client AppServiceEnvironmentsClient) ListMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1555,6 +1555,9 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx co if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", resp, "Failure responding to request") } + if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1591,7 +1594,6 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsSender( func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1684,6 +1686,9 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetrics(ctx context.Cont if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetrics", resp, "Failure responding to request") } + if result.rmc.hasNextLink() && result.rmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1735,7 +1740,6 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetricsSender(req *http. func (client AppServiceEnvironmentsClient) ListMultiRoleMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1823,6 +1827,9 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefini if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", resp, "Failure responding to request") } + if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1860,7 +1867,6 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefini func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1949,6 +1955,9 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetrics(ctx if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetrics", resp, "Failure responding to request") } + if result.rmc.hasNextLink() && result.rmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1989,7 +1998,6 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricsSende func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2075,6 +2083,9 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Contex if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePools", resp, "Failure responding to request") } + if result.wpc.hasNextLink() && result.wpc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2111,7 +2122,6 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolsSender(req *http.Re func (client AppServiceEnvironmentsClient) ListMultiRolePoolsResponder(resp *http.Response) (result WorkerPoolCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2197,6 +2207,9 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Con if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", resp, "Failure responding to request") } + if result.sic.hasNextLink() && result.sic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2233,7 +2246,6 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolSkusSender(req *http func (client AppServiceEnvironmentsClient) ListMultiRolePoolSkusResponder(resp *http.Response) (result SkuInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2319,6 +2331,9 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Conte if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleUsages", resp, "Failure responding to request") } + if result.uc.hasNextLink() && result.uc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2355,7 +2370,6 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleUsagesSender(req *http.R func (client AppServiceEnvironmentsClient) ListMultiRoleUsagesResponder(resp *http.Response) (result UsageCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2476,7 +2490,6 @@ func (client AppServiceEnvironmentsClient) ListOperationsSender(req *http.Reques func (client AppServiceEnvironmentsClient) ListOperationsResponder(resp *http.Response) (result ListOperation, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -2528,6 +2541,9 @@ func (client AppServiceEnvironmentsClient) ListUsages(ctx context.Context, resou if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListUsages", resp, "Failure responding to request") } + if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2567,7 +2583,6 @@ func (client AppServiceEnvironmentsClient) ListUsagesSender(req *http.Request) ( func (client AppServiceEnvironmentsClient) ListUsagesResponder(resp *http.Response) (result CsmUsageQuotaCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2688,7 +2703,6 @@ func (client AppServiceEnvironmentsClient) ListVipsSender(req *http.Request) (*h func (client AppServiceEnvironmentsClient) ListVipsResponder(resp *http.Response) (result AddressResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2738,6 +2752,9 @@ func (client AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, reso if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebApps", resp, "Failure responding to request") } + if result.ac.hasNextLink() && result.ac.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2777,7 +2794,6 @@ func (client AppServiceEnvironmentsClient) ListWebAppsSender(req *http.Request) func (client AppServiceEnvironmentsClient) ListWebAppsResponder(resp *http.Response) (result AppCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2864,6 +2880,9 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx co if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerMetricDefinitions", resp, "Failure responding to request") } + if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2901,7 +2920,6 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitionsSender( func (client AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2992,6 +3010,9 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetrics(ctx context.Cont if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerMetrics", resp, "Failure responding to request") } + if result.rmc.hasNextLink() && result.rmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -3035,7 +3056,6 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetricsSender(req *http. func (client AppServiceEnvironmentsClient) ListWebWorkerMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -3122,6 +3142,9 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Conte if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerUsages", resp, "Failure responding to request") } + if result.uc.hasNextLink() && result.uc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -3159,7 +3182,6 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerUsagesSender(req *http.R func (client AppServiceEnvironmentsClient) ListWebWorkerUsagesResponder(resp *http.Response) (result UsageCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -3248,6 +3270,9 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitio if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetricDefinitions", resp, "Failure responding to request") } + if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -3286,7 +3311,6 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitio func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -3378,6 +3402,9 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetrics(ctx con if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetrics", resp, "Failure responding to request") } + if result.rmc.hasNextLink() && result.rmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -3422,7 +3449,6 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricsSender(r func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -3508,6 +3534,9 @@ func (client AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPools", resp, "Failure responding to request") } + if result.wpc.hasNextLink() && result.wpc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -3544,7 +3573,6 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolsSender(req *http.Reque func (client AppServiceEnvironmentsClient) ListWorkerPoolsResponder(resp *http.Response) (result WorkerPoolCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -3631,6 +3659,9 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Contex if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolSkus", resp, "Failure responding to request") } + if result.sic.hasNextLink() && result.sic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -3668,7 +3699,6 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolSkusSender(req *http.Re func (client AppServiceEnvironmentsClient) ListWorkerPoolSkusResponder(resp *http.Response) (result SkuInfoCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -3789,7 +3819,6 @@ func (client AppServiceEnvironmentsClient) RebootSender(req *http.Request) (*htt func (client AppServiceEnvironmentsClient) RebootResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), autorest.ByClosing()) result.Response = resp @@ -3878,7 +3907,6 @@ func (client AppServiceEnvironmentsClient) ResumeResponder(resp *http.Response) func (client AppServiceEnvironmentsClient) resumeResponder(resp *http.Response) (result AppCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -4003,7 +4031,6 @@ func (client AppServiceEnvironmentsClient) SuspendResponder(resp *http.Response) func (client AppServiceEnvironmentsClient) suspendResponder(resp *http.Response) (result AppCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -4125,7 +4152,6 @@ func (client AppServiceEnvironmentsClient) UpdateSender(req *http.Request) (*htt func (client AppServiceEnvironmentsClient) UpdateResponder(resp *http.Response) (result AppServiceEnvironmentResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -4212,7 +4238,6 @@ func (client AppServiceEnvironmentsClient) UpdateMultiRolePoolSender(req *http.R func (client AppServiceEnvironmentsClient) UpdateMultiRolePoolResponder(resp *http.Response) (result WorkerPoolResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -4301,7 +4326,6 @@ func (client AppServiceEnvironmentsClient) UpdateWorkerPoolSender(req *http.Requ func (client AppServiceEnvironmentsClient) UpdateWorkerPoolResponder(resp *http.Response) (result WorkerPoolResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/appserviceplans.go b/services/web/mgmt/2016-09-01/web/appserviceplans.go index 671b255eeaf4..5f20f967f6b4 100644 --- a/services/web/mgmt/2016-09-01/web/appserviceplans.go +++ b/services/web/mgmt/2016-09-01/web/appserviceplans.go @@ -124,7 +124,6 @@ func (client AppServicePlansClient) CreateOrUpdateSender(req *http.Request) (fut func (client AppServicePlansClient) CreateOrUpdateResponder(resp *http.Response) (result AppServicePlan, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -215,7 +214,6 @@ func (client AppServicePlansClient) CreateOrUpdateVnetRouteSender(req *http.Requ func (client AppServicePlansClient) CreateOrUpdateVnetRouteResponder(resp *http.Response) (result VnetRoute, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusBadRequest, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -299,7 +297,6 @@ func (client AppServicePlansClient) DeleteSender(req *http.Request) (*http.Respo func (client AppServicePlansClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -386,7 +383,6 @@ func (client AppServicePlansClient) DeleteHybridConnectionSender(req *http.Reque func (client AppServicePlansClient) DeleteHybridConnectionResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -473,7 +469,6 @@ func (client AppServicePlansClient) DeleteVnetRouteSender(req *http.Request) (*h func (client AppServicePlansClient) DeleteVnetRouteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -556,7 +551,6 @@ func (client AppServicePlansClient) GetSender(req *http.Request) (*http.Response func (client AppServicePlansClient) GetResponder(resp *http.Response) (result AppServicePlan, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -644,7 +638,6 @@ func (client AppServicePlansClient) GetHybridConnectionSender(req *http.Request) func (client AppServicePlansClient) GetHybridConnectionResponder(resp *http.Response) (result HybridConnection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -728,7 +721,6 @@ func (client AppServicePlansClient) GetHybridConnectionPlanLimitSender(req *http func (client AppServicePlansClient) GetHybridConnectionPlanLimitResponder(resp *http.Response) (result HybridConnectionLimits, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -816,7 +808,6 @@ func (client AppServicePlansClient) GetRouteForVnetSender(req *http.Request) (*h func (client AppServicePlansClient) GetRouteForVnetResponder(resp *http.Response) (result ListVnetRoute, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -900,7 +891,6 @@ func (client AppServicePlansClient) GetServerFarmSkusSender(req *http.Request) ( func (client AppServicePlansClient) GetServerFarmSkusResponder(resp *http.Response) (result SetObject, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -986,7 +976,6 @@ func (client AppServicePlansClient) GetVnetFromServerFarmSender(req *http.Reques func (client AppServicePlansClient) GetVnetFromServerFarmResponder(resp *http.Response) (result VnetInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1074,7 +1063,6 @@ func (client AppServicePlansClient) GetVnetGatewaySender(req *http.Request) (*ht func (client AppServicePlansClient) GetVnetGatewayResponder(resp *http.Response) (result VnetGateway, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1116,6 +1104,9 @@ func (client AppServicePlansClient) List(ctx context.Context, detailed *bool) (r if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "List", resp, "Failure responding to request") } + if result.aspc.hasNextLink() && result.aspc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1153,7 +1144,6 @@ func (client AppServicePlansClient) ListSender(req *http.Request) (*http.Respons func (client AppServicePlansClient) ListResponder(resp *http.Response) (result AppServicePlanCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1238,6 +1228,9 @@ func (client AppServicePlansClient) ListByResourceGroup(ctx context.Context, res if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListByResourceGroup", resp, "Failure responding to request") } + if result.aspc.hasNextLink() && result.aspc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1273,7 +1266,6 @@ func (client AppServicePlansClient) ListByResourceGroupSender(req *http.Request) func (client AppServicePlansClient) ListByResourceGroupResponder(resp *http.Response) (result AppServicePlanCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1394,7 +1386,6 @@ func (client AppServicePlansClient) ListCapabilitiesSender(req *http.Request) (* func (client AppServicePlansClient) ListCapabilitiesResponder(resp *http.Response) (result ListCapability, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -1482,7 +1473,6 @@ func (client AppServicePlansClient) ListHybridConnectionKeysSender(req *http.Req func (client AppServicePlansClient) ListHybridConnectionKeysResponder(resp *http.Response) (result HybridConnectionKey, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1531,6 +1521,9 @@ func (client AppServicePlansClient) ListHybridConnections(ctx context.Context, r if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListHybridConnections", resp, "Failure responding to request") } + if result.hcc.hasNextLink() && result.hcc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1567,7 +1560,6 @@ func (client AppServicePlansClient) ListHybridConnectionsSender(req *http.Reques func (client AppServicePlansClient) ListHybridConnectionsResponder(resp *http.Response) (result HybridConnectionCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1653,6 +1645,9 @@ func (client AppServicePlansClient) ListMetricDefintions(ctx context.Context, re if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetricDefintions", resp, "Failure responding to request") } + if result.rmdc.hasNextLink() && result.rmdc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1689,7 +1684,6 @@ func (client AppServicePlansClient) ListMetricDefintionsSender(req *http.Request func (client AppServicePlansClient) ListMetricDefintionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1779,6 +1773,9 @@ func (client AppServicePlansClient) ListMetrics(ctx context.Context, resourceGro if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetrics", resp, "Failure responding to request") } + if result.rmc.hasNextLink() && result.rmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1821,7 +1818,6 @@ func (client AppServicePlansClient) ListMetricsSender(req *http.Request) (*http. func (client AppServicePlansClient) ListMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1944,7 +1940,6 @@ func (client AppServicePlansClient) ListRoutesForVnetSender(req *http.Request) ( func (client AppServicePlansClient) ListRoutesForVnetResponder(resp *http.Response) (result ListVnetRoute, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -1995,6 +1990,9 @@ func (client AppServicePlansClient) ListUsages(ctx context.Context, resourceGrou if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListUsages", resp, "Failure responding to request") } + if result.cuqc.hasNextLink() && result.cuqc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2034,7 +2032,6 @@ func (client AppServicePlansClient) ListUsagesSender(req *http.Request) (*http.R func (client AppServicePlansClient) ListUsagesResponder(resp *http.Response) (result CsmUsageQuotaCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2155,7 +2152,6 @@ func (client AppServicePlansClient) ListVnetsSender(req *http.Request) (*http.Re func (client AppServicePlansClient) ListVnetsResponder(resp *http.Response) (result ListVnetInfo, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) @@ -2209,6 +2205,9 @@ func (client AppServicePlansClient) ListWebApps(ctx context.Context, resourceGro if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListWebApps", resp, "Failure responding to request") } + if result.ac.hasNextLink() && result.ac.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2254,7 +2253,6 @@ func (client AppServicePlansClient) ListWebAppsSender(req *http.Request) (*http. func (client AppServicePlansClient) ListWebAppsResponder(resp *http.Response) (result AppCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2342,6 +2340,9 @@ func (client AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Co if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListWebAppsByHybridConnection", resp, "Failure responding to request") } + if result.rc.hasNextLink() && result.rc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2380,7 +2381,6 @@ func (client AppServicePlansClient) ListWebAppsByHybridConnectionSender(req *htt func (client AppServicePlansClient) ListWebAppsByHybridConnectionResponder(resp *http.Response) (result ResourceCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2503,7 +2503,6 @@ func (client AppServicePlansClient) RebootWorkerSender(req *http.Request) (*http func (client AppServicePlansClient) RebootWorkerResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -2592,7 +2591,6 @@ func (client AppServicePlansClient) RestartWebAppsSender(req *http.Request) (*ht func (client AppServicePlansClient) RestartWebAppsResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -2678,7 +2676,6 @@ func (client AppServicePlansClient) UpdateSender(req *http.Request) (*http.Respo func (client AppServicePlansClient) UpdateResponder(resp *http.Response) (result AppServicePlan, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2772,7 +2769,6 @@ func (client AppServicePlansClient) UpdateVnetGatewaySender(req *http.Request) ( func (client AppServicePlansClient) UpdateVnetGatewayResponder(resp *http.Response) (result VnetGateway, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2863,7 +2859,6 @@ func (client AppServicePlansClient) UpdateVnetRouteSender(req *http.Request) (*h func (client AppServicePlansClient) UpdateVnetRouteResponder(resp *http.Response) (result VnetRoute, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusBadRequest, http.StatusNotFound), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/billingmeters.go b/services/web/mgmt/2016-09-01/web/billingmeters.go index c6d905e25655..b6a1d7ecd83f 100644 --- a/services/web/mgmt/2016-09-01/web/billingmeters.go +++ b/services/web/mgmt/2016-09-01/web/billingmeters.go @@ -73,6 +73,9 @@ func (client BillingMetersClient) List(ctx context.Context, billingLocation stri if err != nil { err = autorest.NewErrorWithError(err, "web.BillingMetersClient", "List", resp, "Failure responding to request") } + if result.bmc.hasNextLink() && result.bmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -110,7 +113,6 @@ func (client BillingMetersClient) ListSender(req *http.Request) (*http.Response, func (client BillingMetersClient) ListResponder(resp *http.Response) (result BillingMeterCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/certificateregistrationprovider.go b/services/web/mgmt/2016-09-01/web/certificateregistrationprovider.go index 44a2998c116e..7502e734e47b 100644 --- a/services/web/mgmt/2016-09-01/web/certificateregistrationprovider.go +++ b/services/web/mgmt/2016-09-01/web/certificateregistrationprovider.go @@ -72,6 +72,9 @@ func (client CertificateRegistrationProviderClient) ListOperations(ctx context.C if err != nil { err = autorest.NewErrorWithError(err, "web.CertificateRegistrationProviderClient", "ListOperations", resp, "Failure responding to request") } + if result.coc.hasNextLink() && result.coc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -102,7 +105,6 @@ func (client CertificateRegistrationProviderClient) ListOperationsSender(req *ht func (client CertificateRegistrationProviderClient) ListOperationsResponder(resp *http.Response) (result CsmOperationCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/certificates.go b/services/web/mgmt/2016-09-01/web/certificates.go index b2a7321d8a18..c33cd4d099aa 100644 --- a/services/web/mgmt/2016-09-01/web/certificates.go +++ b/services/web/mgmt/2016-09-01/web/certificates.go @@ -124,7 +124,6 @@ func (client CertificatesClient) CreateOrUpdateSender(req *http.Request) (*http. func (client CertificatesClient) CreateOrUpdateResponder(resp *http.Response) (result Certificate, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -208,7 +207,6 @@ func (client CertificatesClient) DeleteSender(req *http.Request) (*http.Response func (client CertificatesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -291,7 +289,6 @@ func (client CertificatesClient) GetSender(req *http.Request) (*http.Response, e func (client CertificatesClient) GetResponder(resp *http.Response) (result Certificate, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -329,6 +326,9 @@ func (client CertificatesClient) List(ctx context.Context) (result CertificateCo if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "List", resp, "Failure responding to request") } + if result.cc.hasNextLink() && result.cc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -363,7 +363,6 @@ func (client CertificatesClient) ListSender(req *http.Request) (*http.Response, func (client CertificatesClient) ListResponder(resp *http.Response) (result CertificateCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -448,6 +447,9 @@ func (client CertificatesClient) ListByResourceGroup(ctx context.Context, resour if err != nil { err = autorest.NewErrorWithError(err, "web.CertificatesClient", "ListByResourceGroup", resp, "Failure responding to request") } + if result.cc.hasNextLink() && result.cc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -483,7 +485,6 @@ func (client CertificatesClient) ListByResourceGroupSender(req *http.Request) (* func (client CertificatesClient) ListByResourceGroupResponder(resp *http.Response) (result CertificateCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -607,7 +608,6 @@ func (client CertificatesClient) UpdateSender(req *http.Request) (*http.Response func (client CertificatesClient) UpdateResponder(resp *http.Response) (result Certificate, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/client.go b/services/web/mgmt/2016-09-01/web/client.go index e257f778135d..2e7500c00a38 100644 --- a/services/web/mgmt/2016-09-01/web/client.go +++ b/services/web/mgmt/2016-09-01/web/client.go @@ -129,7 +129,6 @@ func (client BaseClient) CheckNameAvailabilitySender(req *http.Request) (*http.R func (client BaseClient) CheckNameAvailabilityResponder(resp *http.Response) (result ResourceNameAvailability, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -196,7 +195,6 @@ func (client BaseClient) GetPublishingUserSender(req *http.Request) (*http.Respo func (client BaseClient) GetPublishingUserResponder(resp *http.Response) (result User, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -269,7 +267,6 @@ func (client BaseClient) GetSourceControlSender(req *http.Request) (*http.Respon func (client BaseClient) GetSourceControlResponder(resp *http.Response) (result SourceControl, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -340,7 +337,6 @@ func (client BaseClient) GetSubscriptionDeploymentLocationsSender(req *http.Requ func (client BaseClient) GetSubscriptionDeploymentLocationsResponder(resp *http.Response) (result DeploymentLocations, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -382,6 +378,9 @@ func (client BaseClient) ListGeoRegions(ctx context.Context, sku SkuName, linuxW if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListGeoRegions", resp, "Failure responding to request") } + if result.grc.hasNextLink() && result.grc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -422,7 +421,6 @@ func (client BaseClient) ListGeoRegionsSender(req *http.Request) (*http.Response func (client BaseClient) ListGeoRegionsResponder(resp *http.Response) (result GeoRegionCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -497,6 +495,9 @@ func (client BaseClient) ListPremierAddOnOffers(ctx context.Context) (result Pre if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListPremierAddOnOffers", resp, "Failure responding to request") } + if result.paooc.hasNextLink() && result.paooc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -531,7 +532,6 @@ func (client BaseClient) ListPremierAddOnOffersSender(req *http.Request) (*http. func (client BaseClient) ListPremierAddOnOffersResponder(resp *http.Response) (result PremierAddOnOfferCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -608,6 +608,9 @@ func (client BaseClient) ListSiteIdentifiersAssignedToHostName(ctx context.Conte if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSiteIdentifiersAssignedToHostName", resp, "Failure responding to request") } + if result.ic.hasNextLink() && result.ic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -644,7 +647,6 @@ func (client BaseClient) ListSiteIdentifiersAssignedToHostNameSender(req *http.R func (client BaseClient) ListSiteIdentifiersAssignedToHostNameResponder(resp *http.Response) (result IdentifierCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -752,7 +754,6 @@ func (client BaseClient) ListSkusSender(req *http.Request) (*http.Response, erro func (client BaseClient) ListSkusResponder(resp *http.Response) (result SkuInfos, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -790,6 +791,9 @@ func (client BaseClient) ListSourceControls(ctx context.Context) (result SourceC if err != nil { err = autorest.NewErrorWithError(err, "web.BaseClient", "ListSourceControls", resp, "Failure responding to request") } + if result.scc.hasNextLink() && result.scc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -820,7 +824,6 @@ func (client BaseClient) ListSourceControlsSender(req *http.Request) (*http.Resp func (client BaseClient) ListSourceControlsResponder(resp *http.Response) (result SourceControlCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -948,7 +951,6 @@ func (client BaseClient) MoveSender(req *http.Request) (*http.Response, error) { func (client BaseClient) MoveResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -1025,7 +1027,6 @@ func (client BaseClient) UpdatePublishingUserSender(req *http.Request) (*http.Re func (client BaseClient) UpdatePublishingUserResponder(resp *http.Response) (result User, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1101,7 +1102,6 @@ func (client BaseClient) UpdateSourceControlSender(req *http.Request) (*http.Res func (client BaseClient) UpdateSourceControlResponder(resp *http.Response) (result SourceControl, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1193,7 +1193,6 @@ func (client BaseClient) ValidateSender(req *http.Request) (*http.Response, erro func (client BaseClient) ValidateResponder(resp *http.Response) (result ValidateResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1284,7 +1283,6 @@ func (client BaseClient) ValidateMoveSender(req *http.Request) (*http.Response, func (client BaseClient) ValidateMoveResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -1359,7 +1357,6 @@ func (client BaseClient) VerifyHostingEnvironmentVnetSender(req *http.Request) ( func (client BaseClient) VerifyHostingEnvironmentVnetResponder(resp *http.Response) (result VnetValidationFailureDetails, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/deletedwebapps.go b/services/web/mgmt/2016-09-01/web/deletedwebapps.go index 6f419992e649..cf1fa1627837 100644 --- a/services/web/mgmt/2016-09-01/web/deletedwebapps.go +++ b/services/web/mgmt/2016-09-01/web/deletedwebapps.go @@ -71,6 +71,9 @@ func (client DeletedWebAppsClient) List(ctx context.Context) (result DeletedWebA if err != nil { err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "List", resp, "Failure responding to request") } + if result.dwac.hasNextLink() && result.dwac.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -105,7 +108,6 @@ func (client DeletedWebAppsClient) ListSender(req *http.Request) (*http.Response func (client DeletedWebAppsClient) ListResponder(resp *http.Response) (result DeletedWebAppCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/diagnostics.go b/services/web/mgmt/2016-09-01/web/diagnostics.go index 424c60a9f3e0..6411ea992873 100644 --- a/services/web/mgmt/2016-09-01/web/diagnostics.go +++ b/services/web/mgmt/2016-09-01/web/diagnostics.go @@ -138,7 +138,6 @@ func (client DiagnosticsClient) ExecuteSiteAnalysisSender(req *http.Request) (*h func (client DiagnosticsClient) ExecuteSiteAnalysisResponder(resp *http.Response) (result DiagnosticAnalysis, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -243,7 +242,6 @@ func (client DiagnosticsClient) ExecuteSiteAnalysisSlotSender(req *http.Request) func (client DiagnosticsClient) ExecuteSiteAnalysisSlotResponder(resp *http.Response) (result DiagnosticAnalysis, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -346,7 +344,6 @@ func (client DiagnosticsClient) ExecuteSiteDetectorSender(req *http.Request) (*h func (client DiagnosticsClient) ExecuteSiteDetectorResponder(resp *http.Response) (result DiagnosticDetectorResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -451,7 +448,6 @@ func (client DiagnosticsClient) ExecuteSiteDetectorSlotSender(req *http.Request) func (client DiagnosticsClient) ExecuteSiteDetectorSlotResponder(resp *http.Response) (result DiagnosticDetectorResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -552,7 +548,6 @@ func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponseSender(req func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponseResponder(resp *http.Response) (result DetectorResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -640,7 +635,6 @@ func (client DiagnosticsClient) GetSiteAnalysisSender(req *http.Request) (*http. func (client DiagnosticsClient) GetSiteAnalysisResponder(resp *http.Response) (result DiagnosticAnalysis, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -730,7 +724,6 @@ func (client DiagnosticsClient) GetSiteAnalysisSlotSender(req *http.Request) (*h func (client DiagnosticsClient) GetSiteAnalysisSlotResponder(resp *http.Response) (result DiagnosticAnalysis, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -781,6 +774,9 @@ func (client DiagnosticsClient) GetSiteDetector(ctx context.Context, resourceGro if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetector", resp, "Failure responding to request") } + if result.ddc.hasNextLink() && result.ddc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -819,7 +815,6 @@ func (client DiagnosticsClient) GetSiteDetectorSender(req *http.Request) (*http. func (client DiagnosticsClient) GetSiteDetectorResponder(resp *http.Response) (result DiagnosticDetectorCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -957,7 +952,6 @@ func (client DiagnosticsClient) GetSiteDetectorResponseSender(req *http.Request) func (client DiagnosticsClient) GetSiteDetectorResponseResponder(resp *http.Response) (result DetectorResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1060,7 +1054,6 @@ func (client DiagnosticsClient) GetSiteDetectorResponseSlotSender(req *http.Requ func (client DiagnosticsClient) GetSiteDetectorResponseSlotResponder(resp *http.Response) (result DetectorResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1112,6 +1105,9 @@ func (client DiagnosticsClient) GetSiteDetectorSlot(ctx context.Context, resourc if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorSlot", resp, "Failure responding to request") } + if result.ddc.hasNextLink() && result.ddc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1151,7 +1147,6 @@ func (client DiagnosticsClient) GetSiteDetectorSlotSender(req *http.Request) (*h func (client DiagnosticsClient) GetSiteDetectorSlotResponder(resp *http.Response) (result DiagnosticDetectorCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1274,7 +1269,6 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategorySender(req *http.Reques func (client DiagnosticsClient) GetSiteDiagnosticCategoryResponder(resp *http.Response) (result DiagnosticCategory, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1362,7 +1356,6 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategorySlotSender(req *http.Re func (client DiagnosticsClient) GetSiteDiagnosticCategorySlotResponder(resp *http.Response) (result DiagnosticCategory, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1411,6 +1404,9 @@ func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx cont if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListHostingEnvironmentDetectorResponses", resp, "Failure responding to request") } + if result.drc.hasNextLink() && result.drc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1447,7 +1443,6 @@ func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponsesSender(re func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponsesResponder(resp *http.Response) (result DetectorResponseCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1534,6 +1529,9 @@ func (client DiagnosticsClient) ListSiteAnalyses(ctx context.Context, resourceGr if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteAnalyses", resp, "Failure responding to request") } + if result.dac.hasNextLink() && result.dac.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1571,7 +1569,6 @@ func (client DiagnosticsClient) ListSiteAnalysesSender(req *http.Request) (*http func (client DiagnosticsClient) ListSiteAnalysesResponder(resp *http.Response) (result DiagnosticAnalysisCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1659,6 +1656,9 @@ func (client DiagnosticsClient) ListSiteAnalysesSlot(ctx context.Context, resour if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteAnalysesSlot", resp, "Failure responding to request") } + if result.dac.hasNextLink() && result.dac.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1697,7 +1697,6 @@ func (client DiagnosticsClient) ListSiteAnalysesSlotSender(req *http.Request) (* func (client DiagnosticsClient) ListSiteAnalysesSlotResponder(resp *http.Response) (result DiagnosticAnalysisCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1783,6 +1782,9 @@ func (client DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, r if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponses", resp, "Failure responding to request") } + if result.drc.hasNextLink() && result.drc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1819,7 +1821,6 @@ func (client DiagnosticsClient) ListSiteDetectorResponsesSender(req *http.Reques func (client DiagnosticsClient) ListSiteDetectorResponsesResponder(resp *http.Response) (result DetectorResponseCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1906,6 +1907,9 @@ func (client DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Contex if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponsesSlot", resp, "Failure responding to request") } + if result.drc.hasNextLink() && result.drc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1943,7 +1947,6 @@ func (client DiagnosticsClient) ListSiteDetectorResponsesSlotSender(req *http.Re func (client DiagnosticsClient) ListSiteDetectorResponsesSlotResponder(resp *http.Response) (result DetectorResponseCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2030,6 +2033,9 @@ func (client DiagnosticsClient) ListSiteDetectors(ctx context.Context, resourceG if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectors", resp, "Failure responding to request") } + if result.ddc.hasNextLink() && result.ddc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2067,7 +2073,6 @@ func (client DiagnosticsClient) ListSiteDetectorsSender(req *http.Request) (*htt func (client DiagnosticsClient) ListSiteDetectorsResponder(resp *http.Response) (result DiagnosticDetectorCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2155,6 +2160,9 @@ func (client DiagnosticsClient) ListSiteDetectorsSlot(ctx context.Context, resou if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorsSlot", resp, "Failure responding to request") } + if result.ddc.hasNextLink() && result.ddc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2193,7 +2201,6 @@ func (client DiagnosticsClient) ListSiteDetectorsSlotSender(req *http.Request) ( func (client DiagnosticsClient) ListSiteDetectorsSlotResponder(resp *http.Response) (result DiagnosticDetectorCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2279,6 +2286,9 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategories(ctx context.Context if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDiagnosticCategories", resp, "Failure responding to request") } + if result.dcc.hasNextLink() && result.dcc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2315,7 +2325,6 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategoriesSender(req *http.Req func (client DiagnosticsClient) ListSiteDiagnosticCategoriesResponder(resp *http.Response) (result DiagnosticCategoryCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -2402,6 +2411,9 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategoriesSlot(ctx context.Con if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDiagnosticCategoriesSlot", resp, "Failure responding to request") } + if result.dcc.hasNextLink() && result.dcc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -2439,7 +2451,6 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategoriesSlotSender(req *http func (client DiagnosticsClient) ListSiteDiagnosticCategoriesSlotResponder(resp *http.Response) (result DiagnosticCategoryCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/domainregistrationprovider.go b/services/web/mgmt/2016-09-01/web/domainregistrationprovider.go index 2b98e8967699..7404c6eaef4a 100644 --- a/services/web/mgmt/2016-09-01/web/domainregistrationprovider.go +++ b/services/web/mgmt/2016-09-01/web/domainregistrationprovider.go @@ -72,6 +72,9 @@ func (client DomainRegistrationProviderClient) ListOperations(ctx context.Contex if err != nil { err = autorest.NewErrorWithError(err, "web.DomainRegistrationProviderClient", "ListOperations", resp, "Failure responding to request") } + if result.coc.hasNextLink() && result.coc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -102,7 +105,6 @@ func (client DomainRegistrationProviderClient) ListOperationsSender(req *http.Re func (client DomainRegistrationProviderClient) ListOperationsResponder(resp *http.Response) (result CsmOperationCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/domains.go b/services/web/mgmt/2016-09-01/web/domains.go index b8290d1fa000..30049a315ec0 100644 --- a/services/web/mgmt/2016-09-01/web/domains.go +++ b/services/web/mgmt/2016-09-01/web/domains.go @@ -109,7 +109,6 @@ func (client DomainsClient) CheckAvailabilitySender(req *http.Request) (*http.Re func (client DomainsClient) CheckAvailabilityResponder(resp *http.Response) (result DomainAvailablilityCheckResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -254,7 +253,6 @@ func (client DomainsClient) CreateOrUpdateSender(req *http.Request) (future Doma func (client DomainsClient) CreateOrUpdateResponder(resp *http.Response) (result Domain, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -344,7 +342,6 @@ func (client DomainsClient) CreateOrUpdateOwnershipIdentifierSender(req *http.Re func (client DomainsClient) CreateOrUpdateOwnershipIdentifierResponder(resp *http.Response) (result DomainOwnershipIdentifier, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -433,7 +430,6 @@ func (client DomainsClient) DeleteSender(req *http.Request) (*http.Response, err func (client DomainsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -518,7 +514,6 @@ func (client DomainsClient) DeleteOwnershipIdentifierSender(req *http.Request) ( func (client DomainsClient) DeleteOwnershipIdentifierResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -601,7 +596,6 @@ func (client DomainsClient) GetSender(req *http.Request) (*http.Response, error) func (client DomainsClient) GetResponder(resp *http.Response) (result Domain, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -672,7 +666,6 @@ func (client DomainsClient) GetControlCenterSsoRequestSender(req *http.Request) func (client DomainsClient) GetControlCenterSsoRequestResponder(resp *http.Response) (result DomainControlCenterSsoRequest, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -758,7 +751,6 @@ func (client DomainsClient) GetOwnershipIdentifierSender(req *http.Request) (*ht func (client DomainsClient) GetOwnershipIdentifierResponder(resp *http.Response) (result DomainOwnershipIdentifier, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -796,6 +788,9 @@ func (client DomainsClient) List(ctx context.Context) (result DomainCollectionPa if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "List", resp, "Failure responding to request") } + if result.dc.hasNextLink() && result.dc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -830,7 +825,6 @@ func (client DomainsClient) ListSender(req *http.Request) (*http.Response, error func (client DomainsClient) ListResponder(resp *http.Response) (result DomainCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -915,6 +909,9 @@ func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGro if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListByResourceGroup", resp, "Failure responding to request") } + if result.dc.hasNextLink() && result.dc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -950,7 +947,6 @@ func (client DomainsClient) ListByResourceGroupSender(req *http.Request) (*http. func (client DomainsClient) ListByResourceGroupResponder(resp *http.Response) (result DomainCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1036,6 +1032,9 @@ func (client DomainsClient) ListOwnershipIdentifiers(ctx context.Context, resour if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListOwnershipIdentifiers", resp, "Failure responding to request") } + if result.doic.hasNextLink() && result.doic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1072,7 +1071,6 @@ func (client DomainsClient) ListOwnershipIdentifiersSender(req *http.Request) (* func (client DomainsClient) ListOwnershipIdentifiersResponder(resp *http.Response) (result DomainOwnershipIdentifierCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1149,6 +1147,9 @@ func (client DomainsClient) ListRecommendations(ctx context.Context, parameters if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsClient", "ListRecommendations", resp, "Failure responding to request") } + if result.nic.hasNextLink() && result.nic.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -1185,7 +1186,6 @@ func (client DomainsClient) ListRecommendationsSender(req *http.Request) (*http. func (client DomainsClient) ListRecommendationsResponder(resp *http.Response) (result NameIdentifierCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1306,7 +1306,6 @@ func (client DomainsClient) RenewSender(req *http.Request) (*http.Response, erro func (client DomainsClient) RenewResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -1394,7 +1393,6 @@ func (client DomainsClient) UpdateSender(req *http.Request) (*http.Response, err func (client DomainsClient) UpdateResponder(resp *http.Response) (result Domain, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1484,7 +1482,6 @@ func (client DomainsClient) UpdateOwnershipIdentifierSender(req *http.Request) ( func (client DomainsClient) UpdateOwnershipIdentifierResponder(resp *http.Response) (result DomainOwnershipIdentifier, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/enums.go b/services/web/mgmt/2016-09-01/web/enums.go new file mode 100644 index 000000000000..afaec49d0e64 --- /dev/null +++ b/services/web/mgmt/2016-09-01/web/enums.go @@ -0,0 +1,1207 @@ +package web + +// 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. + +// AccessControlEntryAction enumerates the values for access control entry action. +type AccessControlEntryAction string + +const ( + // Deny ... + Deny AccessControlEntryAction = "Deny" + // Permit ... + Permit AccessControlEntryAction = "Permit" +) + +// PossibleAccessControlEntryActionValues returns an array of possible values for the AccessControlEntryAction const type. +func PossibleAccessControlEntryActionValues() []AccessControlEntryAction { + return []AccessControlEntryAction{Deny, Permit} +} + +// AppServicePlanRestrictions enumerates the values for app service plan restrictions. +type AppServicePlanRestrictions string + +const ( + // Basic ... + Basic AppServicePlanRestrictions = "Basic" + // Free ... + Free AppServicePlanRestrictions = "Free" + // None ... + None AppServicePlanRestrictions = "None" + // Premium ... + Premium AppServicePlanRestrictions = "Premium" + // Shared ... + Shared AppServicePlanRestrictions = "Shared" + // Standard ... + Standard AppServicePlanRestrictions = "Standard" +) + +// PossibleAppServicePlanRestrictionsValues returns an array of possible values for the AppServicePlanRestrictions const type. +func PossibleAppServicePlanRestrictionsValues() []AppServicePlanRestrictions { + return []AppServicePlanRestrictions{Basic, Free, None, Premium, Shared, Standard} +} + +// AutoHealActionType enumerates the values for auto heal action type. +type AutoHealActionType string + +const ( + // CustomAction ... + CustomAction AutoHealActionType = "CustomAction" + // LogEvent ... + LogEvent AutoHealActionType = "LogEvent" + // Recycle ... + Recycle AutoHealActionType = "Recycle" +) + +// PossibleAutoHealActionTypeValues returns an array of possible values for the AutoHealActionType const type. +func PossibleAutoHealActionTypeValues() []AutoHealActionType { + return []AutoHealActionType{CustomAction, LogEvent, Recycle} +} + +// AzureResourceType enumerates the values for azure resource type. +type AzureResourceType string + +const ( + // TrafficManager ... + TrafficManager AzureResourceType = "TrafficManager" + // Website ... + Website AzureResourceType = "Website" +) + +// PossibleAzureResourceTypeValues returns an array of possible values for the AzureResourceType const type. +func PossibleAzureResourceTypeValues() []AzureResourceType { + return []AzureResourceType{TrafficManager, Website} +} + +// BackupItemStatus enumerates the values for backup item status. +type BackupItemStatus string + +const ( + // Created ... + Created BackupItemStatus = "Created" + // Deleted ... + Deleted BackupItemStatus = "Deleted" + // DeleteFailed ... + DeleteFailed BackupItemStatus = "DeleteFailed" + // DeleteInProgress ... + DeleteInProgress BackupItemStatus = "DeleteInProgress" + // Failed ... + Failed BackupItemStatus = "Failed" + // InProgress ... + InProgress BackupItemStatus = "InProgress" + // PartiallySucceeded ... + PartiallySucceeded BackupItemStatus = "PartiallySucceeded" + // Skipped ... + Skipped BackupItemStatus = "Skipped" + // Succeeded ... + Succeeded BackupItemStatus = "Succeeded" + // TimedOut ... + TimedOut BackupItemStatus = "TimedOut" +) + +// PossibleBackupItemStatusValues returns an array of possible values for the BackupItemStatus const type. +func PossibleBackupItemStatusValues() []BackupItemStatus { + return []BackupItemStatus{Created, Deleted, DeleteFailed, DeleteInProgress, Failed, InProgress, PartiallySucceeded, Skipped, Succeeded, TimedOut} +} + +// BackupRestoreOperationType enumerates the values for backup restore operation type. +type BackupRestoreOperationType string + +const ( + // BackupRestoreOperationTypeClone ... + BackupRestoreOperationTypeClone BackupRestoreOperationType = "Clone" + // BackupRestoreOperationTypeDefault ... + BackupRestoreOperationTypeDefault BackupRestoreOperationType = "Default" + // BackupRestoreOperationTypeRelocation ... + BackupRestoreOperationTypeRelocation BackupRestoreOperationType = "Relocation" + // BackupRestoreOperationTypeSnapshot ... + BackupRestoreOperationTypeSnapshot BackupRestoreOperationType = "Snapshot" +) + +// PossibleBackupRestoreOperationTypeValues returns an array of possible values for the BackupRestoreOperationType const type. +func PossibleBackupRestoreOperationTypeValues() []BackupRestoreOperationType { + return []BackupRestoreOperationType{BackupRestoreOperationTypeClone, BackupRestoreOperationTypeDefault, BackupRestoreOperationTypeRelocation, BackupRestoreOperationTypeSnapshot} +} + +// BuiltInAuthenticationProvider enumerates the values for built in authentication provider. +type BuiltInAuthenticationProvider string + +const ( + // AzureActiveDirectory ... + AzureActiveDirectory BuiltInAuthenticationProvider = "AzureActiveDirectory" + // Facebook ... + Facebook BuiltInAuthenticationProvider = "Facebook" + // Google ... + Google BuiltInAuthenticationProvider = "Google" + // MicrosoftAccount ... + MicrosoftAccount BuiltInAuthenticationProvider = "MicrosoftAccount" + // Twitter ... + Twitter BuiltInAuthenticationProvider = "Twitter" +) + +// PossibleBuiltInAuthenticationProviderValues returns an array of possible values for the BuiltInAuthenticationProvider const type. +func PossibleBuiltInAuthenticationProviderValues() []BuiltInAuthenticationProvider { + return []BuiltInAuthenticationProvider{AzureActiveDirectory, Facebook, Google, MicrosoftAccount, Twitter} +} + +// CertificateOrderActionType enumerates the values for certificate order action type. +type CertificateOrderActionType string + +const ( + // CertificateExpirationWarning ... + CertificateExpirationWarning CertificateOrderActionType = "CertificateExpirationWarning" + // CertificateExpired ... + CertificateExpired CertificateOrderActionType = "CertificateExpired" + // CertificateIssued ... + CertificateIssued CertificateOrderActionType = "CertificateIssued" + // CertificateOrderCanceled ... + CertificateOrderCanceled CertificateOrderActionType = "CertificateOrderCanceled" + // CertificateOrderCreated ... + CertificateOrderCreated CertificateOrderActionType = "CertificateOrderCreated" + // CertificateRevoked ... + CertificateRevoked CertificateOrderActionType = "CertificateRevoked" + // DomainValidationComplete ... + DomainValidationComplete CertificateOrderActionType = "DomainValidationComplete" + // FraudCleared ... + FraudCleared CertificateOrderActionType = "FraudCleared" + // FraudDetected ... + FraudDetected CertificateOrderActionType = "FraudDetected" + // FraudDocumentationRequired ... + FraudDocumentationRequired CertificateOrderActionType = "FraudDocumentationRequired" + // OrgNameChange ... + OrgNameChange CertificateOrderActionType = "OrgNameChange" + // OrgValidationComplete ... + OrgValidationComplete CertificateOrderActionType = "OrgValidationComplete" + // SanDrop ... + SanDrop CertificateOrderActionType = "SanDrop" + // Unknown ... + Unknown CertificateOrderActionType = "Unknown" +) + +// PossibleCertificateOrderActionTypeValues returns an array of possible values for the CertificateOrderActionType const type. +func PossibleCertificateOrderActionTypeValues() []CertificateOrderActionType { + return []CertificateOrderActionType{CertificateExpirationWarning, CertificateExpired, CertificateIssued, CertificateOrderCanceled, CertificateOrderCreated, CertificateRevoked, DomainValidationComplete, FraudCleared, FraudDetected, FraudDocumentationRequired, OrgNameChange, OrgValidationComplete, SanDrop, Unknown} +} + +// CertificateOrderStatus enumerates the values for certificate order status. +type CertificateOrderStatus string + +const ( + // Canceled ... + Canceled CertificateOrderStatus = "Canceled" + // Denied ... + Denied CertificateOrderStatus = "Denied" + // Expired ... + Expired CertificateOrderStatus = "Expired" + // Issued ... + Issued CertificateOrderStatus = "Issued" + // NotSubmitted ... + NotSubmitted CertificateOrderStatus = "NotSubmitted" + // Pendingissuance ... + Pendingissuance CertificateOrderStatus = "Pendingissuance" + // PendingRekey ... + PendingRekey CertificateOrderStatus = "PendingRekey" + // Pendingrevocation ... + Pendingrevocation CertificateOrderStatus = "Pendingrevocation" + // Revoked ... + Revoked CertificateOrderStatus = "Revoked" + // Unused ... + Unused CertificateOrderStatus = "Unused" +) + +// PossibleCertificateOrderStatusValues returns an array of possible values for the CertificateOrderStatus const type. +func PossibleCertificateOrderStatusValues() []CertificateOrderStatus { + return []CertificateOrderStatus{Canceled, Denied, Expired, Issued, NotSubmitted, Pendingissuance, PendingRekey, Pendingrevocation, Revoked, Unused} +} + +// CertificateProductType enumerates the values for certificate product type. +type CertificateProductType string + +const ( + // StandardDomainValidatedSsl ... + StandardDomainValidatedSsl CertificateProductType = "StandardDomainValidatedSsl" + // StandardDomainValidatedWildCardSsl ... + StandardDomainValidatedWildCardSsl CertificateProductType = "StandardDomainValidatedWildCardSsl" +) + +// PossibleCertificateProductTypeValues returns an array of possible values for the CertificateProductType const type. +func PossibleCertificateProductTypeValues() []CertificateProductType { + return []CertificateProductType{StandardDomainValidatedSsl, StandardDomainValidatedWildCardSsl} +} + +// Channels enumerates the values for channels. +type Channels string + +const ( + // All ... + All Channels = "All" + // API ... + API Channels = "Api" + // Email ... + Email Channels = "Email" + // Notification ... + Notification Channels = "Notification" + // Webhook ... + Webhook Channels = "Webhook" +) + +// PossibleChannelsValues returns an array of possible values for the Channels const type. +func PossibleChannelsValues() []Channels { + return []Channels{All, API, Email, Notification, Webhook} +} + +// CheckNameResourceTypes enumerates the values for check name resource types. +type CheckNameResourceTypes string + +const ( + // CheckNameResourceTypesHostingEnvironment ... + CheckNameResourceTypesHostingEnvironment CheckNameResourceTypes = "HostingEnvironment" + // CheckNameResourceTypesMicrosoftWebhostingEnvironments ... + CheckNameResourceTypesMicrosoftWebhostingEnvironments CheckNameResourceTypes = "Microsoft.Web/hostingEnvironments" + // CheckNameResourceTypesMicrosoftWebpublishingUsers ... + CheckNameResourceTypesMicrosoftWebpublishingUsers CheckNameResourceTypes = "Microsoft.Web/publishingUsers" + // CheckNameResourceTypesMicrosoftWebsites ... + CheckNameResourceTypesMicrosoftWebsites CheckNameResourceTypes = "Microsoft.Web/sites" + // CheckNameResourceTypesMicrosoftWebsitesslots ... + CheckNameResourceTypesMicrosoftWebsitesslots CheckNameResourceTypes = "Microsoft.Web/sites/slots" + // CheckNameResourceTypesPublishingUser ... + CheckNameResourceTypesPublishingUser CheckNameResourceTypes = "PublishingUser" + // CheckNameResourceTypesSite ... + CheckNameResourceTypesSite CheckNameResourceTypes = "Site" + // CheckNameResourceTypesSlot ... + CheckNameResourceTypesSlot CheckNameResourceTypes = "Slot" +) + +// PossibleCheckNameResourceTypesValues returns an array of possible values for the CheckNameResourceTypes const type. +func PossibleCheckNameResourceTypesValues() []CheckNameResourceTypes { + return []CheckNameResourceTypes{CheckNameResourceTypesHostingEnvironment, CheckNameResourceTypesMicrosoftWebhostingEnvironments, CheckNameResourceTypesMicrosoftWebpublishingUsers, CheckNameResourceTypesMicrosoftWebsites, CheckNameResourceTypesMicrosoftWebsitesslots, CheckNameResourceTypesPublishingUser, CheckNameResourceTypesSite, CheckNameResourceTypesSlot} +} + +// CloneAbilityResult enumerates the values for clone ability result. +type CloneAbilityResult string + +const ( + // Cloneable ... + Cloneable CloneAbilityResult = "Cloneable" + // NotCloneable ... + NotCloneable CloneAbilityResult = "NotCloneable" + // PartiallyCloneable ... + PartiallyCloneable CloneAbilityResult = "PartiallyCloneable" +) + +// PossibleCloneAbilityResultValues returns an array of possible values for the CloneAbilityResult const type. +func PossibleCloneAbilityResultValues() []CloneAbilityResult { + return []CloneAbilityResult{Cloneable, NotCloneable, PartiallyCloneable} +} + +// ComputeModeOptions enumerates the values for compute mode options. +type ComputeModeOptions string + +const ( + // ComputeModeOptionsDedicated ... + ComputeModeOptionsDedicated ComputeModeOptions = "Dedicated" + // ComputeModeOptionsDynamic ... + ComputeModeOptionsDynamic ComputeModeOptions = "Dynamic" + // ComputeModeOptionsShared ... + ComputeModeOptionsShared ComputeModeOptions = "Shared" +) + +// PossibleComputeModeOptionsValues returns an array of possible values for the ComputeModeOptions const type. +func PossibleComputeModeOptionsValues() []ComputeModeOptions { + return []ComputeModeOptions{ComputeModeOptionsDedicated, ComputeModeOptionsDynamic, ComputeModeOptionsShared} +} + +// ConnectionStringType enumerates the values for connection string type. +type ConnectionStringType string + +const ( + // APIHub ... + APIHub ConnectionStringType = "ApiHub" + // Custom ... + Custom ConnectionStringType = "Custom" + // DocDb ... + DocDb ConnectionStringType = "DocDb" + // EventHub ... + EventHub ConnectionStringType = "EventHub" + // MySQL ... + MySQL ConnectionStringType = "MySql" + // NotificationHub ... + NotificationHub ConnectionStringType = "NotificationHub" + // PostgreSQL ... + PostgreSQL ConnectionStringType = "PostgreSQL" + // RedisCache ... + RedisCache ConnectionStringType = "RedisCache" + // ServiceBus ... + ServiceBus ConnectionStringType = "ServiceBus" + // SQLAzure ... + SQLAzure ConnectionStringType = "SQLAzure" + // SQLServer ... + SQLServer ConnectionStringType = "SQLServer" +) + +// PossibleConnectionStringTypeValues returns an array of possible values for the ConnectionStringType const type. +func PossibleConnectionStringTypeValues() []ConnectionStringType { + return []ConnectionStringType{APIHub, Custom, DocDb, EventHub, MySQL, NotificationHub, PostgreSQL, RedisCache, ServiceBus, SQLAzure, SQLServer} +} + +// ContinuousWebJobStatus enumerates the values for continuous web job status. +type ContinuousWebJobStatus string + +const ( + // Initializing ... + Initializing ContinuousWebJobStatus = "Initializing" + // PendingRestart ... + PendingRestart ContinuousWebJobStatus = "PendingRestart" + // Running ... + Running ContinuousWebJobStatus = "Running" + // Starting ... + Starting ContinuousWebJobStatus = "Starting" + // Stopped ... + Stopped ContinuousWebJobStatus = "Stopped" +) + +// PossibleContinuousWebJobStatusValues returns an array of possible values for the ContinuousWebJobStatus const type. +func PossibleContinuousWebJobStatusValues() []ContinuousWebJobStatus { + return []ContinuousWebJobStatus{Initializing, PendingRestart, Running, Starting, Stopped} +} + +// CustomHostNameDNSRecordType enumerates the values for custom host name dns record type. +type CustomHostNameDNSRecordType string + +const ( + // A ... + A CustomHostNameDNSRecordType = "A" + // CName ... + CName CustomHostNameDNSRecordType = "CName" +) + +// PossibleCustomHostNameDNSRecordTypeValues returns an array of possible values for the CustomHostNameDNSRecordType const type. +func PossibleCustomHostNameDNSRecordTypeValues() []CustomHostNameDNSRecordType { + return []CustomHostNameDNSRecordType{A, CName} +} + +// DatabaseType enumerates the values for database type. +type DatabaseType string + +const ( + // DatabaseTypeLocalMySQL ... + DatabaseTypeLocalMySQL DatabaseType = "LocalMySql" + // DatabaseTypeMySQL ... + DatabaseTypeMySQL DatabaseType = "MySql" + // DatabaseTypePostgreSQL ... + DatabaseTypePostgreSQL DatabaseType = "PostgreSql" + // DatabaseTypeSQLAzure ... + DatabaseTypeSQLAzure DatabaseType = "SqlAzure" +) + +// PossibleDatabaseTypeValues returns an array of possible values for the DatabaseType const type. +func PossibleDatabaseTypeValues() []DatabaseType { + return []DatabaseType{DatabaseTypeLocalMySQL, DatabaseTypeMySQL, DatabaseTypePostgreSQL, DatabaseTypeSQLAzure} +} + +// DNSType enumerates the values for dns type. +type DNSType string + +const ( + // AzureDNS ... + AzureDNS DNSType = "AzureDns" + // DefaultDomainRegistrarDNS ... + DefaultDomainRegistrarDNS DNSType = "DefaultDomainRegistrarDns" +) + +// PossibleDNSTypeValues returns an array of possible values for the DNSType const type. +func PossibleDNSTypeValues() []DNSType { + return []DNSType{AzureDNS, DefaultDomainRegistrarDNS} +} + +// DNSVerificationTestResult enumerates the values for dns verification test result. +type DNSVerificationTestResult string + +const ( + // DNSVerificationTestResultFailed ... + DNSVerificationTestResultFailed DNSVerificationTestResult = "Failed" + // DNSVerificationTestResultPassed ... + DNSVerificationTestResultPassed DNSVerificationTestResult = "Passed" + // DNSVerificationTestResultSkipped ... + DNSVerificationTestResultSkipped DNSVerificationTestResult = "Skipped" +) + +// PossibleDNSVerificationTestResultValues returns an array of possible values for the DNSVerificationTestResult const type. +func PossibleDNSVerificationTestResultValues() []DNSVerificationTestResult { + return []DNSVerificationTestResult{DNSVerificationTestResultFailed, DNSVerificationTestResultPassed, DNSVerificationTestResultSkipped} +} + +// DomainStatus enumerates the values for domain status. +type DomainStatus string + +const ( + // DomainStatusActive ... + DomainStatusActive DomainStatus = "Active" + // DomainStatusAwaiting ... + DomainStatusAwaiting DomainStatus = "Awaiting" + // DomainStatusCancelled ... + DomainStatusCancelled DomainStatus = "Cancelled" + // DomainStatusConfiscated ... + DomainStatusConfiscated DomainStatus = "Confiscated" + // DomainStatusDisabled ... + DomainStatusDisabled DomainStatus = "Disabled" + // DomainStatusExcluded ... + DomainStatusExcluded DomainStatus = "Excluded" + // DomainStatusExpired ... + DomainStatusExpired DomainStatus = "Expired" + // DomainStatusFailed ... + DomainStatusFailed DomainStatus = "Failed" + // DomainStatusHeld ... + DomainStatusHeld DomainStatus = "Held" + // DomainStatusJSONConverterFailed ... + DomainStatusJSONConverterFailed DomainStatus = "JsonConverterFailed" + // DomainStatusLocked ... + DomainStatusLocked DomainStatus = "Locked" + // DomainStatusParked ... + DomainStatusParked DomainStatus = "Parked" + // DomainStatusPending ... + DomainStatusPending DomainStatus = "Pending" + // DomainStatusReserved ... + DomainStatusReserved DomainStatus = "Reserved" + // DomainStatusReverted ... + DomainStatusReverted DomainStatus = "Reverted" + // DomainStatusSuspended ... + DomainStatusSuspended DomainStatus = "Suspended" + // DomainStatusTransferred ... + DomainStatusTransferred DomainStatus = "Transferred" + // DomainStatusUnknown ... + DomainStatusUnknown DomainStatus = "Unknown" + // DomainStatusUnlocked ... + DomainStatusUnlocked DomainStatus = "Unlocked" + // DomainStatusUnparked ... + DomainStatusUnparked DomainStatus = "Unparked" + // DomainStatusUpdated ... + DomainStatusUpdated DomainStatus = "Updated" +) + +// PossibleDomainStatusValues returns an array of possible values for the DomainStatus const type. +func PossibleDomainStatusValues() []DomainStatus { + return []DomainStatus{DomainStatusActive, DomainStatusAwaiting, DomainStatusCancelled, DomainStatusConfiscated, DomainStatusDisabled, DomainStatusExcluded, DomainStatusExpired, DomainStatusFailed, DomainStatusHeld, DomainStatusJSONConverterFailed, DomainStatusLocked, DomainStatusParked, DomainStatusPending, DomainStatusReserved, DomainStatusReverted, DomainStatusSuspended, DomainStatusTransferred, DomainStatusUnknown, DomainStatusUnlocked, DomainStatusUnparked, DomainStatusUpdated} +} + +// DomainType enumerates the values for domain type. +type DomainType string + +const ( + // Regular ... + Regular DomainType = "Regular" + // SoftDeleted ... + SoftDeleted DomainType = "SoftDeleted" +) + +// PossibleDomainTypeValues returns an array of possible values for the DomainType const type. +func PossibleDomainTypeValues() []DomainType { + return []DomainType{Regular, SoftDeleted} +} + +// FrequencyUnit enumerates the values for frequency unit. +type FrequencyUnit string + +const ( + // Day ... + Day FrequencyUnit = "Day" + // Hour ... + Hour FrequencyUnit = "Hour" +) + +// PossibleFrequencyUnitValues returns an array of possible values for the FrequencyUnit const type. +func PossibleFrequencyUnitValues() []FrequencyUnit { + return []FrequencyUnit{Day, Hour} +} + +// HostingEnvironmentStatus enumerates the values for hosting environment status. +type HostingEnvironmentStatus string + +const ( + // Deleting ... + Deleting HostingEnvironmentStatus = "Deleting" + // Preparing ... + Preparing HostingEnvironmentStatus = "Preparing" + // Ready ... + Ready HostingEnvironmentStatus = "Ready" + // Scaling ... + Scaling HostingEnvironmentStatus = "Scaling" +) + +// PossibleHostingEnvironmentStatusValues returns an array of possible values for the HostingEnvironmentStatus const type. +func PossibleHostingEnvironmentStatusValues() []HostingEnvironmentStatus { + return []HostingEnvironmentStatus{Deleting, Preparing, Ready, Scaling} +} + +// HostNameType enumerates the values for host name type. +type HostNameType string + +const ( + // Managed ... + Managed HostNameType = "Managed" + // Verified ... + Verified HostNameType = "Verified" +) + +// PossibleHostNameTypeValues returns an array of possible values for the HostNameType const type. +func PossibleHostNameTypeValues() []HostNameType { + return []HostNameType{Managed, Verified} +} + +// HostType enumerates the values for host type. +type HostType string + +const ( + // HostTypeRepository ... + HostTypeRepository HostType = "Repository" + // HostTypeStandard ... + HostTypeStandard HostType = "Standard" +) + +// PossibleHostTypeValues returns an array of possible values for the HostType const type. +func PossibleHostTypeValues() []HostType { + return []HostType{HostTypeRepository, HostTypeStandard} +} + +// InAvailabilityReasonType enumerates the values for in availability reason type. +type InAvailabilityReasonType string + +const ( + // AlreadyExists ... + AlreadyExists InAvailabilityReasonType = "AlreadyExists" + // Invalid ... + Invalid InAvailabilityReasonType = "Invalid" +) + +// PossibleInAvailabilityReasonTypeValues returns an array of possible values for the InAvailabilityReasonType const type. +func PossibleInAvailabilityReasonTypeValues() []InAvailabilityReasonType { + return []InAvailabilityReasonType{AlreadyExists, Invalid} +} + +// InternalLoadBalancingMode enumerates the values for internal load balancing mode. +type InternalLoadBalancingMode string + +const ( + // InternalLoadBalancingModeNone ... + InternalLoadBalancingModeNone InternalLoadBalancingMode = "None" + // InternalLoadBalancingModePublishing ... + InternalLoadBalancingModePublishing InternalLoadBalancingMode = "Publishing" + // InternalLoadBalancingModeWeb ... + InternalLoadBalancingModeWeb InternalLoadBalancingMode = "Web" +) + +// PossibleInternalLoadBalancingModeValues returns an array of possible values for the InternalLoadBalancingMode const type. +func PossibleInternalLoadBalancingModeValues() []InternalLoadBalancingMode { + return []InternalLoadBalancingMode{InternalLoadBalancingModeNone, InternalLoadBalancingModePublishing, InternalLoadBalancingModeWeb} +} + +// IssueType enumerates the values for issue type. +type IssueType string + +const ( + // AppCrash ... + AppCrash IssueType = "AppCrash" + // AppDeployment ... + AppDeployment IssueType = "AppDeployment" + // AseDeployment ... + AseDeployment IssueType = "AseDeployment" + // Other ... + Other IssueType = "Other" + // PlatformIssue ... + PlatformIssue IssueType = "PlatformIssue" + // RuntimeIssueDetected ... + RuntimeIssueDetected IssueType = "RuntimeIssueDetected" + // ServiceIncident ... + ServiceIncident IssueType = "ServiceIncident" + // UserIssue ... + UserIssue IssueType = "UserIssue" +) + +// PossibleIssueTypeValues returns an array of possible values for the IssueType const type. +func PossibleIssueTypeValues() []IssueType { + return []IssueType{AppCrash, AppDeployment, AseDeployment, Other, PlatformIssue, RuntimeIssueDetected, ServiceIncident, UserIssue} +} + +// JobType enumerates the values for job type. +type JobType string + +const ( + // Continuous ... + Continuous JobType = "Continuous" + // Triggered ... + Triggered JobType = "Triggered" +) + +// PossibleJobTypeValues returns an array of possible values for the JobType const type. +func PossibleJobTypeValues() []JobType { + return []JobType{Continuous, Triggered} +} + +// KeyVaultSecretStatus enumerates the values for key vault secret status. +type KeyVaultSecretStatus string + +const ( + // KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault ... + KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault KeyVaultSecretStatus = "AzureServiceUnauthorizedToAccessKeyVault" + // KeyVaultSecretStatusCertificateOrderFailed ... + KeyVaultSecretStatusCertificateOrderFailed KeyVaultSecretStatus = "CertificateOrderFailed" + // KeyVaultSecretStatusExternalPrivateKey ... + KeyVaultSecretStatusExternalPrivateKey KeyVaultSecretStatus = "ExternalPrivateKey" + // KeyVaultSecretStatusInitialized ... + KeyVaultSecretStatusInitialized KeyVaultSecretStatus = "Initialized" + // KeyVaultSecretStatusKeyVaultDoesNotExist ... + KeyVaultSecretStatusKeyVaultDoesNotExist KeyVaultSecretStatus = "KeyVaultDoesNotExist" + // KeyVaultSecretStatusKeyVaultSecretDoesNotExist ... + KeyVaultSecretStatusKeyVaultSecretDoesNotExist KeyVaultSecretStatus = "KeyVaultSecretDoesNotExist" + // KeyVaultSecretStatusOperationNotPermittedOnKeyVault ... + KeyVaultSecretStatusOperationNotPermittedOnKeyVault KeyVaultSecretStatus = "OperationNotPermittedOnKeyVault" + // KeyVaultSecretStatusSucceeded ... + KeyVaultSecretStatusSucceeded KeyVaultSecretStatus = "Succeeded" + // KeyVaultSecretStatusUnknown ... + KeyVaultSecretStatusUnknown KeyVaultSecretStatus = "Unknown" + // KeyVaultSecretStatusUnknownError ... + KeyVaultSecretStatusUnknownError KeyVaultSecretStatus = "UnknownError" + // KeyVaultSecretStatusWaitingOnCertificateOrder ... + KeyVaultSecretStatusWaitingOnCertificateOrder KeyVaultSecretStatus = "WaitingOnCertificateOrder" +) + +// PossibleKeyVaultSecretStatusValues returns an array of possible values for the KeyVaultSecretStatus const type. +func PossibleKeyVaultSecretStatusValues() []KeyVaultSecretStatus { + return []KeyVaultSecretStatus{KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault, KeyVaultSecretStatusCertificateOrderFailed, KeyVaultSecretStatusExternalPrivateKey, KeyVaultSecretStatusInitialized, KeyVaultSecretStatusKeyVaultDoesNotExist, KeyVaultSecretStatusKeyVaultSecretDoesNotExist, KeyVaultSecretStatusOperationNotPermittedOnKeyVault, KeyVaultSecretStatusSucceeded, KeyVaultSecretStatusUnknown, KeyVaultSecretStatusUnknownError, KeyVaultSecretStatusWaitingOnCertificateOrder} +} + +// LogLevel enumerates the values for log level. +type LogLevel string + +const ( + // Error ... + Error LogLevel = "Error" + // Information ... + Information LogLevel = "Information" + // Off ... + Off LogLevel = "Off" + // Verbose ... + Verbose LogLevel = "Verbose" + // Warning ... + Warning LogLevel = "Warning" +) + +// PossibleLogLevelValues returns an array of possible values for the LogLevel const type. +func PossibleLogLevelValues() []LogLevel { + return []LogLevel{Error, Information, Off, Verbose, Warning} +} + +// ManagedPipelineMode enumerates the values for managed pipeline mode. +type ManagedPipelineMode string + +const ( + // Classic ... + Classic ManagedPipelineMode = "Classic" + // Integrated ... + Integrated ManagedPipelineMode = "Integrated" +) + +// PossibleManagedPipelineModeValues returns an array of possible values for the ManagedPipelineMode const type. +func PossibleManagedPipelineModeValues() []ManagedPipelineMode { + return []ManagedPipelineMode{Classic, Integrated} +} + +// ManagedServiceIdentityType enumerates the values for managed service identity type. +type ManagedServiceIdentityType string + +const ( + // SystemAssigned ... + SystemAssigned ManagedServiceIdentityType = "SystemAssigned" +) + +// PossibleManagedServiceIdentityTypeValues returns an array of possible values for the ManagedServiceIdentityType const type. +func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { + return []ManagedServiceIdentityType{SystemAssigned} +} + +// MSDeployLogEntryType enumerates the values for ms deploy log entry type. +type MSDeployLogEntryType string + +const ( + // MSDeployLogEntryTypeError ... + MSDeployLogEntryTypeError MSDeployLogEntryType = "Error" + // MSDeployLogEntryTypeMessage ... + MSDeployLogEntryTypeMessage MSDeployLogEntryType = "Message" + // MSDeployLogEntryTypeWarning ... + MSDeployLogEntryTypeWarning MSDeployLogEntryType = "Warning" +) + +// PossibleMSDeployLogEntryTypeValues returns an array of possible values for the MSDeployLogEntryType const type. +func PossibleMSDeployLogEntryTypeValues() []MSDeployLogEntryType { + return []MSDeployLogEntryType{MSDeployLogEntryTypeError, MSDeployLogEntryTypeMessage, MSDeployLogEntryTypeWarning} +} + +// MSDeployProvisioningState enumerates the values for ms deploy provisioning state. +type MSDeployProvisioningState string + +const ( + // MSDeployProvisioningStateAccepted ... + MSDeployProvisioningStateAccepted MSDeployProvisioningState = "accepted" + // MSDeployProvisioningStateCanceled ... + MSDeployProvisioningStateCanceled MSDeployProvisioningState = "canceled" + // MSDeployProvisioningStateFailed ... + MSDeployProvisioningStateFailed MSDeployProvisioningState = "failed" + // MSDeployProvisioningStateRunning ... + MSDeployProvisioningStateRunning MSDeployProvisioningState = "running" + // MSDeployProvisioningStateSucceeded ... + MSDeployProvisioningStateSucceeded MSDeployProvisioningState = "succeeded" +) + +// PossibleMSDeployProvisioningStateValues returns an array of possible values for the MSDeployProvisioningState const type. +func PossibleMSDeployProvisioningStateValues() []MSDeployProvisioningState { + return []MSDeployProvisioningState{MSDeployProvisioningStateAccepted, MSDeployProvisioningStateCanceled, MSDeployProvisioningStateFailed, MSDeployProvisioningStateRunning, MSDeployProvisioningStateSucceeded} +} + +// MySQLMigrationType enumerates the values for my sql migration type. +type MySQLMigrationType string + +const ( + // LocalToRemote ... + LocalToRemote MySQLMigrationType = "LocalToRemote" + // RemoteToLocal ... + RemoteToLocal MySQLMigrationType = "RemoteToLocal" +) + +// PossibleMySQLMigrationTypeValues returns an array of possible values for the MySQLMigrationType const type. +func PossibleMySQLMigrationTypeValues() []MySQLMigrationType { + return []MySQLMigrationType{LocalToRemote, RemoteToLocal} +} + +// NotificationLevel enumerates the values for notification level. +type NotificationLevel string + +const ( + // NotificationLevelCritical ... + NotificationLevelCritical NotificationLevel = "Critical" + // NotificationLevelInformation ... + NotificationLevelInformation NotificationLevel = "Information" + // NotificationLevelNonUrgentSuggestion ... + NotificationLevelNonUrgentSuggestion NotificationLevel = "NonUrgentSuggestion" + // NotificationLevelWarning ... + NotificationLevelWarning NotificationLevel = "Warning" +) + +// PossibleNotificationLevelValues returns an array of possible values for the NotificationLevel const type. +func PossibleNotificationLevelValues() []NotificationLevel { + return []NotificationLevel{NotificationLevelCritical, NotificationLevelInformation, NotificationLevelNonUrgentSuggestion, NotificationLevelWarning} +} + +// OperationStatus enumerates the values for operation status. +type OperationStatus string + +const ( + // OperationStatusCreated ... + OperationStatusCreated OperationStatus = "Created" + // OperationStatusFailed ... + OperationStatusFailed OperationStatus = "Failed" + // OperationStatusInProgress ... + OperationStatusInProgress OperationStatus = "InProgress" + // OperationStatusSucceeded ... + OperationStatusSucceeded OperationStatus = "Succeeded" + // OperationStatusTimedOut ... + OperationStatusTimedOut OperationStatus = "TimedOut" +) + +// PossibleOperationStatusValues returns an array of possible values for the OperationStatus const type. +func PossibleOperationStatusValues() []OperationStatus { + return []OperationStatus{OperationStatusCreated, OperationStatusFailed, OperationStatusInProgress, OperationStatusSucceeded, OperationStatusTimedOut} +} + +// ProvisioningState enumerates the values for provisioning state. +type ProvisioningState string + +const ( + // ProvisioningStateCanceled ... + ProvisioningStateCanceled ProvisioningState = "Canceled" + // ProvisioningStateDeleting ... + ProvisioningStateDeleting ProvisioningState = "Deleting" + // ProvisioningStateFailed ... + ProvisioningStateFailed ProvisioningState = "Failed" + // ProvisioningStateInProgress ... + ProvisioningStateInProgress ProvisioningState = "InProgress" + // ProvisioningStateSucceeded ... + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{ProvisioningStateCanceled, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateInProgress, ProvisioningStateSucceeded} +} + +// PublicCertificateLocation enumerates the values for public certificate location. +type PublicCertificateLocation string + +const ( + // PublicCertificateLocationCurrentUserMy ... + PublicCertificateLocationCurrentUserMy PublicCertificateLocation = "CurrentUserMy" + // PublicCertificateLocationLocalMachineMy ... + PublicCertificateLocationLocalMachineMy PublicCertificateLocation = "LocalMachineMy" + // PublicCertificateLocationUnknown ... + PublicCertificateLocationUnknown PublicCertificateLocation = "Unknown" +) + +// PossiblePublicCertificateLocationValues returns an array of possible values for the PublicCertificateLocation const type. +func PossiblePublicCertificateLocationValues() []PublicCertificateLocation { + return []PublicCertificateLocation{PublicCertificateLocationCurrentUserMy, PublicCertificateLocationLocalMachineMy, PublicCertificateLocationUnknown} +} + +// PublishingProfileFormat enumerates the values for publishing profile format. +type PublishingProfileFormat string + +const ( + // FileZilla3 ... + FileZilla3 PublishingProfileFormat = "FileZilla3" + // Ftp ... + Ftp PublishingProfileFormat = "Ftp" + // WebDeploy ... + WebDeploy PublishingProfileFormat = "WebDeploy" +) + +// PossiblePublishingProfileFormatValues returns an array of possible values for the PublishingProfileFormat const type. +func PossiblePublishingProfileFormatValues() []PublishingProfileFormat { + return []PublishingProfileFormat{FileZilla3, Ftp, WebDeploy} +} + +// RenderingType enumerates the values for rendering type. +type RenderingType string + +const ( + // NoGraph ... + NoGraph RenderingType = "NoGraph" + // Table ... + Table RenderingType = "Table" + // TimeSeries ... + TimeSeries RenderingType = "TimeSeries" + // TimeSeriesPerInstance ... + TimeSeriesPerInstance RenderingType = "TimeSeriesPerInstance" +) + +// PossibleRenderingTypeValues returns an array of possible values for the RenderingType const type. +func PossibleRenderingTypeValues() []RenderingType { + return []RenderingType{NoGraph, Table, TimeSeries, TimeSeriesPerInstance} +} + +// ResourceScopeType enumerates the values for resource scope type. +type ResourceScopeType string + +const ( + // ServerFarm ... + ServerFarm ResourceScopeType = "ServerFarm" + // Subscription ... + Subscription ResourceScopeType = "Subscription" + // WebSite ... + WebSite ResourceScopeType = "WebSite" +) + +// PossibleResourceScopeTypeValues returns an array of possible values for the ResourceScopeType const type. +func PossibleResourceScopeTypeValues() []ResourceScopeType { + return []ResourceScopeType{ServerFarm, Subscription, WebSite} +} + +// RouteType enumerates the values for route type. +type RouteType string + +const ( + // DEFAULT ... + DEFAULT RouteType = "DEFAULT" + // INHERITED ... + INHERITED RouteType = "INHERITED" + // STATIC ... + STATIC RouteType = "STATIC" +) + +// PossibleRouteTypeValues returns an array of possible values for the RouteType const type. +func PossibleRouteTypeValues() []RouteType { + return []RouteType{DEFAULT, INHERITED, STATIC} +} + +// ScmType enumerates the values for scm type. +type ScmType string + +const ( + // ScmTypeBitbucketGit ... + ScmTypeBitbucketGit ScmType = "BitbucketGit" + // ScmTypeBitbucketHg ... + ScmTypeBitbucketHg ScmType = "BitbucketHg" + // ScmTypeCodePlexGit ... + ScmTypeCodePlexGit ScmType = "CodePlexGit" + // ScmTypeCodePlexHg ... + ScmTypeCodePlexHg ScmType = "CodePlexHg" + // ScmTypeDropbox ... + ScmTypeDropbox ScmType = "Dropbox" + // ScmTypeExternalGit ... + ScmTypeExternalGit ScmType = "ExternalGit" + // ScmTypeExternalHg ... + ScmTypeExternalHg ScmType = "ExternalHg" + // ScmTypeGitHub ... + ScmTypeGitHub ScmType = "GitHub" + // ScmTypeLocalGit ... + ScmTypeLocalGit ScmType = "LocalGit" + // ScmTypeNone ... + ScmTypeNone ScmType = "None" + // ScmTypeOneDrive ... + ScmTypeOneDrive ScmType = "OneDrive" + // ScmTypeTfs ... + ScmTypeTfs ScmType = "Tfs" + // ScmTypeVSO ... + ScmTypeVSO ScmType = "VSO" +) + +// PossibleScmTypeValues returns an array of possible values for the ScmType const type. +func PossibleScmTypeValues() []ScmType { + return []ScmType{ScmTypeBitbucketGit, ScmTypeBitbucketHg, ScmTypeCodePlexGit, ScmTypeCodePlexHg, ScmTypeDropbox, ScmTypeExternalGit, ScmTypeExternalHg, ScmTypeGitHub, ScmTypeLocalGit, ScmTypeNone, ScmTypeOneDrive, ScmTypeTfs, ScmTypeVSO} +} + +// SiteAvailabilityState enumerates the values for site availability state. +type SiteAvailabilityState string + +const ( + // DisasterRecoveryMode ... + DisasterRecoveryMode SiteAvailabilityState = "DisasterRecoveryMode" + // Limited ... + Limited SiteAvailabilityState = "Limited" + // Normal ... + Normal SiteAvailabilityState = "Normal" +) + +// PossibleSiteAvailabilityStateValues returns an array of possible values for the SiteAvailabilityState const type. +func PossibleSiteAvailabilityStateValues() []SiteAvailabilityState { + return []SiteAvailabilityState{DisasterRecoveryMode, Limited, Normal} +} + +// SiteExtensionType enumerates the values for site extension type. +type SiteExtensionType string + +const ( + // Gallery ... + Gallery SiteExtensionType = "Gallery" + // WebRoot ... + WebRoot SiteExtensionType = "WebRoot" +) + +// PossibleSiteExtensionTypeValues returns an array of possible values for the SiteExtensionType const type. +func PossibleSiteExtensionTypeValues() []SiteExtensionType { + return []SiteExtensionType{Gallery, WebRoot} +} + +// SiteLoadBalancing enumerates the values for site load balancing. +type SiteLoadBalancing string + +const ( + // LeastRequests ... + LeastRequests SiteLoadBalancing = "LeastRequests" + // LeastResponseTime ... + LeastResponseTime SiteLoadBalancing = "LeastResponseTime" + // RequestHash ... + RequestHash SiteLoadBalancing = "RequestHash" + // WeightedRoundRobin ... + WeightedRoundRobin SiteLoadBalancing = "WeightedRoundRobin" + // WeightedTotalTraffic ... + WeightedTotalTraffic SiteLoadBalancing = "WeightedTotalTraffic" +) + +// PossibleSiteLoadBalancingValues returns an array of possible values for the SiteLoadBalancing const type. +func PossibleSiteLoadBalancingValues() []SiteLoadBalancing { + return []SiteLoadBalancing{LeastRequests, LeastResponseTime, RequestHash, WeightedRoundRobin, WeightedTotalTraffic} +} + +// SkuName enumerates the values for sku name. +type SkuName string + +const ( + // SkuNameBasic ... + SkuNameBasic SkuName = "Basic" + // SkuNameDynamic ... + SkuNameDynamic SkuName = "Dynamic" + // SkuNameFree ... + SkuNameFree SkuName = "Free" + // SkuNameIsolated ... + SkuNameIsolated SkuName = "Isolated" + // SkuNamePremium ... + SkuNamePremium SkuName = "Premium" + // SkuNamePremiumV2 ... + SkuNamePremiumV2 SkuName = "PremiumV2" + // SkuNameShared ... + SkuNameShared SkuName = "Shared" + // SkuNameStandard ... + SkuNameStandard SkuName = "Standard" +) + +// PossibleSkuNameValues returns an array of possible values for the SkuName const type. +func PossibleSkuNameValues() []SkuName { + return []SkuName{SkuNameBasic, SkuNameDynamic, SkuNameFree, SkuNameIsolated, SkuNamePremium, SkuNamePremiumV2, SkuNameShared, SkuNameStandard} +} + +// SolutionType enumerates the values for solution type. +type SolutionType string + +const ( + // BestPractices ... + BestPractices SolutionType = "BestPractices" + // DeepInvestigation ... + DeepInvestigation SolutionType = "DeepInvestigation" + // QuickSolution ... + QuickSolution SolutionType = "QuickSolution" +) + +// PossibleSolutionTypeValues returns an array of possible values for the SolutionType const type. +func PossibleSolutionTypeValues() []SolutionType { + return []SolutionType{BestPractices, DeepInvestigation, QuickSolution} +} + +// SslState enumerates the values for ssl state. +type SslState string + +const ( + // Disabled ... + Disabled SslState = "Disabled" + // IPBasedEnabled ... + IPBasedEnabled SslState = "IpBasedEnabled" + // SniEnabled ... + SniEnabled SslState = "SniEnabled" +) + +// PossibleSslStateValues returns an array of possible values for the SslState const type. +func PossibleSslStateValues() []SslState { + return []SslState{Disabled, IPBasedEnabled, SniEnabled} +} + +// StatusOptions enumerates the values for status options. +type StatusOptions string + +const ( + // StatusOptionsCreating ... + StatusOptionsCreating StatusOptions = "Creating" + // StatusOptionsPending ... + StatusOptionsPending StatusOptions = "Pending" + // StatusOptionsReady ... + StatusOptionsReady StatusOptions = "Ready" +) + +// PossibleStatusOptionsValues returns an array of possible values for the StatusOptions const type. +func PossibleStatusOptionsValues() []StatusOptions { + return []StatusOptions{StatusOptionsCreating, StatusOptionsPending, StatusOptionsReady} +} + +// SupportedTLSVersions enumerates the values for supported tls versions. +type SupportedTLSVersions string + +const ( + // OneFullStopOne ... + OneFullStopOne SupportedTLSVersions = "1.1" + // OneFullStopTwo ... + OneFullStopTwo SupportedTLSVersions = "1.2" + // OneFullStopZero ... + OneFullStopZero SupportedTLSVersions = "1.0" +) + +// PossibleSupportedTLSVersionsValues returns an array of possible values for the SupportedTLSVersions const type. +func PossibleSupportedTLSVersionsValues() []SupportedTLSVersions { + return []SupportedTLSVersions{OneFullStopOne, OneFullStopTwo, OneFullStopZero} +} + +// TriggeredWebJobStatus enumerates the values for triggered web job status. +type TriggeredWebJobStatus string + +const ( + // TriggeredWebJobStatusError ... + TriggeredWebJobStatusError TriggeredWebJobStatus = "Error" + // TriggeredWebJobStatusFailed ... + TriggeredWebJobStatusFailed TriggeredWebJobStatus = "Failed" + // TriggeredWebJobStatusSuccess ... + TriggeredWebJobStatusSuccess TriggeredWebJobStatus = "Success" +) + +// PossibleTriggeredWebJobStatusValues returns an array of possible values for the TriggeredWebJobStatus const type. +func PossibleTriggeredWebJobStatusValues() []TriggeredWebJobStatus { + return []TriggeredWebJobStatus{TriggeredWebJobStatusError, TriggeredWebJobStatusFailed, TriggeredWebJobStatusSuccess} +} + +// UnauthenticatedClientAction enumerates the values for unauthenticated client action. +type UnauthenticatedClientAction string + +const ( + // AllowAnonymous ... + AllowAnonymous UnauthenticatedClientAction = "AllowAnonymous" + // RedirectToLoginPage ... + RedirectToLoginPage UnauthenticatedClientAction = "RedirectToLoginPage" +) + +// PossibleUnauthenticatedClientActionValues returns an array of possible values for the UnauthenticatedClientAction const type. +func PossibleUnauthenticatedClientActionValues() []UnauthenticatedClientAction { + return []UnauthenticatedClientAction{AllowAnonymous, RedirectToLoginPage} +} + +// UsageState enumerates the values for usage state. +type UsageState string + +const ( + // UsageStateExceeded ... + UsageStateExceeded UsageState = "Exceeded" + // UsageStateNormal ... + UsageStateNormal UsageState = "Normal" +) + +// PossibleUsageStateValues returns an array of possible values for the UsageState const type. +func PossibleUsageStateValues() []UsageState { + return []UsageState{UsageStateExceeded, UsageStateNormal} +} + +// ValidateResourceTypes enumerates the values for validate resource types. +type ValidateResourceTypes string + +const ( + // ValidateResourceTypesServerFarm ... + ValidateResourceTypesServerFarm ValidateResourceTypes = "ServerFarm" + // ValidateResourceTypesSite ... + ValidateResourceTypesSite ValidateResourceTypes = "Site" +) + +// PossibleValidateResourceTypesValues returns an array of possible values for the ValidateResourceTypes const type. +func PossibleValidateResourceTypesValues() []ValidateResourceTypes { + return []ValidateResourceTypes{ValidateResourceTypesServerFarm, ValidateResourceTypesSite} +} + +// WorkerSizeOptions enumerates the values for worker size options. +type WorkerSizeOptions string + +const ( + // D1 ... + D1 WorkerSizeOptions = "D1" + // D2 ... + D2 WorkerSizeOptions = "D2" + // D3 ... + D3 WorkerSizeOptions = "D3" + // Default ... + Default WorkerSizeOptions = "Default" + // Large ... + Large WorkerSizeOptions = "Large" + // Medium ... + Medium WorkerSizeOptions = "Medium" + // Small ... + Small WorkerSizeOptions = "Small" +) + +// PossibleWorkerSizeOptionsValues returns an array of possible values for the WorkerSizeOptions const type. +func PossibleWorkerSizeOptionsValues() []WorkerSizeOptions { + return []WorkerSizeOptions{D1, D2, D3, Default, Large, Medium, Small} +} diff --git a/services/web/mgmt/2016-09-01/web/models.go b/services/web/mgmt/2016-09-01/web/models.go index 596d85ef9d16..835c26ba2acc 100644 --- a/services/web/mgmt/2016-09-01/web/models.go +++ b/services/web/mgmt/2016-09-01/web/models.go @@ -33,1195 +33,6 @@ import ( // The package's fully qualified name. const fqdn = "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2016-09-01/web" -// AccessControlEntryAction enumerates the values for access control entry action. -type AccessControlEntryAction string - -const ( - // Deny ... - Deny AccessControlEntryAction = "Deny" - // Permit ... - Permit AccessControlEntryAction = "Permit" -) - -// PossibleAccessControlEntryActionValues returns an array of possible values for the AccessControlEntryAction const type. -func PossibleAccessControlEntryActionValues() []AccessControlEntryAction { - return []AccessControlEntryAction{Deny, Permit} -} - -// AppServicePlanRestrictions enumerates the values for app service plan restrictions. -type AppServicePlanRestrictions string - -const ( - // Basic ... - Basic AppServicePlanRestrictions = "Basic" - // Free ... - Free AppServicePlanRestrictions = "Free" - // None ... - None AppServicePlanRestrictions = "None" - // Premium ... - Premium AppServicePlanRestrictions = "Premium" - // Shared ... - Shared AppServicePlanRestrictions = "Shared" - // Standard ... - Standard AppServicePlanRestrictions = "Standard" -) - -// PossibleAppServicePlanRestrictionsValues returns an array of possible values for the AppServicePlanRestrictions const type. -func PossibleAppServicePlanRestrictionsValues() []AppServicePlanRestrictions { - return []AppServicePlanRestrictions{Basic, Free, None, Premium, Shared, Standard} -} - -// AutoHealActionType enumerates the values for auto heal action type. -type AutoHealActionType string - -const ( - // CustomAction ... - CustomAction AutoHealActionType = "CustomAction" - // LogEvent ... - LogEvent AutoHealActionType = "LogEvent" - // Recycle ... - Recycle AutoHealActionType = "Recycle" -) - -// PossibleAutoHealActionTypeValues returns an array of possible values for the AutoHealActionType const type. -func PossibleAutoHealActionTypeValues() []AutoHealActionType { - return []AutoHealActionType{CustomAction, LogEvent, Recycle} -} - -// AzureResourceType enumerates the values for azure resource type. -type AzureResourceType string - -const ( - // TrafficManager ... - TrafficManager AzureResourceType = "TrafficManager" - // Website ... - Website AzureResourceType = "Website" -) - -// PossibleAzureResourceTypeValues returns an array of possible values for the AzureResourceType const type. -func PossibleAzureResourceTypeValues() []AzureResourceType { - return []AzureResourceType{TrafficManager, Website} -} - -// BackupItemStatus enumerates the values for backup item status. -type BackupItemStatus string - -const ( - // Created ... - Created BackupItemStatus = "Created" - // Deleted ... - Deleted BackupItemStatus = "Deleted" - // DeleteFailed ... - DeleteFailed BackupItemStatus = "DeleteFailed" - // DeleteInProgress ... - DeleteInProgress BackupItemStatus = "DeleteInProgress" - // Failed ... - Failed BackupItemStatus = "Failed" - // InProgress ... - InProgress BackupItemStatus = "InProgress" - // PartiallySucceeded ... - PartiallySucceeded BackupItemStatus = "PartiallySucceeded" - // Skipped ... - Skipped BackupItemStatus = "Skipped" - // Succeeded ... - Succeeded BackupItemStatus = "Succeeded" - // TimedOut ... - TimedOut BackupItemStatus = "TimedOut" -) - -// PossibleBackupItemStatusValues returns an array of possible values for the BackupItemStatus const type. -func PossibleBackupItemStatusValues() []BackupItemStatus { - return []BackupItemStatus{Created, Deleted, DeleteFailed, DeleteInProgress, Failed, InProgress, PartiallySucceeded, Skipped, Succeeded, TimedOut} -} - -// BackupRestoreOperationType enumerates the values for backup restore operation type. -type BackupRestoreOperationType string - -const ( - // BackupRestoreOperationTypeClone ... - BackupRestoreOperationTypeClone BackupRestoreOperationType = "Clone" - // BackupRestoreOperationTypeDefault ... - BackupRestoreOperationTypeDefault BackupRestoreOperationType = "Default" - // BackupRestoreOperationTypeRelocation ... - BackupRestoreOperationTypeRelocation BackupRestoreOperationType = "Relocation" - // BackupRestoreOperationTypeSnapshot ... - BackupRestoreOperationTypeSnapshot BackupRestoreOperationType = "Snapshot" -) - -// PossibleBackupRestoreOperationTypeValues returns an array of possible values for the BackupRestoreOperationType const type. -func PossibleBackupRestoreOperationTypeValues() []BackupRestoreOperationType { - return []BackupRestoreOperationType{BackupRestoreOperationTypeClone, BackupRestoreOperationTypeDefault, BackupRestoreOperationTypeRelocation, BackupRestoreOperationTypeSnapshot} -} - -// BuiltInAuthenticationProvider enumerates the values for built in authentication provider. -type BuiltInAuthenticationProvider string - -const ( - // AzureActiveDirectory ... - AzureActiveDirectory BuiltInAuthenticationProvider = "AzureActiveDirectory" - // Facebook ... - Facebook BuiltInAuthenticationProvider = "Facebook" - // Google ... - Google BuiltInAuthenticationProvider = "Google" - // MicrosoftAccount ... - MicrosoftAccount BuiltInAuthenticationProvider = "MicrosoftAccount" - // Twitter ... - Twitter BuiltInAuthenticationProvider = "Twitter" -) - -// PossibleBuiltInAuthenticationProviderValues returns an array of possible values for the BuiltInAuthenticationProvider const type. -func PossibleBuiltInAuthenticationProviderValues() []BuiltInAuthenticationProvider { - return []BuiltInAuthenticationProvider{AzureActiveDirectory, Facebook, Google, MicrosoftAccount, Twitter} -} - -// CertificateOrderActionType enumerates the values for certificate order action type. -type CertificateOrderActionType string - -const ( - // CertificateExpirationWarning ... - CertificateExpirationWarning CertificateOrderActionType = "CertificateExpirationWarning" - // CertificateExpired ... - CertificateExpired CertificateOrderActionType = "CertificateExpired" - // CertificateIssued ... - CertificateIssued CertificateOrderActionType = "CertificateIssued" - // CertificateOrderCanceled ... - CertificateOrderCanceled CertificateOrderActionType = "CertificateOrderCanceled" - // CertificateOrderCreated ... - CertificateOrderCreated CertificateOrderActionType = "CertificateOrderCreated" - // CertificateRevoked ... - CertificateRevoked CertificateOrderActionType = "CertificateRevoked" - // DomainValidationComplete ... - DomainValidationComplete CertificateOrderActionType = "DomainValidationComplete" - // FraudCleared ... - FraudCleared CertificateOrderActionType = "FraudCleared" - // FraudDetected ... - FraudDetected CertificateOrderActionType = "FraudDetected" - // FraudDocumentationRequired ... - FraudDocumentationRequired CertificateOrderActionType = "FraudDocumentationRequired" - // OrgNameChange ... - OrgNameChange CertificateOrderActionType = "OrgNameChange" - // OrgValidationComplete ... - OrgValidationComplete CertificateOrderActionType = "OrgValidationComplete" - // SanDrop ... - SanDrop CertificateOrderActionType = "SanDrop" - // Unknown ... - Unknown CertificateOrderActionType = "Unknown" -) - -// PossibleCertificateOrderActionTypeValues returns an array of possible values for the CertificateOrderActionType const type. -func PossibleCertificateOrderActionTypeValues() []CertificateOrderActionType { - return []CertificateOrderActionType{CertificateExpirationWarning, CertificateExpired, CertificateIssued, CertificateOrderCanceled, CertificateOrderCreated, CertificateRevoked, DomainValidationComplete, FraudCleared, FraudDetected, FraudDocumentationRequired, OrgNameChange, OrgValidationComplete, SanDrop, Unknown} -} - -// CertificateOrderStatus enumerates the values for certificate order status. -type CertificateOrderStatus string - -const ( - // Canceled ... - Canceled CertificateOrderStatus = "Canceled" - // Denied ... - Denied CertificateOrderStatus = "Denied" - // Expired ... - Expired CertificateOrderStatus = "Expired" - // Issued ... - Issued CertificateOrderStatus = "Issued" - // NotSubmitted ... - NotSubmitted CertificateOrderStatus = "NotSubmitted" - // Pendingissuance ... - Pendingissuance CertificateOrderStatus = "Pendingissuance" - // PendingRekey ... - PendingRekey CertificateOrderStatus = "PendingRekey" - // Pendingrevocation ... - Pendingrevocation CertificateOrderStatus = "Pendingrevocation" - // Revoked ... - Revoked CertificateOrderStatus = "Revoked" - // Unused ... - Unused CertificateOrderStatus = "Unused" -) - -// PossibleCertificateOrderStatusValues returns an array of possible values for the CertificateOrderStatus const type. -func PossibleCertificateOrderStatusValues() []CertificateOrderStatus { - return []CertificateOrderStatus{Canceled, Denied, Expired, Issued, NotSubmitted, Pendingissuance, PendingRekey, Pendingrevocation, Revoked, Unused} -} - -// CertificateProductType enumerates the values for certificate product type. -type CertificateProductType string - -const ( - // StandardDomainValidatedSsl ... - StandardDomainValidatedSsl CertificateProductType = "StandardDomainValidatedSsl" - // StandardDomainValidatedWildCardSsl ... - StandardDomainValidatedWildCardSsl CertificateProductType = "StandardDomainValidatedWildCardSsl" -) - -// PossibleCertificateProductTypeValues returns an array of possible values for the CertificateProductType const type. -func PossibleCertificateProductTypeValues() []CertificateProductType { - return []CertificateProductType{StandardDomainValidatedSsl, StandardDomainValidatedWildCardSsl} -} - -// Channels enumerates the values for channels. -type Channels string - -const ( - // All ... - All Channels = "All" - // API ... - API Channels = "Api" - // Email ... - Email Channels = "Email" - // Notification ... - Notification Channels = "Notification" - // Webhook ... - Webhook Channels = "Webhook" -) - -// PossibleChannelsValues returns an array of possible values for the Channels const type. -func PossibleChannelsValues() []Channels { - return []Channels{All, API, Email, Notification, Webhook} -} - -// CheckNameResourceTypes enumerates the values for check name resource types. -type CheckNameResourceTypes string - -const ( - // CheckNameResourceTypesHostingEnvironment ... - CheckNameResourceTypesHostingEnvironment CheckNameResourceTypes = "HostingEnvironment" - // CheckNameResourceTypesMicrosoftWebhostingEnvironments ... - CheckNameResourceTypesMicrosoftWebhostingEnvironments CheckNameResourceTypes = "Microsoft.Web/hostingEnvironments" - // CheckNameResourceTypesMicrosoftWebpublishingUsers ... - CheckNameResourceTypesMicrosoftWebpublishingUsers CheckNameResourceTypes = "Microsoft.Web/publishingUsers" - // CheckNameResourceTypesMicrosoftWebsites ... - CheckNameResourceTypesMicrosoftWebsites CheckNameResourceTypes = "Microsoft.Web/sites" - // CheckNameResourceTypesMicrosoftWebsitesslots ... - CheckNameResourceTypesMicrosoftWebsitesslots CheckNameResourceTypes = "Microsoft.Web/sites/slots" - // CheckNameResourceTypesPublishingUser ... - CheckNameResourceTypesPublishingUser CheckNameResourceTypes = "PublishingUser" - // CheckNameResourceTypesSite ... - CheckNameResourceTypesSite CheckNameResourceTypes = "Site" - // CheckNameResourceTypesSlot ... - CheckNameResourceTypesSlot CheckNameResourceTypes = "Slot" -) - -// PossibleCheckNameResourceTypesValues returns an array of possible values for the CheckNameResourceTypes const type. -func PossibleCheckNameResourceTypesValues() []CheckNameResourceTypes { - return []CheckNameResourceTypes{CheckNameResourceTypesHostingEnvironment, CheckNameResourceTypesMicrosoftWebhostingEnvironments, CheckNameResourceTypesMicrosoftWebpublishingUsers, CheckNameResourceTypesMicrosoftWebsites, CheckNameResourceTypesMicrosoftWebsitesslots, CheckNameResourceTypesPublishingUser, CheckNameResourceTypesSite, CheckNameResourceTypesSlot} -} - -// CloneAbilityResult enumerates the values for clone ability result. -type CloneAbilityResult string - -const ( - // Cloneable ... - Cloneable CloneAbilityResult = "Cloneable" - // NotCloneable ... - NotCloneable CloneAbilityResult = "NotCloneable" - // PartiallyCloneable ... - PartiallyCloneable CloneAbilityResult = "PartiallyCloneable" -) - -// PossibleCloneAbilityResultValues returns an array of possible values for the CloneAbilityResult const type. -func PossibleCloneAbilityResultValues() []CloneAbilityResult { - return []CloneAbilityResult{Cloneable, NotCloneable, PartiallyCloneable} -} - -// ComputeModeOptions enumerates the values for compute mode options. -type ComputeModeOptions string - -const ( - // ComputeModeOptionsDedicated ... - ComputeModeOptionsDedicated ComputeModeOptions = "Dedicated" - // ComputeModeOptionsDynamic ... - ComputeModeOptionsDynamic ComputeModeOptions = "Dynamic" - // ComputeModeOptionsShared ... - ComputeModeOptionsShared ComputeModeOptions = "Shared" -) - -// PossibleComputeModeOptionsValues returns an array of possible values for the ComputeModeOptions const type. -func PossibleComputeModeOptionsValues() []ComputeModeOptions { - return []ComputeModeOptions{ComputeModeOptionsDedicated, ComputeModeOptionsDynamic, ComputeModeOptionsShared} -} - -// ConnectionStringType enumerates the values for connection string type. -type ConnectionStringType string - -const ( - // APIHub ... - APIHub ConnectionStringType = "ApiHub" - // Custom ... - Custom ConnectionStringType = "Custom" - // DocDb ... - DocDb ConnectionStringType = "DocDb" - // EventHub ... - EventHub ConnectionStringType = "EventHub" - // MySQL ... - MySQL ConnectionStringType = "MySql" - // NotificationHub ... - NotificationHub ConnectionStringType = "NotificationHub" - // PostgreSQL ... - PostgreSQL ConnectionStringType = "PostgreSQL" - // RedisCache ... - RedisCache ConnectionStringType = "RedisCache" - // ServiceBus ... - ServiceBus ConnectionStringType = "ServiceBus" - // SQLAzure ... - SQLAzure ConnectionStringType = "SQLAzure" - // SQLServer ... - SQLServer ConnectionStringType = "SQLServer" -) - -// PossibleConnectionStringTypeValues returns an array of possible values for the ConnectionStringType const type. -func PossibleConnectionStringTypeValues() []ConnectionStringType { - return []ConnectionStringType{APIHub, Custom, DocDb, EventHub, MySQL, NotificationHub, PostgreSQL, RedisCache, ServiceBus, SQLAzure, SQLServer} -} - -// ContinuousWebJobStatus enumerates the values for continuous web job status. -type ContinuousWebJobStatus string - -const ( - // Initializing ... - Initializing ContinuousWebJobStatus = "Initializing" - // PendingRestart ... - PendingRestart ContinuousWebJobStatus = "PendingRestart" - // Running ... - Running ContinuousWebJobStatus = "Running" - // Starting ... - Starting ContinuousWebJobStatus = "Starting" - // Stopped ... - Stopped ContinuousWebJobStatus = "Stopped" -) - -// PossibleContinuousWebJobStatusValues returns an array of possible values for the ContinuousWebJobStatus const type. -func PossibleContinuousWebJobStatusValues() []ContinuousWebJobStatus { - return []ContinuousWebJobStatus{Initializing, PendingRestart, Running, Starting, Stopped} -} - -// CustomHostNameDNSRecordType enumerates the values for custom host name dns record type. -type CustomHostNameDNSRecordType string - -const ( - // A ... - A CustomHostNameDNSRecordType = "A" - // CName ... - CName CustomHostNameDNSRecordType = "CName" -) - -// PossibleCustomHostNameDNSRecordTypeValues returns an array of possible values for the CustomHostNameDNSRecordType const type. -func PossibleCustomHostNameDNSRecordTypeValues() []CustomHostNameDNSRecordType { - return []CustomHostNameDNSRecordType{A, CName} -} - -// DatabaseType enumerates the values for database type. -type DatabaseType string - -const ( - // DatabaseTypeLocalMySQL ... - DatabaseTypeLocalMySQL DatabaseType = "LocalMySql" - // DatabaseTypeMySQL ... - DatabaseTypeMySQL DatabaseType = "MySql" - // DatabaseTypePostgreSQL ... - DatabaseTypePostgreSQL DatabaseType = "PostgreSql" - // DatabaseTypeSQLAzure ... - DatabaseTypeSQLAzure DatabaseType = "SqlAzure" -) - -// PossibleDatabaseTypeValues returns an array of possible values for the DatabaseType const type. -func PossibleDatabaseTypeValues() []DatabaseType { - return []DatabaseType{DatabaseTypeLocalMySQL, DatabaseTypeMySQL, DatabaseTypePostgreSQL, DatabaseTypeSQLAzure} -} - -// DNSType enumerates the values for dns type. -type DNSType string - -const ( - // AzureDNS ... - AzureDNS DNSType = "AzureDns" - // DefaultDomainRegistrarDNS ... - DefaultDomainRegistrarDNS DNSType = "DefaultDomainRegistrarDns" -) - -// PossibleDNSTypeValues returns an array of possible values for the DNSType const type. -func PossibleDNSTypeValues() []DNSType { - return []DNSType{AzureDNS, DefaultDomainRegistrarDNS} -} - -// DNSVerificationTestResult enumerates the values for dns verification test result. -type DNSVerificationTestResult string - -const ( - // DNSVerificationTestResultFailed ... - DNSVerificationTestResultFailed DNSVerificationTestResult = "Failed" - // DNSVerificationTestResultPassed ... - DNSVerificationTestResultPassed DNSVerificationTestResult = "Passed" - // DNSVerificationTestResultSkipped ... - DNSVerificationTestResultSkipped DNSVerificationTestResult = "Skipped" -) - -// PossibleDNSVerificationTestResultValues returns an array of possible values for the DNSVerificationTestResult const type. -func PossibleDNSVerificationTestResultValues() []DNSVerificationTestResult { - return []DNSVerificationTestResult{DNSVerificationTestResultFailed, DNSVerificationTestResultPassed, DNSVerificationTestResultSkipped} -} - -// DomainStatus enumerates the values for domain status. -type DomainStatus string - -const ( - // DomainStatusActive ... - DomainStatusActive DomainStatus = "Active" - // DomainStatusAwaiting ... - DomainStatusAwaiting DomainStatus = "Awaiting" - // DomainStatusCancelled ... - DomainStatusCancelled DomainStatus = "Cancelled" - // DomainStatusConfiscated ... - DomainStatusConfiscated DomainStatus = "Confiscated" - // DomainStatusDisabled ... - DomainStatusDisabled DomainStatus = "Disabled" - // DomainStatusExcluded ... - DomainStatusExcluded DomainStatus = "Excluded" - // DomainStatusExpired ... - DomainStatusExpired DomainStatus = "Expired" - // DomainStatusFailed ... - DomainStatusFailed DomainStatus = "Failed" - // DomainStatusHeld ... - DomainStatusHeld DomainStatus = "Held" - // DomainStatusJSONConverterFailed ... - DomainStatusJSONConverterFailed DomainStatus = "JsonConverterFailed" - // DomainStatusLocked ... - DomainStatusLocked DomainStatus = "Locked" - // DomainStatusParked ... - DomainStatusParked DomainStatus = "Parked" - // DomainStatusPending ... - DomainStatusPending DomainStatus = "Pending" - // DomainStatusReserved ... - DomainStatusReserved DomainStatus = "Reserved" - // DomainStatusReverted ... - DomainStatusReverted DomainStatus = "Reverted" - // DomainStatusSuspended ... - DomainStatusSuspended DomainStatus = "Suspended" - // DomainStatusTransferred ... - DomainStatusTransferred DomainStatus = "Transferred" - // DomainStatusUnknown ... - DomainStatusUnknown DomainStatus = "Unknown" - // DomainStatusUnlocked ... - DomainStatusUnlocked DomainStatus = "Unlocked" - // DomainStatusUnparked ... - DomainStatusUnparked DomainStatus = "Unparked" - // DomainStatusUpdated ... - DomainStatusUpdated DomainStatus = "Updated" -) - -// PossibleDomainStatusValues returns an array of possible values for the DomainStatus const type. -func PossibleDomainStatusValues() []DomainStatus { - return []DomainStatus{DomainStatusActive, DomainStatusAwaiting, DomainStatusCancelled, DomainStatusConfiscated, DomainStatusDisabled, DomainStatusExcluded, DomainStatusExpired, DomainStatusFailed, DomainStatusHeld, DomainStatusJSONConverterFailed, DomainStatusLocked, DomainStatusParked, DomainStatusPending, DomainStatusReserved, DomainStatusReverted, DomainStatusSuspended, DomainStatusTransferred, DomainStatusUnknown, DomainStatusUnlocked, DomainStatusUnparked, DomainStatusUpdated} -} - -// DomainType enumerates the values for domain type. -type DomainType string - -const ( - // Regular ... - Regular DomainType = "Regular" - // SoftDeleted ... - SoftDeleted DomainType = "SoftDeleted" -) - -// PossibleDomainTypeValues returns an array of possible values for the DomainType const type. -func PossibleDomainTypeValues() []DomainType { - return []DomainType{Regular, SoftDeleted} -} - -// FrequencyUnit enumerates the values for frequency unit. -type FrequencyUnit string - -const ( - // Day ... - Day FrequencyUnit = "Day" - // Hour ... - Hour FrequencyUnit = "Hour" -) - -// PossibleFrequencyUnitValues returns an array of possible values for the FrequencyUnit const type. -func PossibleFrequencyUnitValues() []FrequencyUnit { - return []FrequencyUnit{Day, Hour} -} - -// HostingEnvironmentStatus enumerates the values for hosting environment status. -type HostingEnvironmentStatus string - -const ( - // Deleting ... - Deleting HostingEnvironmentStatus = "Deleting" - // Preparing ... - Preparing HostingEnvironmentStatus = "Preparing" - // Ready ... - Ready HostingEnvironmentStatus = "Ready" - // Scaling ... - Scaling HostingEnvironmentStatus = "Scaling" -) - -// PossibleHostingEnvironmentStatusValues returns an array of possible values for the HostingEnvironmentStatus const type. -func PossibleHostingEnvironmentStatusValues() []HostingEnvironmentStatus { - return []HostingEnvironmentStatus{Deleting, Preparing, Ready, Scaling} -} - -// HostNameType enumerates the values for host name type. -type HostNameType string - -const ( - // Managed ... - Managed HostNameType = "Managed" - // Verified ... - Verified HostNameType = "Verified" -) - -// PossibleHostNameTypeValues returns an array of possible values for the HostNameType const type. -func PossibleHostNameTypeValues() []HostNameType { - return []HostNameType{Managed, Verified} -} - -// HostType enumerates the values for host type. -type HostType string - -const ( - // HostTypeRepository ... - HostTypeRepository HostType = "Repository" - // HostTypeStandard ... - HostTypeStandard HostType = "Standard" -) - -// PossibleHostTypeValues returns an array of possible values for the HostType const type. -func PossibleHostTypeValues() []HostType { - return []HostType{HostTypeRepository, HostTypeStandard} -} - -// InAvailabilityReasonType enumerates the values for in availability reason type. -type InAvailabilityReasonType string - -const ( - // AlreadyExists ... - AlreadyExists InAvailabilityReasonType = "AlreadyExists" - // Invalid ... - Invalid InAvailabilityReasonType = "Invalid" -) - -// PossibleInAvailabilityReasonTypeValues returns an array of possible values for the InAvailabilityReasonType const type. -func PossibleInAvailabilityReasonTypeValues() []InAvailabilityReasonType { - return []InAvailabilityReasonType{AlreadyExists, Invalid} -} - -// InternalLoadBalancingMode enumerates the values for internal load balancing mode. -type InternalLoadBalancingMode string - -const ( - // InternalLoadBalancingModeNone ... - InternalLoadBalancingModeNone InternalLoadBalancingMode = "None" - // InternalLoadBalancingModePublishing ... - InternalLoadBalancingModePublishing InternalLoadBalancingMode = "Publishing" - // InternalLoadBalancingModeWeb ... - InternalLoadBalancingModeWeb InternalLoadBalancingMode = "Web" -) - -// PossibleInternalLoadBalancingModeValues returns an array of possible values for the InternalLoadBalancingMode const type. -func PossibleInternalLoadBalancingModeValues() []InternalLoadBalancingMode { - return []InternalLoadBalancingMode{InternalLoadBalancingModeNone, InternalLoadBalancingModePublishing, InternalLoadBalancingModeWeb} -} - -// IssueType enumerates the values for issue type. -type IssueType string - -const ( - // AppCrash ... - AppCrash IssueType = "AppCrash" - // AppDeployment ... - AppDeployment IssueType = "AppDeployment" - // AseDeployment ... - AseDeployment IssueType = "AseDeployment" - // Other ... - Other IssueType = "Other" - // PlatformIssue ... - PlatformIssue IssueType = "PlatformIssue" - // RuntimeIssueDetected ... - RuntimeIssueDetected IssueType = "RuntimeIssueDetected" - // ServiceIncident ... - ServiceIncident IssueType = "ServiceIncident" - // UserIssue ... - UserIssue IssueType = "UserIssue" -) - -// PossibleIssueTypeValues returns an array of possible values for the IssueType const type. -func PossibleIssueTypeValues() []IssueType { - return []IssueType{AppCrash, AppDeployment, AseDeployment, Other, PlatformIssue, RuntimeIssueDetected, ServiceIncident, UserIssue} -} - -// JobType enumerates the values for job type. -type JobType string - -const ( - // Continuous ... - Continuous JobType = "Continuous" - // Triggered ... - Triggered JobType = "Triggered" -) - -// PossibleJobTypeValues returns an array of possible values for the JobType const type. -func PossibleJobTypeValues() []JobType { - return []JobType{Continuous, Triggered} -} - -// KeyVaultSecretStatus enumerates the values for key vault secret status. -type KeyVaultSecretStatus string - -const ( - // KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault ... - KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault KeyVaultSecretStatus = "AzureServiceUnauthorizedToAccessKeyVault" - // KeyVaultSecretStatusCertificateOrderFailed ... - KeyVaultSecretStatusCertificateOrderFailed KeyVaultSecretStatus = "CertificateOrderFailed" - // KeyVaultSecretStatusExternalPrivateKey ... - KeyVaultSecretStatusExternalPrivateKey KeyVaultSecretStatus = "ExternalPrivateKey" - // KeyVaultSecretStatusInitialized ... - KeyVaultSecretStatusInitialized KeyVaultSecretStatus = "Initialized" - // KeyVaultSecretStatusKeyVaultDoesNotExist ... - KeyVaultSecretStatusKeyVaultDoesNotExist KeyVaultSecretStatus = "KeyVaultDoesNotExist" - // KeyVaultSecretStatusKeyVaultSecretDoesNotExist ... - KeyVaultSecretStatusKeyVaultSecretDoesNotExist KeyVaultSecretStatus = "KeyVaultSecretDoesNotExist" - // KeyVaultSecretStatusOperationNotPermittedOnKeyVault ... - KeyVaultSecretStatusOperationNotPermittedOnKeyVault KeyVaultSecretStatus = "OperationNotPermittedOnKeyVault" - // KeyVaultSecretStatusSucceeded ... - KeyVaultSecretStatusSucceeded KeyVaultSecretStatus = "Succeeded" - // KeyVaultSecretStatusUnknown ... - KeyVaultSecretStatusUnknown KeyVaultSecretStatus = "Unknown" - // KeyVaultSecretStatusUnknownError ... - KeyVaultSecretStatusUnknownError KeyVaultSecretStatus = "UnknownError" - // KeyVaultSecretStatusWaitingOnCertificateOrder ... - KeyVaultSecretStatusWaitingOnCertificateOrder KeyVaultSecretStatus = "WaitingOnCertificateOrder" -) - -// PossibleKeyVaultSecretStatusValues returns an array of possible values for the KeyVaultSecretStatus const type. -func PossibleKeyVaultSecretStatusValues() []KeyVaultSecretStatus { - return []KeyVaultSecretStatus{KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault, KeyVaultSecretStatusCertificateOrderFailed, KeyVaultSecretStatusExternalPrivateKey, KeyVaultSecretStatusInitialized, KeyVaultSecretStatusKeyVaultDoesNotExist, KeyVaultSecretStatusKeyVaultSecretDoesNotExist, KeyVaultSecretStatusOperationNotPermittedOnKeyVault, KeyVaultSecretStatusSucceeded, KeyVaultSecretStatusUnknown, KeyVaultSecretStatusUnknownError, KeyVaultSecretStatusWaitingOnCertificateOrder} -} - -// LogLevel enumerates the values for log level. -type LogLevel string - -const ( - // Error ... - Error LogLevel = "Error" - // Information ... - Information LogLevel = "Information" - // Off ... - Off LogLevel = "Off" - // Verbose ... - Verbose LogLevel = "Verbose" - // Warning ... - Warning LogLevel = "Warning" -) - -// PossibleLogLevelValues returns an array of possible values for the LogLevel const type. -func PossibleLogLevelValues() []LogLevel { - return []LogLevel{Error, Information, Off, Verbose, Warning} -} - -// ManagedPipelineMode enumerates the values for managed pipeline mode. -type ManagedPipelineMode string - -const ( - // Classic ... - Classic ManagedPipelineMode = "Classic" - // Integrated ... - Integrated ManagedPipelineMode = "Integrated" -) - -// PossibleManagedPipelineModeValues returns an array of possible values for the ManagedPipelineMode const type. -func PossibleManagedPipelineModeValues() []ManagedPipelineMode { - return []ManagedPipelineMode{Classic, Integrated} -} - -// ManagedServiceIdentityType enumerates the values for managed service identity type. -type ManagedServiceIdentityType string - -const ( - // SystemAssigned ... - SystemAssigned ManagedServiceIdentityType = "SystemAssigned" -) - -// PossibleManagedServiceIdentityTypeValues returns an array of possible values for the ManagedServiceIdentityType const type. -func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { - return []ManagedServiceIdentityType{SystemAssigned} -} - -// MSDeployLogEntryType enumerates the values for ms deploy log entry type. -type MSDeployLogEntryType string - -const ( - // MSDeployLogEntryTypeError ... - MSDeployLogEntryTypeError MSDeployLogEntryType = "Error" - // MSDeployLogEntryTypeMessage ... - MSDeployLogEntryTypeMessage MSDeployLogEntryType = "Message" - // MSDeployLogEntryTypeWarning ... - MSDeployLogEntryTypeWarning MSDeployLogEntryType = "Warning" -) - -// PossibleMSDeployLogEntryTypeValues returns an array of possible values for the MSDeployLogEntryType const type. -func PossibleMSDeployLogEntryTypeValues() []MSDeployLogEntryType { - return []MSDeployLogEntryType{MSDeployLogEntryTypeError, MSDeployLogEntryTypeMessage, MSDeployLogEntryTypeWarning} -} - -// MSDeployProvisioningState enumerates the values for ms deploy provisioning state. -type MSDeployProvisioningState string - -const ( - // MSDeployProvisioningStateAccepted ... - MSDeployProvisioningStateAccepted MSDeployProvisioningState = "accepted" - // MSDeployProvisioningStateCanceled ... - MSDeployProvisioningStateCanceled MSDeployProvisioningState = "canceled" - // MSDeployProvisioningStateFailed ... - MSDeployProvisioningStateFailed MSDeployProvisioningState = "failed" - // MSDeployProvisioningStateRunning ... - MSDeployProvisioningStateRunning MSDeployProvisioningState = "running" - // MSDeployProvisioningStateSucceeded ... - MSDeployProvisioningStateSucceeded MSDeployProvisioningState = "succeeded" -) - -// PossibleMSDeployProvisioningStateValues returns an array of possible values for the MSDeployProvisioningState const type. -func PossibleMSDeployProvisioningStateValues() []MSDeployProvisioningState { - return []MSDeployProvisioningState{MSDeployProvisioningStateAccepted, MSDeployProvisioningStateCanceled, MSDeployProvisioningStateFailed, MSDeployProvisioningStateRunning, MSDeployProvisioningStateSucceeded} -} - -// MySQLMigrationType enumerates the values for my sql migration type. -type MySQLMigrationType string - -const ( - // LocalToRemote ... - LocalToRemote MySQLMigrationType = "LocalToRemote" - // RemoteToLocal ... - RemoteToLocal MySQLMigrationType = "RemoteToLocal" -) - -// PossibleMySQLMigrationTypeValues returns an array of possible values for the MySQLMigrationType const type. -func PossibleMySQLMigrationTypeValues() []MySQLMigrationType { - return []MySQLMigrationType{LocalToRemote, RemoteToLocal} -} - -// NotificationLevel enumerates the values for notification level. -type NotificationLevel string - -const ( - // NotificationLevelCritical ... - NotificationLevelCritical NotificationLevel = "Critical" - // NotificationLevelInformation ... - NotificationLevelInformation NotificationLevel = "Information" - // NotificationLevelNonUrgentSuggestion ... - NotificationLevelNonUrgentSuggestion NotificationLevel = "NonUrgentSuggestion" - // NotificationLevelWarning ... - NotificationLevelWarning NotificationLevel = "Warning" -) - -// PossibleNotificationLevelValues returns an array of possible values for the NotificationLevel const type. -func PossibleNotificationLevelValues() []NotificationLevel { - return []NotificationLevel{NotificationLevelCritical, NotificationLevelInformation, NotificationLevelNonUrgentSuggestion, NotificationLevelWarning} -} - -// OperationStatus enumerates the values for operation status. -type OperationStatus string - -const ( - // OperationStatusCreated ... - OperationStatusCreated OperationStatus = "Created" - // OperationStatusFailed ... - OperationStatusFailed OperationStatus = "Failed" - // OperationStatusInProgress ... - OperationStatusInProgress OperationStatus = "InProgress" - // OperationStatusSucceeded ... - OperationStatusSucceeded OperationStatus = "Succeeded" - // OperationStatusTimedOut ... - OperationStatusTimedOut OperationStatus = "TimedOut" -) - -// PossibleOperationStatusValues returns an array of possible values for the OperationStatus const type. -func PossibleOperationStatusValues() []OperationStatus { - return []OperationStatus{OperationStatusCreated, OperationStatusFailed, OperationStatusInProgress, OperationStatusSucceeded, OperationStatusTimedOut} -} - -// ProvisioningState enumerates the values for provisioning state. -type ProvisioningState string - -const ( - // ProvisioningStateCanceled ... - ProvisioningStateCanceled ProvisioningState = "Canceled" - // ProvisioningStateDeleting ... - ProvisioningStateDeleting ProvisioningState = "Deleting" - // ProvisioningStateFailed ... - ProvisioningStateFailed ProvisioningState = "Failed" - // ProvisioningStateInProgress ... - ProvisioningStateInProgress ProvisioningState = "InProgress" - // ProvisioningStateSucceeded ... - ProvisioningStateSucceeded ProvisioningState = "Succeeded" -) - -// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. -func PossibleProvisioningStateValues() []ProvisioningState { - return []ProvisioningState{ProvisioningStateCanceled, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateInProgress, ProvisioningStateSucceeded} -} - -// PublicCertificateLocation enumerates the values for public certificate location. -type PublicCertificateLocation string - -const ( - // PublicCertificateLocationCurrentUserMy ... - PublicCertificateLocationCurrentUserMy PublicCertificateLocation = "CurrentUserMy" - // PublicCertificateLocationLocalMachineMy ... - PublicCertificateLocationLocalMachineMy PublicCertificateLocation = "LocalMachineMy" - // PublicCertificateLocationUnknown ... - PublicCertificateLocationUnknown PublicCertificateLocation = "Unknown" -) - -// PossiblePublicCertificateLocationValues returns an array of possible values for the PublicCertificateLocation const type. -func PossiblePublicCertificateLocationValues() []PublicCertificateLocation { - return []PublicCertificateLocation{PublicCertificateLocationCurrentUserMy, PublicCertificateLocationLocalMachineMy, PublicCertificateLocationUnknown} -} - -// PublishingProfileFormat enumerates the values for publishing profile format. -type PublishingProfileFormat string - -const ( - // FileZilla3 ... - FileZilla3 PublishingProfileFormat = "FileZilla3" - // Ftp ... - Ftp PublishingProfileFormat = "Ftp" - // WebDeploy ... - WebDeploy PublishingProfileFormat = "WebDeploy" -) - -// PossiblePublishingProfileFormatValues returns an array of possible values for the PublishingProfileFormat const type. -func PossiblePublishingProfileFormatValues() []PublishingProfileFormat { - return []PublishingProfileFormat{FileZilla3, Ftp, WebDeploy} -} - -// RenderingType enumerates the values for rendering type. -type RenderingType string - -const ( - // NoGraph ... - NoGraph RenderingType = "NoGraph" - // Table ... - Table RenderingType = "Table" - // TimeSeries ... - TimeSeries RenderingType = "TimeSeries" - // TimeSeriesPerInstance ... - TimeSeriesPerInstance RenderingType = "TimeSeriesPerInstance" -) - -// PossibleRenderingTypeValues returns an array of possible values for the RenderingType const type. -func PossibleRenderingTypeValues() []RenderingType { - return []RenderingType{NoGraph, Table, TimeSeries, TimeSeriesPerInstance} -} - -// ResourceScopeType enumerates the values for resource scope type. -type ResourceScopeType string - -const ( - // ServerFarm ... - ServerFarm ResourceScopeType = "ServerFarm" - // Subscription ... - Subscription ResourceScopeType = "Subscription" - // WebSite ... - WebSite ResourceScopeType = "WebSite" -) - -// PossibleResourceScopeTypeValues returns an array of possible values for the ResourceScopeType const type. -func PossibleResourceScopeTypeValues() []ResourceScopeType { - return []ResourceScopeType{ServerFarm, Subscription, WebSite} -} - -// RouteType enumerates the values for route type. -type RouteType string - -const ( - // DEFAULT ... - DEFAULT RouteType = "DEFAULT" - // INHERITED ... - INHERITED RouteType = "INHERITED" - // STATIC ... - STATIC RouteType = "STATIC" -) - -// PossibleRouteTypeValues returns an array of possible values for the RouteType const type. -func PossibleRouteTypeValues() []RouteType { - return []RouteType{DEFAULT, INHERITED, STATIC} -} - -// ScmType enumerates the values for scm type. -type ScmType string - -const ( - // ScmTypeBitbucketGit ... - ScmTypeBitbucketGit ScmType = "BitbucketGit" - // ScmTypeBitbucketHg ... - ScmTypeBitbucketHg ScmType = "BitbucketHg" - // ScmTypeCodePlexGit ... - ScmTypeCodePlexGit ScmType = "CodePlexGit" - // ScmTypeCodePlexHg ... - ScmTypeCodePlexHg ScmType = "CodePlexHg" - // ScmTypeDropbox ... - ScmTypeDropbox ScmType = "Dropbox" - // ScmTypeExternalGit ... - ScmTypeExternalGit ScmType = "ExternalGit" - // ScmTypeExternalHg ... - ScmTypeExternalHg ScmType = "ExternalHg" - // ScmTypeGitHub ... - ScmTypeGitHub ScmType = "GitHub" - // ScmTypeLocalGit ... - ScmTypeLocalGit ScmType = "LocalGit" - // ScmTypeNone ... - ScmTypeNone ScmType = "None" - // ScmTypeOneDrive ... - ScmTypeOneDrive ScmType = "OneDrive" - // ScmTypeTfs ... - ScmTypeTfs ScmType = "Tfs" - // ScmTypeVSO ... - ScmTypeVSO ScmType = "VSO" -) - -// PossibleScmTypeValues returns an array of possible values for the ScmType const type. -func PossibleScmTypeValues() []ScmType { - return []ScmType{ScmTypeBitbucketGit, ScmTypeBitbucketHg, ScmTypeCodePlexGit, ScmTypeCodePlexHg, ScmTypeDropbox, ScmTypeExternalGit, ScmTypeExternalHg, ScmTypeGitHub, ScmTypeLocalGit, ScmTypeNone, ScmTypeOneDrive, ScmTypeTfs, ScmTypeVSO} -} - -// SiteAvailabilityState enumerates the values for site availability state. -type SiteAvailabilityState string - -const ( - // DisasterRecoveryMode ... - DisasterRecoveryMode SiteAvailabilityState = "DisasterRecoveryMode" - // Limited ... - Limited SiteAvailabilityState = "Limited" - // Normal ... - Normal SiteAvailabilityState = "Normal" -) - -// PossibleSiteAvailabilityStateValues returns an array of possible values for the SiteAvailabilityState const type. -func PossibleSiteAvailabilityStateValues() []SiteAvailabilityState { - return []SiteAvailabilityState{DisasterRecoveryMode, Limited, Normal} -} - -// SiteExtensionType enumerates the values for site extension type. -type SiteExtensionType string - -const ( - // Gallery ... - Gallery SiteExtensionType = "Gallery" - // WebRoot ... - WebRoot SiteExtensionType = "WebRoot" -) - -// PossibleSiteExtensionTypeValues returns an array of possible values for the SiteExtensionType const type. -func PossibleSiteExtensionTypeValues() []SiteExtensionType { - return []SiteExtensionType{Gallery, WebRoot} -} - -// SiteLoadBalancing enumerates the values for site load balancing. -type SiteLoadBalancing string - -const ( - // LeastRequests ... - LeastRequests SiteLoadBalancing = "LeastRequests" - // LeastResponseTime ... - LeastResponseTime SiteLoadBalancing = "LeastResponseTime" - // RequestHash ... - RequestHash SiteLoadBalancing = "RequestHash" - // WeightedRoundRobin ... - WeightedRoundRobin SiteLoadBalancing = "WeightedRoundRobin" - // WeightedTotalTraffic ... - WeightedTotalTraffic SiteLoadBalancing = "WeightedTotalTraffic" -) - -// PossibleSiteLoadBalancingValues returns an array of possible values for the SiteLoadBalancing const type. -func PossibleSiteLoadBalancingValues() []SiteLoadBalancing { - return []SiteLoadBalancing{LeastRequests, LeastResponseTime, RequestHash, WeightedRoundRobin, WeightedTotalTraffic} -} - -// SkuName enumerates the values for sku name. -type SkuName string - -const ( - // SkuNameBasic ... - SkuNameBasic SkuName = "Basic" - // SkuNameDynamic ... - SkuNameDynamic SkuName = "Dynamic" - // SkuNameFree ... - SkuNameFree SkuName = "Free" - // SkuNameIsolated ... - SkuNameIsolated SkuName = "Isolated" - // SkuNamePremium ... - SkuNamePremium SkuName = "Premium" - // SkuNamePremiumV2 ... - SkuNamePremiumV2 SkuName = "PremiumV2" - // SkuNameShared ... - SkuNameShared SkuName = "Shared" - // SkuNameStandard ... - SkuNameStandard SkuName = "Standard" -) - -// PossibleSkuNameValues returns an array of possible values for the SkuName const type. -func PossibleSkuNameValues() []SkuName { - return []SkuName{SkuNameBasic, SkuNameDynamic, SkuNameFree, SkuNameIsolated, SkuNamePremium, SkuNamePremiumV2, SkuNameShared, SkuNameStandard} -} - -// SolutionType enumerates the values for solution type. -type SolutionType string - -const ( - // BestPractices ... - BestPractices SolutionType = "BestPractices" - // DeepInvestigation ... - DeepInvestigation SolutionType = "DeepInvestigation" - // QuickSolution ... - QuickSolution SolutionType = "QuickSolution" -) - -// PossibleSolutionTypeValues returns an array of possible values for the SolutionType const type. -func PossibleSolutionTypeValues() []SolutionType { - return []SolutionType{BestPractices, DeepInvestigation, QuickSolution} -} - -// SslState enumerates the values for ssl state. -type SslState string - -const ( - // Disabled ... - Disabled SslState = "Disabled" - // IPBasedEnabled ... - IPBasedEnabled SslState = "IpBasedEnabled" - // SniEnabled ... - SniEnabled SslState = "SniEnabled" -) - -// PossibleSslStateValues returns an array of possible values for the SslState const type. -func PossibleSslStateValues() []SslState { - return []SslState{Disabled, IPBasedEnabled, SniEnabled} -} - -// StatusOptions enumerates the values for status options. -type StatusOptions string - -const ( - // StatusOptionsCreating ... - StatusOptionsCreating StatusOptions = "Creating" - // StatusOptionsPending ... - StatusOptionsPending StatusOptions = "Pending" - // StatusOptionsReady ... - StatusOptionsReady StatusOptions = "Ready" -) - -// PossibleStatusOptionsValues returns an array of possible values for the StatusOptions const type. -func PossibleStatusOptionsValues() []StatusOptions { - return []StatusOptions{StatusOptionsCreating, StatusOptionsPending, StatusOptionsReady} -} - -// SupportedTLSVersions enumerates the values for supported tls versions. -type SupportedTLSVersions string - -const ( - // OneFullStopOne ... - OneFullStopOne SupportedTLSVersions = "1.1" - // OneFullStopTwo ... - OneFullStopTwo SupportedTLSVersions = "1.2" - // OneFullStopZero ... - OneFullStopZero SupportedTLSVersions = "1.0" -) - -// PossibleSupportedTLSVersionsValues returns an array of possible values for the SupportedTLSVersions const type. -func PossibleSupportedTLSVersionsValues() []SupportedTLSVersions { - return []SupportedTLSVersions{OneFullStopOne, OneFullStopTwo, OneFullStopZero} -} - -// TriggeredWebJobStatus enumerates the values for triggered web job status. -type TriggeredWebJobStatus string - -const ( - // TriggeredWebJobStatusError ... - TriggeredWebJobStatusError TriggeredWebJobStatus = "Error" - // TriggeredWebJobStatusFailed ... - TriggeredWebJobStatusFailed TriggeredWebJobStatus = "Failed" - // TriggeredWebJobStatusSuccess ... - TriggeredWebJobStatusSuccess TriggeredWebJobStatus = "Success" -) - -// PossibleTriggeredWebJobStatusValues returns an array of possible values for the TriggeredWebJobStatus const type. -func PossibleTriggeredWebJobStatusValues() []TriggeredWebJobStatus { - return []TriggeredWebJobStatus{TriggeredWebJobStatusError, TriggeredWebJobStatusFailed, TriggeredWebJobStatusSuccess} -} - -// UnauthenticatedClientAction enumerates the values for unauthenticated client action. -type UnauthenticatedClientAction string - -const ( - // AllowAnonymous ... - AllowAnonymous UnauthenticatedClientAction = "AllowAnonymous" - // RedirectToLoginPage ... - RedirectToLoginPage UnauthenticatedClientAction = "RedirectToLoginPage" -) - -// PossibleUnauthenticatedClientActionValues returns an array of possible values for the UnauthenticatedClientAction const type. -func PossibleUnauthenticatedClientActionValues() []UnauthenticatedClientAction { - return []UnauthenticatedClientAction{AllowAnonymous, RedirectToLoginPage} -} - -// UsageState enumerates the values for usage state. -type UsageState string - -const ( - // UsageStateExceeded ... - UsageStateExceeded UsageState = "Exceeded" - // UsageStateNormal ... - UsageStateNormal UsageState = "Normal" -) - -// PossibleUsageStateValues returns an array of possible values for the UsageState const type. -func PossibleUsageStateValues() []UsageState { - return []UsageState{UsageStateExceeded, UsageStateNormal} -} - -// ValidateResourceTypes enumerates the values for validate resource types. -type ValidateResourceTypes string - -const ( - // ValidateResourceTypesServerFarm ... - ValidateResourceTypesServerFarm ValidateResourceTypes = "ServerFarm" - // ValidateResourceTypesSite ... - ValidateResourceTypesSite ValidateResourceTypes = "Site" -) - -// PossibleValidateResourceTypesValues returns an array of possible values for the ValidateResourceTypes const type. -func PossibleValidateResourceTypesValues() []ValidateResourceTypes { - return []ValidateResourceTypes{ValidateResourceTypesServerFarm, ValidateResourceTypesSite} -} - -// WorkerSizeOptions enumerates the values for worker size options. -type WorkerSizeOptions string - -const ( - // D1 ... - D1 WorkerSizeOptions = "D1" - // D2 ... - D2 WorkerSizeOptions = "D2" - // D3 ... - D3 WorkerSizeOptions = "D3" - // Default ... - Default WorkerSizeOptions = "Default" - // Large ... - Large WorkerSizeOptions = "Large" - // Medium ... - Medium WorkerSizeOptions = "Medium" - // Small ... - Small WorkerSizeOptions = "Small" -) - -// PossibleWorkerSizeOptionsValues returns an array of possible values for the WorkerSizeOptions const type. -func PossibleWorkerSizeOptionsValues() []WorkerSizeOptions { - return []WorkerSizeOptions{D1, D2, D3, Default, Large, Medium, Small} -} - // AbnormalTimePeriod class representing Abnormal Time Period identified in diagnosis type AbnormalTimePeriod struct { // StartTime - Start time of the downtime @@ -1384,6 +195,15 @@ type AppCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AppCollection. +func (ac AppCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ac.Value != nil { + objectMap["value"] = ac.Value + } + return json.Marshal(objectMap) +} + // AppCollectionIterator provides access to a complete listing of Site values. type AppCollectionIterator struct { i int @@ -1452,10 +272,15 @@ func (ac AppCollection) IsEmpty() bool { return ac.Value == nil || len(*ac.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (ac AppCollection) hasNextLink() bool { + return ac.NextLink != nil && len(*ac.NextLink) != 0 +} + // appCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (ac AppCollection) appCollectionPreparer(ctx context.Context) (*http.Request, error) { - if ac.NextLink == nil || len(to.String(ac.NextLink)) < 1 { + if !ac.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -1483,11 +308,16 @@ func (page *AppCollectionPage) NextWithContext(ctx context.Context) (err error) tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.ac) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.ac) + if err != nil { + return err + } + page.ac = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.ac = next return nil } @@ -1530,6 +360,15 @@ type AppInstanceCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AppInstanceCollection. +func (aic AppInstanceCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if aic.Value != nil { + objectMap["value"] = aic.Value + } + return json.Marshal(objectMap) +} + // AppInstanceCollectionIterator provides access to a complete listing of SiteInstance values. type AppInstanceCollectionIterator struct { i int @@ -1598,10 +437,15 @@ func (aic AppInstanceCollection) IsEmpty() bool { return aic.Value == nil || len(*aic.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (aic AppInstanceCollection) hasNextLink() bool { + return aic.NextLink != nil && len(*aic.NextLink) != 0 +} + // appInstanceCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (aic AppInstanceCollection) appInstanceCollectionPreparer(ctx context.Context) (*http.Request, error) { - if aic.NextLink == nil || len(to.String(aic.NextLink)) < 1 { + if !aic.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -1629,11 +473,16 @@ func (page *AppInstanceCollectionPage) NextWithContext(ctx context.Context) (err tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.aic) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.aic) + if err != nil { + return err + } + page.aic = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.aic = next return nil } @@ -1700,6 +549,15 @@ type ApplicationStackCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationStackCollection. +func (asc ApplicationStackCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if asc.Value != nil { + objectMap["value"] = asc.Value + } + return json.Marshal(objectMap) +} + // ApplicationStackCollectionIterator provides access to a complete listing of ApplicationStack values. type ApplicationStackCollectionIterator struct { i int @@ -1768,10 +626,15 @@ func (asc ApplicationStackCollection) IsEmpty() bool { return asc.Value == nil || len(*asc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (asc ApplicationStackCollection) hasNextLink() bool { + return asc.NextLink != nil && len(*asc.NextLink) != 0 +} + // applicationStackCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (asc ApplicationStackCollection) applicationStackCollectionPreparer(ctx context.Context) (*http.Request, error) { - if asc.NextLink == nil || len(to.String(asc.NextLink)) < 1 { + if !asc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -1799,11 +662,16 @@ func (page *ApplicationStackCollectionPage) NextWithContext(ctx context.Context) tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.asc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.asc) + if err != nil { + return err + } + page.asc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.asc = next return nil } @@ -1924,8 +792,8 @@ func (future *AppsCreateInstanceMSDeployOperationFuture) Result(client AppsClien return } -// AppsCreateInstanceMSDeployOperationSlotFuture an abstraction for monitoring and retrieving the results -// of a long-running operation. +// AppsCreateInstanceMSDeployOperationSlotFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. type AppsCreateInstanceMSDeployOperationSlotFuture struct { azure.Future } @@ -1953,8 +821,8 @@ func (future *AppsCreateInstanceMSDeployOperationSlotFuture) Result(client AppsC return } -// AppsCreateMSDeployOperationFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. +// AppsCreateMSDeployOperationFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type AppsCreateMSDeployOperationFuture struct { azure.Future } @@ -2137,6 +1005,18 @@ type AppServiceCertificate struct { ProvisioningState KeyVaultSecretStatus `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for AppServiceCertificate. +func (asc AppServiceCertificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if asc.KeyVaultID != nil { + objectMap["keyVaultId"] = asc.KeyVaultID + } + if asc.KeyVaultSecretName != nil { + objectMap["keyVaultSecretName"] = asc.KeyVaultSecretName + } + return json.Marshal(objectMap) +} + // AppServiceCertificateCollection collection of certificate order certificates. type AppServiceCertificateCollection struct { autorest.Response `json:"-"` @@ -2146,6 +1026,15 @@ type AppServiceCertificateCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AppServiceCertificateCollection. +func (ascc AppServiceCertificateCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ascc.Value != nil { + objectMap["value"] = ascc.Value + } + return json.Marshal(objectMap) +} + // AppServiceCertificateCollectionIterator provides access to a complete listing of // AppServiceCertificateResource values. type AppServiceCertificateCollectionIterator struct { @@ -2215,10 +1104,15 @@ func (ascc AppServiceCertificateCollection) IsEmpty() bool { return ascc.Value == nil || len(*ascc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (ascc AppServiceCertificateCollection) hasNextLink() bool { + return ascc.NextLink != nil && len(*ascc.NextLink) != 0 +} + // appServiceCertificateCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (ascc AppServiceCertificateCollection) appServiceCertificateCollectionPreparer(ctx context.Context) (*http.Request, error) { - if ascc.NextLink == nil || len(to.String(ascc.NextLink)) < 1 { + if !ascc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -2246,11 +1140,16 @@ func (page *AppServiceCertificateCollectionPage) NextWithContext(ctx context.Con tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.ascc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.ascc) + if err != nil { + return err + } + page.ascc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.ascc = next return nil } @@ -2408,6 +1307,15 @@ type AppServiceCertificateOrderCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AppServiceCertificateOrderCollection. +func (ascoc AppServiceCertificateOrderCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ascoc.Value != nil { + objectMap["value"] = ascoc.Value + } + return json.Marshal(objectMap) +} + // AppServiceCertificateOrderCollectionIterator provides access to a complete listing of // AppServiceCertificateOrder values. type AppServiceCertificateOrderCollectionIterator struct { @@ -2477,10 +1385,15 @@ func (ascoc AppServiceCertificateOrderCollection) IsEmpty() bool { return ascoc.Value == nil || len(*ascoc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (ascoc AppServiceCertificateOrderCollection) hasNextLink() bool { + return ascoc.NextLink != nil && len(*ascoc.NextLink) != 0 +} + // appServiceCertificateOrderCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (ascoc AppServiceCertificateOrderCollection) appServiceCertificateOrderCollectionPreparer(ctx context.Context) (*http.Request, error) { - if ascoc.NextLink == nil || len(to.String(ascoc.NextLink)) < 1 { + if !ascoc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -2508,11 +1421,16 @@ func (page *AppServiceCertificateOrderCollectionPage) NextWithContext(ctx contex tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.ascoc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.ascoc) + if err != nil { + return err + } + page.ascoc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.ascoc = next return nil } @@ -2633,8 +1551,8 @@ func (ascopr *AppServiceCertificateOrderPatchResource) UnmarshalJSON(body []byte return nil } -// AppServiceCertificateOrderPatchResourceProperties appServiceCertificateOrderPatchResource resource -// specific properties +// AppServiceCertificateOrderPatchResourceProperties appServiceCertificateOrderPatchResource resource specific +// properties type AppServiceCertificateOrderPatchResourceProperties struct { // Certificates - State of the Key Vault secret. Certificates map[string]*AppServiceCertificate `json:"certificates"` @@ -2772,8 +1690,8 @@ func (asco AppServiceCertificateOrderProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// AppServiceCertificateOrdersCreateOrUpdateCertificateFuture an abstraction for monitoring and retrieving -// the results of a long-running operation. +// AppServiceCertificateOrdersCreateOrUpdateCertificateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. type AppServiceCertificateOrdersCreateOrUpdateCertificateFuture struct { azure.Future } @@ -2801,8 +1719,8 @@ func (future *AppServiceCertificateOrdersCreateOrUpdateCertificateFuture) Result return } -// AppServiceCertificateOrdersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results -// of a long-running operation. +// AppServiceCertificateOrdersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. type AppServiceCertificateOrdersCreateOrUpdateFuture struct { azure.Future } @@ -2917,8 +1835,8 @@ func (ascpr *AppServiceCertificatePatchResource) UnmarshalJSON(body []byte) erro return nil } -// AppServiceCertificateResource key Vault container ARM resource for a certificate that is purchased -// through Azure. +// AppServiceCertificateResource key Vault container ARM resource for a certificate that is purchased through +// Azure. type AppServiceCertificateResource struct { autorest.Response `json:"-"` // AppServiceCertificate - Core resource properties @@ -3111,6 +2029,69 @@ type AppServiceEnvironment struct { UserWhitelistedIPRanges *[]string `json:"userWhitelistedIpRanges,omitempty"` } +// MarshalJSON is the custom marshaler for AppServiceEnvironment. +func (ase AppServiceEnvironment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ase.Name != nil { + objectMap["name"] = ase.Name + } + if ase.Location != nil { + objectMap["location"] = ase.Location + } + if ase.VnetName != nil { + objectMap["vnetName"] = ase.VnetName + } + if ase.VnetResourceGroupName != nil { + objectMap["vnetResourceGroupName"] = ase.VnetResourceGroupName + } + if ase.VnetSubnetName != nil { + objectMap["vnetSubnetName"] = ase.VnetSubnetName + } + if ase.VirtualNetwork != nil { + objectMap["virtualNetwork"] = ase.VirtualNetwork + } + if ase.InternalLoadBalancingMode != "" { + objectMap["internalLoadBalancingMode"] = ase.InternalLoadBalancingMode + } + if ase.MultiSize != nil { + objectMap["multiSize"] = ase.MultiSize + } + if ase.MultiRoleCount != nil { + objectMap["multiRoleCount"] = ase.MultiRoleCount + } + if ase.WorkerPools != nil { + objectMap["workerPools"] = ase.WorkerPools + } + if ase.IpsslAddressCount != nil { + objectMap["ipsslAddressCount"] = ase.IpsslAddressCount + } + if ase.DNSSuffix != nil { + objectMap["dnsSuffix"] = ase.DNSSuffix + } + if ase.NetworkAccessControlList != nil { + objectMap["networkAccessControlList"] = ase.NetworkAccessControlList + } + if ase.FrontEndScaleFactor != nil { + objectMap["frontEndScaleFactor"] = ase.FrontEndScaleFactor + } + if ase.APIManagementAccountID != nil { + objectMap["apiManagementAccountId"] = ase.APIManagementAccountID + } + if ase.Suspended != nil { + objectMap["suspended"] = ase.Suspended + } + if ase.DynamicCacheEnabled != nil { + objectMap["dynamicCacheEnabled"] = ase.DynamicCacheEnabled + } + if ase.ClusterSettings != nil { + objectMap["clusterSettings"] = ase.ClusterSettings + } + if ase.UserWhitelistedIPRanges != nil { + objectMap["userWhitelistedIpRanges"] = ase.UserWhitelistedIPRanges + } + return json.Marshal(objectMap) +} + // AppServiceEnvironmentCollection collection of App Service Environments. type AppServiceEnvironmentCollection struct { autorest.Response `json:"-"` @@ -3120,6 +2101,15 @@ type AppServiceEnvironmentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for AppServiceEnvironmentCollection. +func (asec AppServiceEnvironmentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if asec.Value != nil { + objectMap["value"] = asec.Value + } + return json.Marshal(objectMap) +} + // AppServiceEnvironmentCollectionIterator provides access to a complete listing of // AppServiceEnvironmentResource values. type AppServiceEnvironmentCollectionIterator struct { @@ -3189,10 +2179,15 @@ func (asec AppServiceEnvironmentCollection) IsEmpty() bool { return asec.Value == nil || len(*asec.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (asec AppServiceEnvironmentCollection) hasNextLink() bool { + return asec.NextLink != nil && len(*asec.NextLink) != 0 +} + // appServiceEnvironmentCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (asec AppServiceEnvironmentCollection) appServiceEnvironmentCollectionPreparer(ctx context.Context) (*http.Request, error) { - if asec.NextLink == nil || len(to.String(asec.NextLink)) < 1 { + if !asec.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -3220,11 +2215,16 @@ func (page *AppServiceEnvironmentCollectionPage) NextWithContext(ctx context.Con tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.asec) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.asec) + if err != nil { + return err + } + page.asec = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.asec = next return nil } @@ -3890,10 +2890,15 @@ func (aspc AppServicePlanCollection) IsEmpty() bool { return aspc.Value == nil || len(*aspc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (aspc AppServicePlanCollection) hasNextLink() bool { + return aspc.NextLink != nil && len(*aspc.NextLink) != 0 +} + // appServicePlanCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (aspc AppServicePlanCollection) appServicePlanCollectionPreparer(ctx context.Context) (*http.Request, error) { - if aspc.NextLink == nil || len(to.String(aspc.NextLink)) < 1 { + if !aspc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -3921,11 +2926,16 @@ func (page *AppServicePlanCollectionPage) NextWithContext(ctx context.Context) ( tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.aspc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.aspc) + if err != nil { + return err + } + page.aspc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.aspc = next return nil } @@ -4084,6 +3094,42 @@ type AppServicePlanPatchResourceProperties struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for AppServicePlanPatchResourceProperties. +func (asppr AppServicePlanPatchResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if asppr.Name != nil { + objectMap["name"] = asppr.Name + } + if asppr.WorkerTierName != nil { + objectMap["workerTierName"] = asppr.WorkerTierName + } + if asppr.AdminSiteName != nil { + objectMap["adminSiteName"] = asppr.AdminSiteName + } + if asppr.HostingEnvironmentProfile != nil { + objectMap["hostingEnvironmentProfile"] = asppr.HostingEnvironmentProfile + } + if asppr.PerSiteScaling != nil { + objectMap["perSiteScaling"] = asppr.PerSiteScaling + } + if asppr.IsSpot != nil { + objectMap["isSpot"] = asppr.IsSpot + } + if asppr.SpotExpirationTime != nil { + objectMap["spotExpirationTime"] = asppr.SpotExpirationTime + } + if asppr.Reserved != nil { + objectMap["reserved"] = asppr.Reserved + } + if asppr.TargetWorkerCount != nil { + objectMap["targetWorkerCount"] = asppr.TargetWorkerCount + } + if asppr.TargetWorkerSizeID != nil { + objectMap["targetWorkerSizeId"] = asppr.TargetWorkerSizeID + } + return json.Marshal(objectMap) +} + // AppServicePlanProperties appServicePlan resource specific properties type AppServicePlanProperties struct { // Name - Name for the App Service plan. @@ -4123,6 +3169,42 @@ type AppServicePlanProperties struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for AppServicePlanProperties. +func (asp AppServicePlanProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if asp.Name != nil { + objectMap["name"] = asp.Name + } + if asp.WorkerTierName != nil { + objectMap["workerTierName"] = asp.WorkerTierName + } + if asp.AdminSiteName != nil { + objectMap["adminSiteName"] = asp.AdminSiteName + } + if asp.HostingEnvironmentProfile != nil { + objectMap["hostingEnvironmentProfile"] = asp.HostingEnvironmentProfile + } + if asp.PerSiteScaling != nil { + objectMap["perSiteScaling"] = asp.PerSiteScaling + } + if asp.IsSpot != nil { + objectMap["isSpot"] = asp.IsSpot + } + if asp.SpotExpirationTime != nil { + objectMap["spotExpirationTime"] = asp.SpotExpirationTime + } + if asp.Reserved != nil { + objectMap["reserved"] = asp.Reserved + } + if asp.TargetWorkerCount != nil { + objectMap["targetWorkerCount"] = asp.TargetWorkerCount + } + if asp.TargetWorkerSizeID != nil { + objectMap["targetWorkerSizeId"] = asp.TargetWorkerSizeID + } + return json.Marshal(objectMap) +} + // AppServicePlansCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type AppServicePlansCreateOrUpdateFuture struct { @@ -4152,8 +3234,8 @@ func (future *AppServicePlansCreateOrUpdateFuture) Result(client AppServicePlans return } -// AppsInstallSiteExtensionFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. +// AppsInstallSiteExtensionFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type AppsInstallSiteExtensionFuture struct { azure.Future } @@ -4268,8 +3350,7 @@ func (future *AppsListPublishingCredentialsSlotFuture) Result(client AppsClient) return } -// AppsMigrateMySQLFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// AppsMigrateMySQLFuture an abstraction for monitoring and retrieving the results of a long-running operation. type AppsMigrateMySQLFuture struct { azure.Future } @@ -4348,8 +3429,7 @@ func (future *AppsRecoverFuture) Result(client AppsClient) (ar autorest.Response return } -// AppsRecoverSlotFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// AppsRecoverSlotFuture an abstraction for monitoring and retrieving the results of a long-running operation. type AppsRecoverSlotFuture struct { azure.Future } @@ -4399,8 +3479,7 @@ func (future *AppsRestoreFuture) Result(client AppsClient) (rr RestoreResponse, return } -// AppsRestoreSlotFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// AppsRestoreSlotFuture an abstraction for monitoring and retrieving the results of a long-running operation. type AppsRestoreSlotFuture struct { azure.Future } @@ -4428,8 +3507,7 @@ func (future *AppsRestoreSlotFuture) Result(client AppsClient) (rr RestoreRespon return } -// AppsSwapSlotSlotFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// AppsSwapSlotSlotFuture an abstraction for monitoring and retrieving the results of a long-running operation. type AppsSwapSlotSlotFuture struct { azure.Future } @@ -4451,8 +3529,8 @@ func (future *AppsSwapSlotSlotFuture) Result(client AppsClient) (ar autorest.Res return } -// AppsSwapSlotWithProductionFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. +// AppsSwapSlotWithProductionFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type AppsSwapSlotWithProductionFuture struct { azure.Future } @@ -4642,6 +3720,15 @@ type BackupItemCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BackupItemCollection. +func (bic BackupItemCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bic.Value != nil { + objectMap["value"] = bic.Value + } + return json.Marshal(objectMap) +} + // BackupItemCollectionIterator provides access to a complete listing of BackupItem values. type BackupItemCollectionIterator struct { i int @@ -4710,10 +3797,15 @@ func (bic BackupItemCollection) IsEmpty() bool { return bic.Value == nil || len(*bic.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (bic BackupItemCollection) hasNextLink() bool { + return bic.NextLink != nil && len(*bic.NextLink) != 0 +} + // backupItemCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (bic BackupItemCollection) backupItemCollectionPreparer(ctx context.Context) (*http.Request, error) { - if bic.NextLink == nil || len(to.String(bic.NextLink)) < 1 { + if !bic.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -4741,11 +3833,16 @@ func (page *BackupItemCollectionPage) NextWithContext(ctx context.Context) (err tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.bic) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.bic) + if err != nil { + return err + } + page.bic = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.bic = next return nil } @@ -4914,8 +4011,8 @@ type BackupRequestProperties struct { Type BackupRestoreOperationType `json:"type,omitempty"` } -// BackupSchedule description of a backup schedule. Describes how often should be the backup performed and -// what should be the retention policy. +// BackupSchedule description of a backup schedule. Describes how often should be the backup performed and what +// should be the retention policy. type BackupSchedule struct { // FrequencyInterval - How often the backup should be executed (e.g. for weekly backup, this should be set to 7 and FrequencyUnit should be set to Day) FrequencyInterval *int32 `json:"frequencyInterval,omitempty"` @@ -4931,8 +4028,29 @@ type BackupSchedule struct { LastExecutionTime *date.Time `json:"lastExecutionTime,omitempty"` } -// BillingMeter app Service billing entity that contains information about meter which the Azure billing -// system utilizes to charge users for services. +// MarshalJSON is the custom marshaler for BackupSchedule. +func (bs BackupSchedule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bs.FrequencyInterval != nil { + objectMap["frequencyInterval"] = bs.FrequencyInterval + } + if bs.FrequencyUnit != "" { + objectMap["frequencyUnit"] = bs.FrequencyUnit + } + if bs.KeepAtLeastOneBackup != nil { + objectMap["keepAtLeastOneBackup"] = bs.KeepAtLeastOneBackup + } + if bs.RetentionPeriodInDays != nil { + objectMap["retentionPeriodInDays"] = bs.RetentionPeriodInDays + } + if bs.StartTime != nil { + objectMap["startTime"] = bs.StartTime + } + return json.Marshal(objectMap) +} + +// BillingMeter app Service billing entity that contains information about meter which the Azure billing system +// utilizes to charge users for services. type BillingMeter struct { // BillingMeterProperties - BillingMeter resource specific properties *BillingMeterProperties `json:"properties,omitempty"` @@ -5027,6 +4145,15 @@ type BillingMeterCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for BillingMeterCollection. +func (bmc BillingMeterCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bmc.Value != nil { + objectMap["value"] = bmc.Value + } + return json.Marshal(objectMap) +} + // BillingMeterCollectionIterator provides access to a complete listing of BillingMeter values. type BillingMeterCollectionIterator struct { i int @@ -5095,10 +4222,15 @@ func (bmc BillingMeterCollection) IsEmpty() bool { return bmc.Value == nil || len(*bmc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (bmc BillingMeterCollection) hasNextLink() bool { + return bmc.NextLink != nil && len(*bmc.NextLink) != 0 +} + // billingMeterCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (bmc BillingMeterCollection) billingMeterCollectionPreparer(ctx context.Context) (*http.Request, error) { - if bmc.NextLink == nil || len(to.String(bmc.NextLink)) < 1 { + if !bmc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -5126,11 +4258,16 @@ func (page *BillingMeterCollectionPage) NextWithContext(ctx context.Context) (er tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.bmc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.bmc) + if err != nil { + return err + } + page.bmc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.bmc = next return nil } @@ -5312,6 +4449,15 @@ type CertificateCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateCollection. +func (cc CertificateCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cc.Value != nil { + objectMap["value"] = cc.Value + } + return json.Marshal(objectMap) +} + // CertificateCollectionIterator provides access to a complete listing of Certificate values. type CertificateCollectionIterator struct { i int @@ -5380,10 +4526,15 @@ func (cc CertificateCollection) IsEmpty() bool { return cc.Value == nil || len(*cc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (cc CertificateCollection) hasNextLink() bool { + return cc.NextLink != nil && len(*cc.NextLink) != 0 +} + // certificateCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (cc CertificateCollection) certificateCollectionPreparer(ctx context.Context) (*http.Request, error) { - if cc.NextLink == nil || len(to.String(cc.NextLink)) < 1 { + if !cc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -5411,11 +4562,16 @@ func (page *CertificateCollectionPage) NextWithContext(ctx context.Context) (err tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.cc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.cc) + if err != nil { + return err + } + page.cc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.cc = next return nil } @@ -5789,6 +4945,30 @@ type CertificatePatchResourceProperties struct { ServerFarmID *string `json:"serverFarmId,omitempty"` } +// MarshalJSON is the custom marshaler for CertificatePatchResourceProperties. +func (cpr CertificatePatchResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cpr.HostNames != nil { + objectMap["hostNames"] = cpr.HostNames + } + if cpr.PfxBlob != nil { + objectMap["pfxBlob"] = cpr.PfxBlob + } + if cpr.Password != nil { + objectMap["password"] = cpr.Password + } + if cpr.KeyVaultID != nil { + objectMap["keyVaultId"] = cpr.KeyVaultID + } + if cpr.KeyVaultSecretName != nil { + objectMap["keyVaultSecretName"] = cpr.KeyVaultSecretName + } + if cpr.ServerFarmID != nil { + objectMap["serverFarmId"] = cpr.ServerFarmID + } + return json.Marshal(objectMap) +} + // CertificateProperties certificate resource specific properties type CertificateProperties struct { // FriendlyName - READ-ONLY; Friendly name of the certificate. @@ -5833,6 +5013,30 @@ type CertificateProperties struct { ServerFarmID *string `json:"serverFarmId,omitempty"` } +// MarshalJSON is the custom marshaler for CertificateProperties. +func (c CertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if c.HostNames != nil { + objectMap["hostNames"] = c.HostNames + } + if c.PfxBlob != nil { + objectMap["pfxBlob"] = c.PfxBlob + } + if c.Password != nil { + objectMap["password"] = c.Password + } + if c.KeyVaultID != nil { + objectMap["keyVaultId"] = c.KeyVaultID + } + if c.KeyVaultSecretName != nil { + objectMap["keyVaultSecretName"] = c.KeyVaultSecretName + } + if c.ServerFarmID != nil { + objectMap["serverFarmId"] = c.ServerFarmID + } + return json.Marshal(objectMap) +} + // CloningInfo information needed for cloning operation. type CloningInfo struct { // CorrelationID - Correlation ID of cloning operation. This ID ties multiple cloning operations @@ -6136,10 +5340,15 @@ func (cwjc ContinuousWebJobCollection) IsEmpty() bool { return cwjc.Value == nil || len(*cwjc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (cwjc ContinuousWebJobCollection) hasNextLink() bool { + return cwjc.NextLink != nil && len(*cwjc.NextLink) != 0 +} + // continuousWebJobCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (cwjc ContinuousWebJobCollection) continuousWebJobCollectionPreparer(ctx context.Context) (*http.Request, error) { - if cwjc.NextLink == nil || len(to.String(cwjc.NextLink)) < 1 { + if !cwjc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -6167,11 +5376,16 @@ func (page *ContinuousWebJobCollectionPage) NextWithContext(ctx context.Context) tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.cwjc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.cwjc) + if err != nil { + return err + } + page.cwjc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.cwjc = next return nil } @@ -6290,6 +5504,15 @@ type CsmOperationCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CsmOperationCollection. +func (coc CsmOperationCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if coc.Value != nil { + objectMap["value"] = coc.Value + } + return json.Marshal(objectMap) +} + // CsmOperationCollectionIterator provides access to a complete listing of CsmOperationDescription values. type CsmOperationCollectionIterator struct { i int @@ -6358,10 +5581,15 @@ func (coc CsmOperationCollection) IsEmpty() bool { return coc.Value == nil || len(*coc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (coc CsmOperationCollection) hasNextLink() bool { + return coc.NextLink != nil && len(*coc.NextLink) != 0 +} + // csmOperationCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (coc CsmOperationCollection) csmOperationCollectionPreparer(ctx context.Context) (*http.Request, error) { - if coc.NextLink == nil || len(to.String(coc.NextLink)) < 1 { + if !coc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -6389,11 +5617,16 @@ func (page *CsmOperationCollectionPage) NextWithContext(ctx context.Context) (er tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.coc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.coc) + if err != nil { + return err + } + page.coc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.coc = next return nil } @@ -6488,6 +5721,15 @@ type CsmUsageQuotaCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for CsmUsageQuotaCollection. +func (cuqc CsmUsageQuotaCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cuqc.Value != nil { + objectMap["value"] = cuqc.Value + } + return json.Marshal(objectMap) +} + // CsmUsageQuotaCollectionIterator provides access to a complete listing of CsmUsageQuota values. type CsmUsageQuotaCollectionIterator struct { i int @@ -6556,10 +5798,15 @@ func (cuqc CsmUsageQuotaCollection) IsEmpty() bool { return cuqc.Value == nil || len(*cuqc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (cuqc CsmUsageQuotaCollection) hasNextLink() bool { + return cuqc.NextLink != nil && len(*cuqc.NextLink) != 0 +} + // csmUsageQuotaCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (cuqc CsmUsageQuotaCollection) csmUsageQuotaCollectionPreparer(ctx context.Context) (*http.Request, error) { - if cuqc.NextLink == nil || len(to.String(cuqc.NextLink)) < 1 { + if !cuqc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -6587,11 +5834,16 @@ func (page *CsmUsageQuotaCollectionPage) NextWithContext(ctx context.Context) (e tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.cuqc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.cuqc) + if err != nil { + return err + } + page.cuqc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.cuqc = next return nil } @@ -6738,6 +5990,27 @@ type CustomHostnameAnalysisResultProperties struct { AlternateTxtRecords *[]string `json:"alternateTxtRecords,omitempty"` } +// MarshalJSON is the custom marshaler for CustomHostnameAnalysisResultProperties. +func (char CustomHostnameAnalysisResultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if char.CNameRecords != nil { + objectMap["cNameRecords"] = char.CNameRecords + } + if char.TxtRecords != nil { + objectMap["txtRecords"] = char.TxtRecords + } + if char.ARecords != nil { + objectMap["aRecords"] = char.ARecords + } + if char.AlternateCNameRecords != nil { + objectMap["alternateCNameRecords"] = char.AlternateCNameRecords + } + if char.AlternateTxtRecords != nil { + objectMap["alternateTxtRecords"] = char.AlternateTxtRecords + } + return json.Marshal(objectMap) +} + // DatabaseBackupSetting database backup settings. type DatabaseBackupSetting struct { // DatabaseType - Database type (e.g. SqlAzure / MySql). Possible values include: 'DatabaseTypeSQLAzure', 'DatabaseTypeMySQL', 'DatabaseTypeLocalMySQL', 'DatabaseTypePostgreSQL' @@ -6797,6 +6070,15 @@ type DefaultErrorResponseError struct { Innererror *string `json:"innererror,omitempty"` } +// MarshalJSON is the custom marshaler for DefaultErrorResponseError. +func (der DefaultErrorResponseError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if der.Details != nil { + objectMap["details"] = der.Details + } + return json.Marshal(objectMap) +} + // DefaultErrorResponseErrorDetailsItem detailed errors. type DefaultErrorResponseErrorDetailsItem struct { // Code - READ-ONLY; Standardized string to programmatically identify the error. @@ -6823,6 +6105,15 @@ type DeletedSite struct { Slot *string `json:"slot,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedSite. +func (ds DeletedSite) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ds.ID != nil { + objectMap["id"] = ds.ID + } + return json.Marshal(objectMap) +} + // DeletedWebAppCollection collection of deleted apps. type DeletedWebAppCollection struct { autorest.Response `json:"-"` @@ -6832,6 +6123,15 @@ type DeletedWebAppCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeletedWebAppCollection. +func (dwac DeletedWebAppCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dwac.Value != nil { + objectMap["value"] = dwac.Value + } + return json.Marshal(objectMap) +} + // DeletedWebAppCollectionIterator provides access to a complete listing of DeletedSite values. type DeletedWebAppCollectionIterator struct { i int @@ -6900,10 +6200,15 @@ func (dwac DeletedWebAppCollection) IsEmpty() bool { return dwac.Value == nil || len(*dwac.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (dwac DeletedWebAppCollection) hasNextLink() bool { + return dwac.NextLink != nil && len(*dwac.NextLink) != 0 +} + // deletedWebAppCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (dwac DeletedWebAppCollection) deletedWebAppCollectionPreparer(ctx context.Context) (*http.Request, error) { - if dwac.NextLink == nil || len(to.String(dwac.NextLink)) < 1 { + if !dwac.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -6931,11 +6236,16 @@ func (page *DeletedWebAppCollectionPage) NextWithContext(ctx context.Context) (e tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.dwac) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.dwac) + if err != nil { + return err + } + page.dwac = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.dwac = next return nil } @@ -7065,6 +6375,15 @@ type DeploymentCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DeploymentCollection. +func (dc DeploymentCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dc.Value != nil { + objectMap["value"] = dc.Value + } + return json.Marshal(objectMap) +} + // DeploymentCollectionIterator provides access to a complete listing of Deployment values. type DeploymentCollectionIterator struct { i int @@ -7133,10 +6452,15 @@ func (dc DeploymentCollection) IsEmpty() bool { return dc.Value == nil || len(*dc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (dc DeploymentCollection) hasNextLink() bool { + return dc.NextLink != nil && len(*dc.NextLink) != 0 +} + // deploymentCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (dc DeploymentCollection) deploymentCollectionPreparer(ctx context.Context) (*http.Request, error) { - if dc.NextLink == nil || len(to.String(dc.NextLink)) < 1 { + if !dc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -7164,11 +6488,16 @@ func (page *DeploymentCollectionPage) NextWithContext(ctx context.Context) (err tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.dc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.dc) + if err != nil { + return err + } + page.dc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.dc = next return nil } @@ -7464,6 +6793,15 @@ type DetectorResponseCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DetectorResponseCollection. +func (drc DetectorResponseCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if drc.Value != nil { + objectMap["value"] = drc.Value + } + return json.Marshal(objectMap) +} + // DetectorResponseCollectionIterator provides access to a complete listing of DetectorResponse values. type DetectorResponseCollectionIterator struct { i int @@ -7532,10 +6870,15 @@ func (drc DetectorResponseCollection) IsEmpty() bool { return drc.Value == nil || len(*drc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (drc DetectorResponseCollection) hasNextLink() bool { + return drc.NextLink != nil && len(*drc.NextLink) != 0 +} + // detectorResponseCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (drc DetectorResponseCollection) detectorResponseCollectionPreparer(ctx context.Context) (*http.Request, error) { - if drc.NextLink == nil || len(to.String(drc.NextLink)) < 1 { + if !drc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -7563,11 +6906,16 @@ func (page *DetectorResponseCollectionPage) NextWithContext(ctx context.Context) tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.drc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.drc) + if err != nil { + return err + } + page.drc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.drc = next return nil } @@ -7705,6 +7053,15 @@ type DiagnosticAnalysisCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DiagnosticAnalysisCollection. +func (dac DiagnosticAnalysisCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dac.Value != nil { + objectMap["value"] = dac.Value + } + return json.Marshal(objectMap) +} + // DiagnosticAnalysisCollectionIterator provides access to a complete listing of AnalysisDefinition values. type DiagnosticAnalysisCollectionIterator struct { i int @@ -7773,10 +7130,15 @@ func (dac DiagnosticAnalysisCollection) IsEmpty() bool { return dac.Value == nil || len(*dac.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (dac DiagnosticAnalysisCollection) hasNextLink() bool { + return dac.NextLink != nil && len(*dac.NextLink) != 0 +} + // diagnosticAnalysisCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (dac DiagnosticAnalysisCollection) diagnosticAnalysisCollectionPreparer(ctx context.Context) (*http.Request, error) { - if dac.NextLink == nil || len(to.String(dac.NextLink)) < 1 { + if !dac.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -7804,11 +7166,16 @@ func (page *DiagnosticAnalysisCollectionPage) NextWithContext(ctx context.Contex tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.dac) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.dac) + if err != nil { + return err + } + page.dac = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.dac = next return nil } @@ -7952,6 +7319,15 @@ type DiagnosticCategoryCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DiagnosticCategoryCollection. +func (dcc DiagnosticCategoryCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dcc.Value != nil { + objectMap["value"] = dcc.Value + } + return json.Marshal(objectMap) +} + // DiagnosticCategoryCollectionIterator provides access to a complete listing of DiagnosticCategory values. type DiagnosticCategoryCollectionIterator struct { i int @@ -8020,10 +7396,15 @@ func (dcc DiagnosticCategoryCollection) IsEmpty() bool { return dcc.Value == nil || len(*dcc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (dcc DiagnosticCategoryCollection) hasNextLink() bool { + return dcc.NextLink != nil && len(*dcc.NextLink) != 0 +} + // diagnosticCategoryCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (dcc DiagnosticCategoryCollection) diagnosticCategoryCollectionPreparer(ctx context.Context) (*http.Request, error) { - if dcc.NextLink == nil || len(to.String(dcc.NextLink)) < 1 { + if !dcc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -8051,11 +7432,16 @@ func (page *DiagnosticCategoryCollectionPage) NextWithContext(ctx context.Contex tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.dcc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.dcc) + if err != nil { + return err + } + page.dcc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.dcc = next return nil } @@ -8112,6 +7498,15 @@ type DiagnosticDetectorCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DiagnosticDetectorCollection. +func (ddc DiagnosticDetectorCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ddc.Value != nil { + objectMap["value"] = ddc.Value + } + return json.Marshal(objectMap) +} + // DiagnosticDetectorCollectionIterator provides access to a complete listing of DetectorDefinition values. type DiagnosticDetectorCollectionIterator struct { i int @@ -8180,10 +7575,15 @@ func (ddc DiagnosticDetectorCollection) IsEmpty() bool { return ddc.Value == nil || len(*ddc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (ddc DiagnosticDetectorCollection) hasNextLink() bool { + return ddc.NextLink != nil && len(*ddc.NextLink) != 0 +} + // diagnosticDetectorCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (ddc DiagnosticDetectorCollection) diagnosticDetectorCollectionPreparer(ctx context.Context) (*http.Request, error) { - if ddc.NextLink == nil || len(to.String(ddc.NextLink)) < 1 { + if !ddc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -8211,11 +7611,16 @@ func (page *DiagnosticDetectorCollectionPage) NextWithContext(ctx context.Contex tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.ddc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.ddc) + if err != nil { + return err + } + page.ddc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.ddc = next return nil } @@ -8535,6 +7940,15 @@ type DomainCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DomainCollection. +func (dc DomainCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dc.Value != nil { + objectMap["value"] = dc.Value + } + return json.Marshal(objectMap) +} + // DomainCollectionIterator provides access to a complete listing of Domain values. type DomainCollectionIterator struct { i int @@ -8603,10 +8017,15 @@ func (dc DomainCollection) IsEmpty() bool { return dc.Value == nil || len(*dc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (dc DomainCollection) hasNextLink() bool { + return dc.NextLink != nil && len(*dc.NextLink) != 0 +} + // domainCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (dc DomainCollection) domainCollectionPreparer(ctx context.Context) (*http.Request, error) { - if dc.NextLink == nil || len(to.String(dc.NextLink)) < 1 { + if !dc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -8634,11 +8053,16 @@ func (page *DomainCollectionPage) NextWithContext(ctx context.Context) (err erro tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.dc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.dc) + if err != nil { + return err + } + page.dc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.dc = next return nil } @@ -8779,6 +8203,15 @@ type DomainOwnershipIdentifierCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for DomainOwnershipIdentifierCollection. +func (doic DomainOwnershipIdentifierCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if doic.Value != nil { + objectMap["value"] = doic.Value + } + return json.Marshal(objectMap) +} + // DomainOwnershipIdentifierCollectionIterator provides access to a complete listing of // DomainOwnershipIdentifier values. type DomainOwnershipIdentifierCollectionIterator struct { @@ -8848,10 +8281,15 @@ func (doic DomainOwnershipIdentifierCollection) IsEmpty() bool { return doic.Value == nil || len(*doic.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (doic DomainOwnershipIdentifierCollection) hasNextLink() bool { + return doic.NextLink != nil && len(*doic.NextLink) != 0 +} + // domainOwnershipIdentifierCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (doic DomainOwnershipIdentifierCollection) domainOwnershipIdentifierCollectionPreparer(ctx context.Context) (*http.Request, error) { - if doic.NextLink == nil || len(to.String(doic.NextLink)) < 1 { + if !doic.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -8879,11 +8317,16 @@ func (page *DomainOwnershipIdentifierCollectionPage) NextWithContext(ctx context tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.doic) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.doic) + if err != nil { + return err + } + page.doic = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.doic = next return nil } @@ -9053,6 +8496,45 @@ type DomainPatchResourceProperties struct { AuthCode *string `json:"authCode,omitempty"` } +// MarshalJSON is the custom marshaler for DomainPatchResourceProperties. +func (dpr DomainPatchResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dpr.ContactAdmin != nil { + objectMap["contactAdmin"] = dpr.ContactAdmin + } + if dpr.ContactBilling != nil { + objectMap["contactBilling"] = dpr.ContactBilling + } + if dpr.ContactRegistrant != nil { + objectMap["contactRegistrant"] = dpr.ContactRegistrant + } + if dpr.ContactTech != nil { + objectMap["contactTech"] = dpr.ContactTech + } + if dpr.Privacy != nil { + objectMap["privacy"] = dpr.Privacy + } + if dpr.AutoRenew != nil { + objectMap["autoRenew"] = dpr.AutoRenew + } + if dpr.Consent != nil { + objectMap["consent"] = dpr.Consent + } + if dpr.DNSType != "" { + objectMap["dnsType"] = dpr.DNSType + } + if dpr.DNSZoneID != nil { + objectMap["dnsZoneId"] = dpr.DNSZoneID + } + if dpr.TargetDNSType != "" { + objectMap["targetDnsType"] = dpr.TargetDNSType + } + if dpr.AuthCode != nil { + objectMap["authCode"] = dpr.AuthCode + } + return json.Marshal(objectMap) +} + // DomainProperties domain resource specific properties type DomainProperties struct { // ContactAdmin - Administrative contact. @@ -9097,6 +8579,45 @@ type DomainProperties struct { AuthCode *string `json:"authCode,omitempty"` } +// MarshalJSON is the custom marshaler for DomainProperties. +func (d DomainProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if d.ContactAdmin != nil { + objectMap["contactAdmin"] = d.ContactAdmin + } + if d.ContactBilling != nil { + objectMap["contactBilling"] = d.ContactBilling + } + if d.ContactRegistrant != nil { + objectMap["contactRegistrant"] = d.ContactRegistrant + } + if d.ContactTech != nil { + objectMap["contactTech"] = d.ContactTech + } + if d.Privacy != nil { + objectMap["privacy"] = d.Privacy + } + if d.AutoRenew != nil { + objectMap["autoRenew"] = d.AutoRenew + } + if d.Consent != nil { + objectMap["consent"] = d.Consent + } + if d.DNSType != "" { + objectMap["dnsType"] = d.DNSType + } + if d.DNSZoneID != nil { + objectMap["dnsZoneId"] = d.DNSZoneID + } + if d.TargetDNSType != "" { + objectMap["targetDnsType"] = d.TargetDNSType + } + if d.AuthCode != nil { + objectMap["authCode"] = d.AuthCode + } + return json.Marshal(objectMap) +} + // DomainPurchaseConsent domain purchase consent object, representing acceptance of applicable legal // agreements. type DomainPurchaseConsent struct { @@ -9297,6 +8818,15 @@ type FunctionEnvelopeCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for FunctionEnvelopeCollection. +func (fec FunctionEnvelopeCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fec.Value != nil { + objectMap["value"] = fec.Value + } + return json.Marshal(objectMap) +} + // FunctionEnvelopeCollectionIterator provides access to a complete listing of FunctionEnvelope values. type FunctionEnvelopeCollectionIterator struct { i int @@ -9365,10 +8895,15 @@ func (fec FunctionEnvelopeCollection) IsEmpty() bool { return fec.Value == nil || len(*fec.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (fec FunctionEnvelopeCollection) hasNextLink() bool { + return fec.NextLink != nil && len(*fec.NextLink) != 0 +} + // functionEnvelopeCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (fec FunctionEnvelopeCollection) functionEnvelopeCollectionPreparer(ctx context.Context) (*http.Request, error) { - if fec.NextLink == nil || len(to.String(fec.NextLink)) < 1 { + if !fec.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -9396,11 +8931,16 @@ func (page *FunctionEnvelopeCollectionPage) NextWithContext(ctx context.Context) tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.fec) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.fec) + if err != nil { + return err + } + page.fec = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.fec = next return nil } @@ -9678,6 +9218,15 @@ type GeoRegionCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for GeoRegionCollection. +func (grc GeoRegionCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if grc.Value != nil { + objectMap["value"] = grc.Value + } + return json.Marshal(objectMap) +} + // GeoRegionCollectionIterator provides access to a complete listing of GeoRegion values. type GeoRegionCollectionIterator struct { i int @@ -9746,10 +9295,15 @@ func (grc GeoRegionCollection) IsEmpty() bool { return grc.Value == nil || len(*grc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (grc GeoRegionCollection) hasNextLink() bool { + return grc.NextLink != nil && len(*grc.NextLink) != 0 +} + // geoRegionCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (grc GeoRegionCollection) geoRegionCollectionPreparer(ctx context.Context) (*http.Request, error) { - if grc.NextLink == nil || len(to.String(grc.NextLink)) < 1 { + if !grc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -9777,11 +9331,16 @@ func (page *GeoRegionCollectionPage) NextWithContext(ctx context.Context) (err e tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.grc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.grc) + if err != nil { + return err + } + page.grc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.grc = next return nil } @@ -9843,10 +9402,9 @@ type GlobalCsmSkuDescription struct { Capabilities *[]Capability `json:"capabilities,omitempty"` } -// HandlerMapping the IIS handler mappings used to define which handler processes HTTP requests with -// certain extension. -// For example, it is used to configure php-cgi.exe process to handle all HTTP requests with *.php +// HandlerMapping the IIS handler mappings used to define which handler processes HTTP requests with certain // extension. +// For example, it is used to configure php-cgi.exe process to handle all HTTP requests with *.php extension. type HandlerMapping struct { // Extension - Requests with this extension will be handled using the specified FastCGI application. Extension *string `json:"extension,omitempty"` @@ -9883,6 +9441,15 @@ type HostingEnvironmentProfile struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for HostingEnvironmentProfile. +func (hep HostingEnvironmentProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hep.ID != nil { + objectMap["id"] = hep.ID + } + return json.Marshal(objectMap) +} + // HostName details of a hostname derived from a domain. type HostName struct { // Name - Name of the hostname. @@ -9995,6 +9562,15 @@ type HostNameBindingCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for HostNameBindingCollection. +func (hnbc HostNameBindingCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hnbc.Value != nil { + objectMap["value"] = hnbc.Value + } + return json.Marshal(objectMap) +} + // HostNameBindingCollectionIterator provides access to a complete listing of HostNameBinding values. type HostNameBindingCollectionIterator struct { i int @@ -10063,10 +9639,15 @@ func (hnbc HostNameBindingCollection) IsEmpty() bool { return hnbc.Value == nil || len(*hnbc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (hnbc HostNameBindingCollection) hasNextLink() bool { + return hnbc.NextLink != nil && len(*hnbc.NextLink) != 0 +} + // hostNameBindingCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (hnbc HostNameBindingCollection) hostNameBindingCollectionPreparer(ctx context.Context) (*http.Request, error) { - if hnbc.NextLink == nil || len(to.String(hnbc.NextLink)) < 1 { + if !hnbc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -10094,11 +9675,16 @@ func (page *HostNameBindingCollectionPage) NextWithContext(ctx context.Context) tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.hnbc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.hnbc) + if err != nil { + return err + } + page.hnbc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.hnbc = next return nil } @@ -10154,6 +9740,36 @@ type HostNameBindingProperties struct { VirtualIP *string `json:"virtualIP,omitempty"` } +// MarshalJSON is the custom marshaler for HostNameBindingProperties. +func (hnb HostNameBindingProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hnb.SiteName != nil { + objectMap["siteName"] = hnb.SiteName + } + if hnb.DomainID != nil { + objectMap["domainId"] = hnb.DomainID + } + if hnb.AzureResourceName != nil { + objectMap["azureResourceName"] = hnb.AzureResourceName + } + if hnb.AzureResourceType != "" { + objectMap["azureResourceType"] = hnb.AzureResourceType + } + if hnb.CustomHostNameDNSRecordType != "" { + objectMap["customHostNameDnsRecordType"] = hnb.CustomHostNameDNSRecordType + } + if hnb.HostNameType != "" { + objectMap["hostNameType"] = hnb.HostNameType + } + if hnb.SslState != "" { + objectMap["sslState"] = hnb.SslState + } + if hnb.Thumbprint != nil { + objectMap["thumbprint"] = hnb.Thumbprint + } + return json.Marshal(objectMap) +} + // HostNameSslState SSL-enabled hostname. type HostNameSslState struct { // Name - Hostname. @@ -10274,6 +9890,15 @@ type HybridConnectionCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for HybridConnectionCollection. +func (hcc HybridConnectionCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hcc.Value != nil { + objectMap["value"] = hcc.Value + } + return json.Marshal(objectMap) +} + // HybridConnectionCollectionIterator provides access to a complete listing of HybridConnection values. type HybridConnectionCollectionIterator struct { i int @@ -10342,10 +9967,15 @@ func (hcc HybridConnectionCollection) IsEmpty() bool { return hcc.Value == nil || len(*hcc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (hcc HybridConnectionCollection) hasNextLink() bool { + return hcc.NextLink != nil && len(*hcc.NextLink) != 0 +} + // hybridConnectionCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (hcc HybridConnectionCollection) hybridConnectionCollectionPreparer(ctx context.Context) (*http.Request, error) { - if hcc.NextLink == nil || len(to.String(hcc.NextLink)) < 1 { + if !hcc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -10373,11 +10003,16 @@ func (page *HybridConnectionCollectionPage) NextWithContext(ctx context.Context) tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.hcc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.hcc) + if err != nil { + return err + } + page.hcc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.hcc = next return nil } @@ -10507,8 +10142,8 @@ type HybridConnectionKeyProperties struct { SendKeyValue *string `json:"sendKeyValue,omitempty"` } -// HybridConnectionLimits hybrid Connection limits contract. This is used to return the plan limits of -// Hybrid Connections. +// HybridConnectionLimits hybrid Connection limits contract. This is used to return the plan limits of Hybrid +// Connections. type HybridConnectionLimits struct { autorest.Response `json:"-"` // HybridConnectionLimitsProperties - HybridConnectionLimits resource specific properties @@ -10720,6 +10355,15 @@ type IdentifierCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for IdentifierCollection. +func (ic IdentifierCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ic.Value != nil { + objectMap["value"] = ic.Value + } + return json.Marshal(objectMap) +} + // IdentifierCollectionIterator provides access to a complete listing of Identifier values. type IdentifierCollectionIterator struct { i int @@ -10788,10 +10432,15 @@ func (ic IdentifierCollection) IsEmpty() bool { return ic.Value == nil || len(*ic.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (ic IdentifierCollection) hasNextLink() bool { + return ic.NextLink != nil && len(*ic.NextLink) != 0 +} + // identifierCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (ic IdentifierCollection) identifierCollectionPreparer(ctx context.Context) (*http.Request, error) { - if ic.NextLink == nil || len(to.String(ic.NextLink)) < 1 { + if !ic.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -10819,11 +10468,16 @@ func (page *IdentifierCollectionPage) NextWithContext(ctx context.Context) (err tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.ic) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.ic) + if err != nil { + return err + } + page.ic = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.ic = next return nil } @@ -10967,6 +10621,15 @@ type JobCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for JobCollection. +func (jc JobCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if jc.Value != nil { + objectMap["value"] = jc.Value + } + return json.Marshal(objectMap) +} + // JobCollectionIterator provides access to a complete listing of Job values. type JobCollectionIterator struct { i int @@ -11035,10 +10698,15 @@ func (jc JobCollection) IsEmpty() bool { return jc.Value == nil || len(*jc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (jc JobCollection) hasNextLink() bool { + return jc.NextLink != nil && len(*jc.NextLink) != 0 +} + // jobCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (jc JobCollection) jobCollectionPreparer(ctx context.Context) (*http.Request, error) { - if jc.NextLink == nil || len(to.String(jc.NextLink)) < 1 { + if !jc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -11066,11 +10734,16 @@ func (page *JobCollectionPage) NextWithContext(ctx context.Context) (err error) tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.jc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.jc) + if err != nil { + return err + } + page.jc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.jc = next return nil } @@ -11211,6 +10884,15 @@ type ManagedServiceIdentity struct { PrincipalID *string `json:"principalId,omitempty"` } +// 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 + } + return json.Marshal(objectMap) +} + // MetricAvailabilily metric availability and retention. type MetricAvailabilily struct { // TimeGrain - Time grain. @@ -11890,6 +11572,15 @@ type NameIdentifierCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for NameIdentifierCollection. +func (nic NameIdentifierCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if nic.Value != nil { + objectMap["value"] = nic.Value + } + return json.Marshal(objectMap) +} + // NameIdentifierCollectionIterator provides access to a complete listing of NameIdentifier values. type NameIdentifierCollectionIterator struct { i int @@ -11958,10 +11649,15 @@ func (nic NameIdentifierCollection) IsEmpty() bool { return nic.Value == nil || len(*nic.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (nic NameIdentifierCollection) hasNextLink() bool { + return nic.NextLink != nil && len(*nic.NextLink) != 0 +} + // nameIdentifierCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (nic NameIdentifierCollection) nameIdentifierCollectionPreparer(ctx context.Context) (*http.Request, error) { - if nic.NextLink == nil || len(to.String(nic.NextLink)) < 1 { + if !nic.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -11989,11 +11685,16 @@ func (page *NameIdentifierCollectionPage) NextWithContext(ctx context.Context) ( tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.nic) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.nic) + if err != nil { + return err + } + page.nic = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.nic = next return nil } @@ -12177,6 +11878,15 @@ type PerfMonCounterCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PerfMonCounterCollection. +func (pmcc PerfMonCounterCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pmcc.Value != nil { + objectMap["value"] = pmcc.Value + } + return json.Marshal(objectMap) +} + // PerfMonCounterCollectionIterator provides access to a complete listing of PerfMonResponse values. type PerfMonCounterCollectionIterator struct { i int @@ -12245,10 +11955,15 @@ func (pmcc PerfMonCounterCollection) IsEmpty() bool { return pmcc.Value == nil || len(*pmcc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (pmcc PerfMonCounterCollection) hasNextLink() bool { + return pmcc.NextLink != nil && len(*pmcc.NextLink) != 0 +} + // perfMonCounterCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (pmcc PerfMonCounterCollection) perfMonCounterCollectionPreparer(ctx context.Context) (*http.Request, error) { - if pmcc.NextLink == nil || len(to.String(pmcc.NextLink)) < 1 { + if !pmcc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -12276,11 +11991,16 @@ func (page *PerfMonCounterCollectionPage) NextWithContext(ctx context.Context) ( tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.pmcc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.pmcc) + if err != nil { + return err + } + page.pmcc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.pmcc = next return nil } @@ -12560,6 +12280,15 @@ type PremierAddOnOfferCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PremierAddOnOfferCollection. +func (paooc PremierAddOnOfferCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if paooc.Value != nil { + objectMap["value"] = paooc.Value + } + return json.Marshal(objectMap) +} + // PremierAddOnOfferCollectionIterator provides access to a complete listing of PremierAddOnOffer values. type PremierAddOnOfferCollectionIterator struct { i int @@ -12628,10 +12357,15 @@ func (paooc PremierAddOnOfferCollection) IsEmpty() bool { return paooc.Value == nil || len(*paooc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (paooc PremierAddOnOfferCollection) hasNextLink() bool { + return paooc.NextLink != nil && len(*paooc.NextLink) != 0 +} + // premierAddOnOfferCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (paooc PremierAddOnOfferCollection) premierAddOnOfferCollectionPreparer(ctx context.Context) (*http.Request, error) { - if paooc.NextLink == nil || len(to.String(paooc.NextLink)) < 1 { + if !paooc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -12659,11 +12393,16 @@ func (page *PremierAddOnOfferCollectionPage) NextWithContext(ctx context.Context tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.paooc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.paooc) + if err != nil { + return err + } + page.paooc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.paooc = next return nil } @@ -12869,6 +12608,15 @@ type ProcessInfoCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ProcessInfoCollection. +func (pic ProcessInfoCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pic.Value != nil { + objectMap["value"] = pic.Value + } + return json.Marshal(objectMap) +} + // ProcessInfoCollectionIterator provides access to a complete listing of ProcessInfo values. type ProcessInfoCollectionIterator struct { i int @@ -12937,10 +12685,15 @@ func (pic ProcessInfoCollection) IsEmpty() bool { return pic.Value == nil || len(*pic.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (pic ProcessInfoCollection) hasNextLink() bool { + return pic.NextLink != nil && len(*pic.NextLink) != 0 +} + // processInfoCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (pic ProcessInfoCollection) processInfoCollectionPreparer(ctx context.Context) (*http.Request, error) { - if pic.NextLink == nil || len(to.String(pic.NextLink)) < 1 { + if !pic.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -12968,11 +12721,16 @@ func (page *ProcessInfoCollectionPage) NextWithContext(ctx context.Context) (err tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.pic) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.pic) + if err != nil { + return err + } + page.pic = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.pic = next return nil } @@ -13292,6 +13050,15 @@ type ProcessModuleInfoCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ProcessModuleInfoCollection. +func (pmic ProcessModuleInfoCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pmic.Value != nil { + objectMap["value"] = pmic.Value + } + return json.Marshal(objectMap) +} + // ProcessModuleInfoCollectionIterator provides access to a complete listing of ProcessModuleInfo values. type ProcessModuleInfoCollectionIterator struct { i int @@ -13360,10 +13127,15 @@ func (pmic ProcessModuleInfoCollection) IsEmpty() bool { return pmic.Value == nil || len(*pmic.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (pmic ProcessModuleInfoCollection) hasNextLink() bool { + return pmic.NextLink != nil && len(*pmic.NextLink) != 0 +} + // processModuleInfoCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (pmic ProcessModuleInfoCollection) processModuleInfoCollectionPreparer(ctx context.Context) (*http.Request, error) { - if pmic.NextLink == nil || len(to.String(pmic.NextLink)) < 1 { + if !pmic.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -13391,11 +13163,16 @@ func (page *ProcessModuleInfoCollectionPage) NextWithContext(ctx context.Context tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.pmic) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.pmic) + if err != nil { + return err + } + page.pmic = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.pmic = next return nil } @@ -13551,6 +13328,15 @@ type ProcessThreadInfoCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ProcessThreadInfoCollection. +func (ptic ProcessThreadInfoCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ptic.Value != nil { + objectMap["value"] = ptic.Value + } + return json.Marshal(objectMap) +} + // ProcessThreadInfoCollectionIterator provides access to a complete listing of ProcessThreadInfo values. type ProcessThreadInfoCollectionIterator struct { i int @@ -13619,10 +13405,15 @@ func (ptic ProcessThreadInfoCollection) IsEmpty() bool { return ptic.Value == nil || len(*ptic.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (ptic ProcessThreadInfoCollection) hasNextLink() bool { + return ptic.NextLink != nil && len(*ptic.NextLink) != 0 +} + // processThreadInfoCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (ptic ProcessThreadInfoCollection) processThreadInfoCollectionPreparer(ctx context.Context) (*http.Request, error) { - if ptic.NextLink == nil || len(to.String(ptic.NextLink)) < 1 { + if !ptic.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -13650,11 +13441,16 @@ func (page *ProcessThreadInfoCollectionPage) NextWithContext(ctx context.Context tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.ptic) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.ptic) + if err != nil { + return err + } + page.ptic = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.ptic = next return nil } @@ -13730,6 +13526,15 @@ type ProxyOnlyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyOnlyResource. +func (por ProxyOnlyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if por.Kind != nil { + objectMap["kind"] = por.Kind + } + return json.Marshal(objectMap) +} + // PublicCertificate public certificate object type PublicCertificate struct { autorest.Response `json:"-"` @@ -13826,6 +13631,15 @@ type PublicCertificateCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for PublicCertificateCollection. +func (pcc PublicCertificateCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pcc.Value != nil { + objectMap["value"] = pcc.Value + } + return json.Marshal(objectMap) +} + // PublicCertificateCollectionIterator provides access to a complete listing of PublicCertificate values. type PublicCertificateCollectionIterator struct { i int @@ -13894,10 +13708,15 @@ func (pcc PublicCertificateCollection) IsEmpty() bool { return pcc.Value == nil || len(*pcc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (pcc PublicCertificateCollection) hasNextLink() bool { + return pcc.NextLink != nil && len(*pcc.NextLink) != 0 +} + // publicCertificateCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (pcc PublicCertificateCollection) publicCertificateCollectionPreparer(ctx context.Context) (*http.Request, error) { - if pcc.NextLink == nil || len(to.String(pcc.NextLink)) < 1 { + if !pcc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -13925,11 +13744,16 @@ func (page *PublicCertificateCollectionPage) NextWithContext(ctx context.Context tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.pcc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.pcc) + if err != nil { + return err + } + page.pcc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.pcc = next return nil } @@ -13973,6 +13797,18 @@ type PublicCertificateProperties struct { Thumbprint *string `json:"thumbprint,omitempty"` } +// MarshalJSON is the custom marshaler for PublicCertificateProperties. +func (pc PublicCertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pc.Blob != nil { + objectMap["blob"] = pc.Blob + } + if pc.PublicCertificateLocation != "" { + objectMap["publicCertificateLocation"] = pc.PublicCertificateLocation + } + return json.Marshal(objectMap) +} + // PushSettings push settings for the App. type PushSettings struct { autorest.Response `json:"-"` @@ -14075,8 +13911,8 @@ type PushSettingsProperties struct { DynamicTagsJSON *string `json:"dynamicTagsJson,omitempty"` } -// RampUpRule routing rules for ramp up testing. This rule allows to redirect static traffic % to a slot or -// to gradually change routing % based on performance. +// RampUpRule routing rules for ramp up testing. This rule allows to redirect static traffic % to a slot or to +// gradually change routing % based on performance. type RampUpRule struct { // ActionHostName - Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. ActionHostName *string `json:"actionHostName,omitempty"` @@ -14200,6 +14036,15 @@ type RecommendationCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for RecommendationCollection. +func (rc RecommendationCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rc.Value != nil { + objectMap["value"] = rc.Value + } + return json.Marshal(objectMap) +} + // RecommendationCollectionIterator provides access to a complete listing of Recommendation values. type RecommendationCollectionIterator struct { i int @@ -14268,10 +14113,15 @@ func (rc RecommendationCollection) IsEmpty() bool { return rc.Value == nil || len(*rc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (rc RecommendationCollection) hasNextLink() bool { + return rc.NextLink != nil && len(*rc.NextLink) != 0 +} + // recommendationCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (rc RecommendationCollection) recommendationCollectionPreparer(ctx context.Context) (*http.Request, error) { - if rc.NextLink == nil || len(to.String(rc.NextLink)) < 1 { + if !rc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -14299,11 +14149,16 @@ func (page *RecommendationCollectionPage) NextWithContext(ctx context.Context) ( tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.rc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.rc) + if err != nil { + return err + } + page.rc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.rc = next return nil } @@ -14851,6 +14706,15 @@ type ResourceCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceCollection. +func (rc ResourceCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rc.Value != nil { + objectMap["value"] = rc.Value + } + return json.Marshal(objectMap) +} + // ResourceCollectionIterator provides access to a complete listing of string values. type ResourceCollectionIterator struct { i int @@ -14919,10 +14783,15 @@ func (rc ResourceCollection) IsEmpty() bool { return rc.Value == nil || len(*rc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (rc ResourceCollection) hasNextLink() bool { + return rc.NextLink != nil && len(*rc.NextLink) != 0 +} + // resourceCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (rc ResourceCollection) resourceCollectionPreparer(ctx context.Context) (*http.Request, error) { - if rc.NextLink == nil || len(to.String(rc.NextLink)) < 1 { + if !rc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -14950,11 +14819,16 @@ func (page *ResourceCollectionPage) NextWithContext(ctx context.Context) (err er tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.rc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.rc) + if err != nil { + return err + } + page.rc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.rc = next return nil } @@ -15084,6 +14958,15 @@ type ResourceHealthMetadataCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceHealthMetadataCollection. +func (rhmc ResourceHealthMetadataCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rhmc.Value != nil { + objectMap["value"] = rhmc.Value + } + return json.Marshal(objectMap) +} + // ResourceHealthMetadataCollectionIterator provides access to a complete listing of ResourceHealthMetadata // values. type ResourceHealthMetadataCollectionIterator struct { @@ -15153,10 +15036,15 @@ func (rhmc ResourceHealthMetadataCollection) IsEmpty() bool { return rhmc.Value == nil || len(*rhmc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (rhmc ResourceHealthMetadataCollection) hasNextLink() bool { + return rhmc.NextLink != nil && len(*rhmc.NextLink) != 0 +} + // resourceHealthMetadataCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (rhmc ResourceHealthMetadataCollection) resourceHealthMetadataCollectionPreparer(ctx context.Context) (*http.Request, error) { - if rhmc.NextLink == nil || len(to.String(rhmc.NextLink)) < 1 { + if !rhmc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -15184,11 +15072,16 @@ func (page *ResourceHealthMetadataCollectionPage) NextWithContext(ctx context.Co tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.rhmc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.rhmc) + if err != nil { + return err + } + page.rhmc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.rhmc = next return nil } @@ -15269,6 +15162,15 @@ type ResourceMetricCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for ResourceMetricCollection. +func (rmc ResourceMetricCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rmc.Value != nil { + objectMap["value"] = rmc.Value + } + return json.Marshal(objectMap) +} + // ResourceMetricCollectionIterator provides access to a complete listing of ResourceMetric values. type ResourceMetricCollectionIterator struct { i int @@ -15337,10 +15239,15 @@ func (rmc ResourceMetricCollection) IsEmpty() bool { return rmc.Value == nil || len(*rmc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (rmc ResourceMetricCollection) hasNextLink() bool { + return rmc.NextLink != nil && len(*rmc.NextLink) != 0 +} + // resourceMetricCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (rmc ResourceMetricCollection) resourceMetricCollectionPreparer(ctx context.Context) (*http.Request, error) { - if rmc.NextLink == nil || len(to.String(rmc.NextLink)) < 1 { + if !rmc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -15368,11 +15275,16 @@ func (page *ResourceMetricCollectionPage) NextWithContext(ctx context.Context) ( tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.rmc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.rmc) + if err != nil { + return err + } + page.rmc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.rmc = next return nil } @@ -15501,8 +15413,17 @@ type ResourceMetricDefinitionCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// ResourceMetricDefinitionCollectionIterator provides access to a complete listing of -// ResourceMetricDefinition values. +// MarshalJSON is the custom marshaler for ResourceMetricDefinitionCollection. +func (rmdc ResourceMetricDefinitionCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rmdc.Value != nil { + objectMap["value"] = rmdc.Value + } + return json.Marshal(objectMap) +} + +// ResourceMetricDefinitionCollectionIterator provides access to a complete listing of ResourceMetricDefinition +// values. type ResourceMetricDefinitionCollectionIterator struct { i int page ResourceMetricDefinitionCollectionPage @@ -15570,10 +15491,15 @@ func (rmdc ResourceMetricDefinitionCollection) IsEmpty() bool { return rmdc.Value == nil || len(*rmdc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (rmdc ResourceMetricDefinitionCollection) hasNextLink() bool { + return rmdc.NextLink != nil && len(*rmdc.NextLink) != 0 +} + // resourceMetricDefinitionCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (rmdc ResourceMetricDefinitionCollection) resourceMetricDefinitionCollectionPreparer(ctx context.Context) (*http.Request, error) { - if rmdc.NextLink == nil || len(to.String(rmdc.NextLink)) < 1 { + if !rmdc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -15601,11 +15527,16 @@ func (page *ResourceMetricDefinitionCollectionPage) NextWithContext(ctx context. tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.rmdc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.rmdc) + if err != nil { + return err + } + page.rmdc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.rmdc = next return nil } @@ -16070,8 +16001,7 @@ func (s *Site) UnmarshalJSON(body []byte) error { return nil } -// SiteAuthSettings configuration settings for the Azure App Service Authentication / Authorization -// feature. +// SiteAuthSettings configuration settings for the Azure App Service Authentication / Authorization feature. type SiteAuthSettings struct { autorest.Response `json:"-"` // SiteAuthSettingsProperties - SiteAuthSettings resource specific properties @@ -16365,6 +16295,144 @@ type SiteConfig struct { MinTLSVersion SupportedTLSVersions `json:"minTlsVersion,omitempty"` } +// MarshalJSON is the custom marshaler for SiteConfig. +func (sc SiteConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sc.NumberOfWorkers != nil { + objectMap["numberOfWorkers"] = sc.NumberOfWorkers + } + if sc.DefaultDocuments != nil { + objectMap["defaultDocuments"] = sc.DefaultDocuments + } + if sc.NetFrameworkVersion != nil { + objectMap["netFrameworkVersion"] = sc.NetFrameworkVersion + } + if sc.PhpVersion != nil { + objectMap["phpVersion"] = sc.PhpVersion + } + if sc.PythonVersion != nil { + objectMap["pythonVersion"] = sc.PythonVersion + } + if sc.NodeVersion != nil { + objectMap["nodeVersion"] = sc.NodeVersion + } + if sc.LinuxFxVersion != nil { + objectMap["linuxFxVersion"] = sc.LinuxFxVersion + } + if sc.RequestTracingEnabled != nil { + objectMap["requestTracingEnabled"] = sc.RequestTracingEnabled + } + if sc.RequestTracingExpirationTime != nil { + objectMap["requestTracingExpirationTime"] = sc.RequestTracingExpirationTime + } + if sc.RemoteDebuggingEnabled != nil { + objectMap["remoteDebuggingEnabled"] = sc.RemoteDebuggingEnabled + } + if sc.RemoteDebuggingVersion != nil { + objectMap["remoteDebuggingVersion"] = sc.RemoteDebuggingVersion + } + if sc.HTTPLoggingEnabled != nil { + objectMap["httpLoggingEnabled"] = sc.HTTPLoggingEnabled + } + if sc.LogsDirectorySizeLimit != nil { + objectMap["logsDirectorySizeLimit"] = sc.LogsDirectorySizeLimit + } + if sc.DetailedErrorLoggingEnabled != nil { + objectMap["detailedErrorLoggingEnabled"] = sc.DetailedErrorLoggingEnabled + } + if sc.PublishingUsername != nil { + objectMap["publishingUsername"] = sc.PublishingUsername + } + if sc.AppSettings != nil { + objectMap["appSettings"] = sc.AppSettings + } + if sc.ConnectionStrings != nil { + objectMap["connectionStrings"] = sc.ConnectionStrings + } + if sc.HandlerMappings != nil { + objectMap["handlerMappings"] = sc.HandlerMappings + } + if sc.DocumentRoot != nil { + objectMap["documentRoot"] = sc.DocumentRoot + } + if sc.ScmType != "" { + objectMap["scmType"] = sc.ScmType + } + if sc.Use32BitWorkerProcess != nil { + objectMap["use32BitWorkerProcess"] = sc.Use32BitWorkerProcess + } + if sc.WebSocketsEnabled != nil { + objectMap["webSocketsEnabled"] = sc.WebSocketsEnabled + } + if sc.AlwaysOn != nil { + objectMap["alwaysOn"] = sc.AlwaysOn + } + if sc.JavaVersion != nil { + objectMap["javaVersion"] = sc.JavaVersion + } + if sc.JavaContainer != nil { + objectMap["javaContainer"] = sc.JavaContainer + } + if sc.JavaContainerVersion != nil { + objectMap["javaContainerVersion"] = sc.JavaContainerVersion + } + if sc.AppCommandLine != nil { + objectMap["appCommandLine"] = sc.AppCommandLine + } + if sc.ManagedPipelineMode != "" { + objectMap["managedPipelineMode"] = sc.ManagedPipelineMode + } + if sc.VirtualApplications != nil { + objectMap["virtualApplications"] = sc.VirtualApplications + } + if sc.LoadBalancing != "" { + objectMap["loadBalancing"] = sc.LoadBalancing + } + if sc.Experiments != nil { + objectMap["experiments"] = sc.Experiments + } + if sc.Limits != nil { + objectMap["limits"] = sc.Limits + } + if sc.AutoHealEnabled != nil { + objectMap["autoHealEnabled"] = sc.AutoHealEnabled + } + if sc.AutoHealRules != nil { + objectMap["autoHealRules"] = sc.AutoHealRules + } + if sc.TracingOptions != nil { + objectMap["tracingOptions"] = sc.TracingOptions + } + if sc.VnetName != nil { + objectMap["vnetName"] = sc.VnetName + } + if sc.Cors != nil { + objectMap["cors"] = sc.Cors + } + if sc.Push != nil { + objectMap["push"] = sc.Push + } + if sc.APIDefinition != nil { + objectMap["apiDefinition"] = sc.APIDefinition + } + if sc.AutoSwapSlotName != nil { + objectMap["autoSwapSlotName"] = sc.AutoSwapSlotName + } + if sc.LocalMySQLEnabled != nil { + objectMap["localMySqlEnabled"] = sc.LocalMySQLEnabled + } + if sc.IPSecurityRestrictions != nil { + objectMap["ipSecurityRestrictions"] = sc.IPSecurityRestrictions + } + if sc.HTTP20Enabled != nil { + objectMap["http20Enabled"] = sc.HTTP20Enabled + } + if sc.MinTLSVersion != "" { + objectMap["minTlsVersion"] = sc.MinTLSVersion + } + return json.Marshal(objectMap) +} + // SiteConfigResource web app configuration ARM resource. type SiteConfigResource struct { autorest.Response `json:"-"` @@ -16461,6 +16529,15 @@ type SiteConfigResourceCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SiteConfigResourceCollection. +func (scrc SiteConfigResourceCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if scrc.Value != nil { + objectMap["value"] = scrc.Value + } + return json.Marshal(objectMap) +} + // SiteConfigResourceCollectionIterator provides access to a complete listing of SiteConfigResource values. type SiteConfigResourceCollectionIterator struct { i int @@ -16529,10 +16606,15 @@ func (scrc SiteConfigResourceCollection) IsEmpty() bool { return scrc.Value == nil || len(*scrc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (scrc SiteConfigResourceCollection) hasNextLink() bool { + return scrc.NextLink != nil && len(*scrc.NextLink) != 0 +} + // siteConfigResourceCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (scrc SiteConfigResourceCollection) siteConfigResourceCollectionPreparer(ctx context.Context) (*http.Request, error) { - if scrc.NextLink == nil || len(to.String(scrc.NextLink)) < 1 { + if !scrc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -16560,11 +16642,16 @@ func (page *SiteConfigResourceCollectionPage) NextWithContext(ctx context.Contex tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.scrc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.scrc) + if err != nil { + return err + } + page.scrc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.scrc = next return nil } @@ -16684,8 +16771,8 @@ func (scsi *SiteConfigurationSnapshotInfo) UnmarshalJSON(body []byte) error { return nil } -// SiteConfigurationSnapshotInfoCollection collection of metadata for the app configuration snapshots that -// can be restored. +// SiteConfigurationSnapshotInfoCollection collection of metadata for the app configuration snapshots that can +// be restored. type SiteConfigurationSnapshotInfoCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. @@ -16694,6 +16781,15 @@ type SiteConfigurationSnapshotInfoCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SiteConfigurationSnapshotInfoCollection. +func (scsic SiteConfigurationSnapshotInfoCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if scsic.Value != nil { + objectMap["value"] = scsic.Value + } + return json.Marshal(objectMap) +} + // SiteConfigurationSnapshotInfoCollectionIterator provides access to a complete listing of // SiteConfigurationSnapshotInfo values. type SiteConfigurationSnapshotInfoCollectionIterator struct { @@ -16763,10 +16859,15 @@ func (scsic SiteConfigurationSnapshotInfoCollection) IsEmpty() bool { return scsic.Value == nil || len(*scsic.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (scsic SiteConfigurationSnapshotInfoCollection) hasNextLink() bool { + return scsic.NextLink != nil && len(*scsic.NextLink) != 0 +} + // siteConfigurationSnapshotInfoCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (scsic SiteConfigurationSnapshotInfoCollection) siteConfigurationSnapshotInfoCollectionPreparer(ctx context.Context) (*http.Request, error) { - if scsic.NextLink == nil || len(to.String(scsic.NextLink)) < 1 { + if !scsic.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -16794,11 +16895,16 @@ func (page *SiteConfigurationSnapshotInfoCollectionPage) NextWithContext(ctx con tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.scsic) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.scsic) + if err != nil { + return err + } + page.scsic = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.scsic = next return nil } @@ -16936,6 +17042,15 @@ type SiteExtensionInfoCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SiteExtensionInfoCollection. +func (seic SiteExtensionInfoCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if seic.Value != nil { + objectMap["value"] = seic.Value + } + return json.Marshal(objectMap) +} + // SiteExtensionInfoCollectionIterator provides access to a complete listing of SiteExtensionInfo values. type SiteExtensionInfoCollectionIterator struct { i int @@ -17004,10 +17119,15 @@ func (seic SiteExtensionInfoCollection) IsEmpty() bool { return seic.Value == nil || len(*seic.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (seic SiteExtensionInfoCollection) hasNextLink() bool { + return seic.NextLink != nil && len(*seic.NextLink) != 0 +} + // siteExtensionInfoCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (seic SiteExtensionInfoCollection) siteExtensionInfoCollectionPreparer(ctx context.Context) (*http.Request, error) { - if seic.NextLink == nil || len(to.String(seic.NextLink)) < 1 { + if !seic.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -17035,11 +17155,16 @@ func (page *SiteExtensionInfoCollectionPage) NextWithContext(ctx context.Context tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.seic) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.seic) + if err != nil { + return err + } + page.seic = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.seic = next return nil } @@ -17488,6 +17613,57 @@ type SitePatchResourceProperties struct { HTTPSOnly *bool `json:"httpsOnly,omitempty"` } +// MarshalJSON is the custom marshaler for SitePatchResourceProperties. +func (spr SitePatchResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if spr.Enabled != nil { + objectMap["enabled"] = spr.Enabled + } + if spr.HostNameSslStates != nil { + objectMap["hostNameSslStates"] = spr.HostNameSslStates + } + if spr.ServerFarmID != nil { + objectMap["serverFarmId"] = spr.ServerFarmID + } + if spr.Reserved != nil { + objectMap["reserved"] = spr.Reserved + } + if spr.SiteConfig != nil { + objectMap["siteConfig"] = spr.SiteConfig + } + if spr.ScmSiteAlsoStopped != nil { + objectMap["scmSiteAlsoStopped"] = spr.ScmSiteAlsoStopped + } + if spr.HostingEnvironmentProfile != nil { + objectMap["hostingEnvironmentProfile"] = spr.HostingEnvironmentProfile + } + if spr.ClientAffinityEnabled != nil { + objectMap["clientAffinityEnabled"] = spr.ClientAffinityEnabled + } + if spr.ClientCertEnabled != nil { + objectMap["clientCertEnabled"] = spr.ClientCertEnabled + } + if spr.HostNamesDisabled != nil { + objectMap["hostNamesDisabled"] = spr.HostNamesDisabled + } + if spr.ContainerSize != nil { + objectMap["containerSize"] = spr.ContainerSize + } + if spr.DailyMemoryTimeQuota != nil { + objectMap["dailyMemoryTimeQuota"] = spr.DailyMemoryTimeQuota + } + if spr.CloningInfo != nil { + objectMap["cloningInfo"] = spr.CloningInfo + } + if spr.SnapshotInfo != nil { + objectMap["snapshotInfo"] = spr.SnapshotInfo + } + if spr.HTTPSOnly != nil { + objectMap["httpsOnly"] = spr.HTTPSOnly + } + return json.Marshal(objectMap) +} + // SitePhpErrorLogFlag used for getting PHP error logging flag. type SitePhpErrorLogFlag struct { autorest.Response `json:"-"` @@ -17659,6 +17835,57 @@ type SiteProperties struct { HTTPSOnly *bool `json:"httpsOnly,omitempty"` } +// MarshalJSON is the custom marshaler for SiteProperties. +func (s SiteProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if s.Enabled != nil { + objectMap["enabled"] = s.Enabled + } + if s.HostNameSslStates != nil { + objectMap["hostNameSslStates"] = s.HostNameSslStates + } + if s.ServerFarmID != nil { + objectMap["serverFarmId"] = s.ServerFarmID + } + if s.Reserved != nil { + objectMap["reserved"] = s.Reserved + } + if s.SiteConfig != nil { + objectMap["siteConfig"] = s.SiteConfig + } + if s.ScmSiteAlsoStopped != nil { + objectMap["scmSiteAlsoStopped"] = s.ScmSiteAlsoStopped + } + if s.HostingEnvironmentProfile != nil { + objectMap["hostingEnvironmentProfile"] = s.HostingEnvironmentProfile + } + if s.ClientAffinityEnabled != nil { + objectMap["clientAffinityEnabled"] = s.ClientAffinityEnabled + } + if s.ClientCertEnabled != nil { + objectMap["clientCertEnabled"] = s.ClientCertEnabled + } + if s.HostNamesDisabled != nil { + objectMap["hostNamesDisabled"] = s.HostNamesDisabled + } + if s.ContainerSize != nil { + objectMap["containerSize"] = s.ContainerSize + } + if s.DailyMemoryTimeQuota != nil { + objectMap["dailyMemoryTimeQuota"] = s.DailyMemoryTimeQuota + } + if s.CloningInfo != nil { + objectMap["cloningInfo"] = s.CloningInfo + } + if s.SnapshotInfo != nil { + objectMap["snapshotInfo"] = s.SnapshotInfo + } + if s.HTTPSOnly != nil { + objectMap["httpsOnly"] = s.HTTPSOnly + } + return json.Marshal(objectMap) +} + // SiteSeal site seal type SiteSeal struct { autorest.Response `json:"-"` @@ -17826,6 +18053,15 @@ type SkuInfoCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SkuInfoCollection. +func (sic SkuInfoCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sic.Value != nil { + objectMap["value"] = sic.Value + } + return json.Marshal(objectMap) +} + // SkuInfoCollectionIterator provides access to a complete listing of SkuInfo values. type SkuInfoCollectionIterator struct { i int @@ -17894,10 +18130,15 @@ func (sic SkuInfoCollection) IsEmpty() bool { return sic.Value == nil || len(*sic.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (sic SkuInfoCollection) hasNextLink() bool { + return sic.NextLink != nil && len(*sic.NextLink) != 0 +} + // skuInfoCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (sic SkuInfoCollection) skuInfoCollectionPreparer(ctx context.Context) (*http.Request, error) { - if sic.NextLink == nil || len(to.String(sic.NextLink)) < 1 { + if !sic.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -17925,11 +18166,16 @@ func (page *SkuInfoCollectionPage) NextWithContext(ctx context.Context) (err err tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.sic) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.sic) + if err != nil { + return err + } + page.sic = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.sic = next return nil } @@ -18164,6 +18410,15 @@ type SlotDifferenceCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SlotDifferenceCollection. +func (sdc SlotDifferenceCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sdc.Value != nil { + objectMap["value"] = sdc.Value + } + return json.Marshal(objectMap) +} + // SlotDifferenceCollectionIterator provides access to a complete listing of SlotDifference values. type SlotDifferenceCollectionIterator struct { i int @@ -18232,10 +18487,15 @@ func (sdc SlotDifferenceCollection) IsEmpty() bool { return sdc.Value == nil || len(*sdc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (sdc SlotDifferenceCollection) hasNextLink() bool { + return sdc.NextLink != nil && len(*sdc.NextLink) != 0 +} + // slotDifferenceCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (sdc SlotDifferenceCollection) slotDifferenceCollectionPreparer(ctx context.Context) (*http.Request, error) { - if sdc.NextLink == nil || len(to.String(sdc.NextLink)) < 1 { + if !sdc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -18263,11 +18523,16 @@ func (page *SlotDifferenceCollectionPage) NextWithContext(ctx context.Context) ( tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.sdc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.sdc) + if err != nil { + return err + } + page.sdc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.sdc = next return nil } @@ -18434,6 +18699,15 @@ type SnapshotCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SnapshotCollection. +func (sc SnapshotCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sc.Value != nil { + objectMap["value"] = sc.Value + } + return json.Marshal(objectMap) +} + // SnapshotCollectionIterator provides access to a complete listing of Snapshot values. type SnapshotCollectionIterator struct { i int @@ -18502,10 +18776,15 @@ func (sc SnapshotCollection) IsEmpty() bool { return sc.Value == nil || len(*sc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (sc SnapshotCollection) hasNextLink() bool { + return sc.NextLink != nil && len(*sc.NextLink) != 0 +} + // snapshotCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (sc SnapshotCollection) snapshotCollectionPreparer(ctx context.Context) (*http.Request, error) { - if sc.NextLink == nil || len(to.String(sc.NextLink)) < 1 { + if !sc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -18533,11 +18812,16 @@ func (page *SnapshotCollectionPage) NextWithContext(ctx context.Context) (err er tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.sc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.sc) + if err != nil { + return err + } + page.sc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.sc = next return nil } @@ -18802,6 +19086,15 @@ type SourceControlCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for SourceControlCollection. +func (scc SourceControlCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if scc.Value != nil { + objectMap["value"] = scc.Value + } + return json.Marshal(objectMap) +} + // SourceControlCollectionIterator provides access to a complete listing of SourceControl values. type SourceControlCollectionIterator struct { i int @@ -18870,10 +19163,15 @@ func (scc SourceControlCollection) IsEmpty() bool { return scc.Value == nil || len(*scc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (scc SourceControlCollection) hasNextLink() bool { + return scc.NextLink != nil && len(*scc.NextLink) != 0 +} + // sourceControlCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (scc SourceControlCollection) sourceControlCollectionPreparer(ctx context.Context) (*http.Request, error) { - if scc.NextLink == nil || len(to.String(scc.NextLink)) < 1 { + if !scc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -18901,11 +19199,16 @@ func (page *SourceControlCollectionPage) NextWithContext(ctx context.Context) (e tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.scc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.scc) + if err != nil { + return err + } + page.scc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.scc = next return nil } @@ -19012,6 +19315,15 @@ type StampCapacityCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for StampCapacityCollection. +func (scc StampCapacityCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if scc.Value != nil { + objectMap["value"] = scc.Value + } + return json.Marshal(objectMap) +} + // StampCapacityCollectionIterator provides access to a complete listing of StampCapacity values. type StampCapacityCollectionIterator struct { i int @@ -19080,10 +19392,15 @@ func (scc StampCapacityCollection) IsEmpty() bool { return scc.Value == nil || len(*scc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (scc StampCapacityCollection) hasNextLink() bool { + return scc.NextLink != nil && len(*scc.NextLink) != 0 +} + // stampCapacityCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (scc StampCapacityCollection) stampCapacityCollectionPreparer(ctx context.Context) (*http.Request, error) { - if scc.NextLink == nil || len(to.String(scc.NextLink)) < 1 { + if !scc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -19111,11 +19428,16 @@ func (page *StampCapacityCollectionPage) NextWithContext(ctx context.Context) (e tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.scc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.scc) + if err != nil { + return err + } + page.scc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.scc = next return nil } @@ -19408,6 +19730,15 @@ type TldLegalAgreementCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TldLegalAgreementCollection. +func (tlac TldLegalAgreementCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tlac.Value != nil { + objectMap["value"] = tlac.Value + } + return json.Marshal(objectMap) +} + // TldLegalAgreementCollectionIterator provides access to a complete listing of TldLegalAgreement values. type TldLegalAgreementCollectionIterator struct { i int @@ -19476,10 +19807,15 @@ func (tlac TldLegalAgreementCollection) IsEmpty() bool { return tlac.Value == nil || len(*tlac.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (tlac TldLegalAgreementCollection) hasNextLink() bool { + return tlac.NextLink != nil && len(*tlac.NextLink) != 0 +} + // tldLegalAgreementCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (tlac TldLegalAgreementCollection) tldLegalAgreementCollectionPreparer(ctx context.Context) (*http.Request, error) { - if tlac.NextLink == nil || len(to.String(tlac.NextLink)) < 1 { + if !tlac.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -19507,11 +19843,16 @@ func (page *TldLegalAgreementCollectionPage) NextWithContext(ctx context.Context tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.tlac) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.tlac) + if err != nil { + return err + } + page.tlac = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.tlac = next return nil } @@ -19649,6 +19990,15 @@ type TopLevelDomainCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TopLevelDomainCollection. +func (tldc TopLevelDomainCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tldc.Value != nil { + objectMap["value"] = tldc.Value + } + return json.Marshal(objectMap) +} + // TopLevelDomainCollectionIterator provides access to a complete listing of TopLevelDomain values. type TopLevelDomainCollectionIterator struct { i int @@ -19717,10 +20067,15 @@ func (tldc TopLevelDomainCollection) IsEmpty() bool { return tldc.Value == nil || len(*tldc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (tldc TopLevelDomainCollection) hasNextLink() bool { + return tldc.NextLink != nil && len(*tldc.NextLink) != 0 +} + // topLevelDomainCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (tldc TopLevelDomainCollection) topLevelDomainCollectionPreparer(ctx context.Context) (*http.Request, error) { - if tldc.NextLink == nil || len(to.String(tldc.NextLink)) < 1 { + if !tldc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -19748,11 +20103,16 @@ func (page *TopLevelDomainCollectionPage) NextWithContext(ctx context.Context) ( tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.tldc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.tldc) + if err != nil { + return err + } + page.tldc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.tldc = next return nil } @@ -19794,6 +20154,15 @@ type TopLevelDomainProperties struct { Privacy *bool `json:"privacy,omitempty"` } +// MarshalJSON is the custom marshaler for TopLevelDomainProperties. +func (tld TopLevelDomainProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tld.Privacy != nil { + objectMap["privacy"] = tld.Privacy + } + return json.Marshal(objectMap) +} + // TriggeredJobHistory triggered Web Job History. List of Triggered Web Job Run Information elements. type TriggeredJobHistory struct { autorest.Response `json:"-"` @@ -19890,8 +20259,16 @@ type TriggeredJobHistoryCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// TriggeredJobHistoryCollectionIterator provides access to a complete listing of TriggeredJobHistory -// values. +// MarshalJSON is the custom marshaler for TriggeredJobHistoryCollection. +func (tjhc TriggeredJobHistoryCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tjhc.Value != nil { + objectMap["value"] = tjhc.Value + } + return json.Marshal(objectMap) +} + +// TriggeredJobHistoryCollectionIterator provides access to a complete listing of TriggeredJobHistory values. type TriggeredJobHistoryCollectionIterator struct { i int page TriggeredJobHistoryCollectionPage @@ -19959,10 +20336,15 @@ func (tjhc TriggeredJobHistoryCollection) IsEmpty() bool { return tjhc.Value == nil || len(*tjhc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (tjhc TriggeredJobHistoryCollection) hasNextLink() bool { + return tjhc.NextLink != nil && len(*tjhc.NextLink) != 0 +} + // triggeredJobHistoryCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (tjhc TriggeredJobHistoryCollection) triggeredJobHistoryCollectionPreparer(ctx context.Context) (*http.Request, error) { - if tjhc.NextLink == nil || len(to.String(tjhc.NextLink)) < 1 { + if !tjhc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -19990,11 +20372,16 @@ func (page *TriggeredJobHistoryCollectionPage) NextWithContext(ctx context.Conte tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.tjhc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.tjhc) + if err != nil { + return err + } + page.tjhc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.tjhc = next return nil } @@ -20146,6 +20533,42 @@ type TriggeredJobRunProperties struct { Trigger *string `json:"trigger,omitempty"` } +// MarshalJSON is the custom marshaler for TriggeredJobRunProperties. +func (tjr TriggeredJobRunProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tjr.ID != nil { + objectMap["id"] = tjr.ID + } + if tjr.Status != "" { + objectMap["status"] = tjr.Status + } + if tjr.StartTime != nil { + objectMap["startTime"] = tjr.StartTime + } + if tjr.EndTime != nil { + objectMap["endTime"] = tjr.EndTime + } + if tjr.Duration != nil { + objectMap["duration"] = tjr.Duration + } + if tjr.OutputURL != nil { + objectMap["outputUrl"] = tjr.OutputURL + } + if tjr.ErrorURL != nil { + objectMap["errorUrl"] = tjr.ErrorURL + } + if tjr.URL != nil { + objectMap["url"] = tjr.URL + } + if tjr.JobName != nil { + objectMap["jobName"] = tjr.JobName + } + if tjr.Trigger != nil { + objectMap["trigger"] = tjr.Trigger + } + return json.Marshal(objectMap) +} + // TriggeredWebJob triggered Web Job Information. type TriggeredWebJob struct { autorest.Response `json:"-"` @@ -20242,6 +20665,15 @@ type TriggeredWebJobCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for TriggeredWebJobCollection. +func (twjc TriggeredWebJobCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if twjc.Value != nil { + objectMap["value"] = twjc.Value + } + return json.Marshal(objectMap) +} + // TriggeredWebJobCollectionIterator provides access to a complete listing of TriggeredWebJob values. type TriggeredWebJobCollectionIterator struct { i int @@ -20310,10 +20742,15 @@ func (twjc TriggeredWebJobCollection) IsEmpty() bool { return twjc.Value == nil || len(*twjc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (twjc TriggeredWebJobCollection) hasNextLink() bool { + return twjc.NextLink != nil && len(*twjc.NextLink) != 0 +} + // triggeredWebJobCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (twjc TriggeredWebJobCollection) triggeredWebJobCollectionPreparer(ctx context.Context) (*http.Request, error) { - if twjc.NextLink == nil || len(to.String(twjc.NextLink)) < 1 { + if !twjc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -20341,11 +20778,16 @@ func (page *TriggeredWebJobCollectionPage) NextWithContext(ctx context.Context) tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.twjc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.twjc) + if err != nil { + return err + } + page.twjc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.twjc = next return nil } @@ -20536,6 +20978,15 @@ type UsageCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for UsageCollection. +func (uc UsageCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if uc.Value != nil { + objectMap["value"] = uc.Value + } + return json.Marshal(objectMap) +} + // UsageCollectionIterator provides access to a complete listing of Usage values. type UsageCollectionIterator struct { i int @@ -20604,10 +21055,15 @@ func (uc UsageCollection) IsEmpty() bool { return uc.Value == nil || len(*uc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (uc UsageCollection) hasNextLink() bool { + return uc.NextLink != nil && len(*uc.NextLink) != 0 +} + // usageCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (uc UsageCollection) usageCollectionPreparer(ctx context.Context) (*http.Request, error) { - if uc.NextLink == nil || len(to.String(uc.NextLink)) < 1 { + if !uc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -20635,11 +21091,16 @@ func (page *UsageCollectionPage) NextWithContext(ctx context.Context) (err error tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.uc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.uc) + if err != nil { + return err + } + page.uc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.uc = next return nil } @@ -20954,8 +21415,20 @@ type VirtualNetworkProfile struct { Subnet *string `json:"subnet,omitempty"` } -// VnetGateway the Virtual Network gateway contract. This is used to give the Virtual Network gateway -// access to the VPN package. +// MarshalJSON is the custom marshaler for VirtualNetworkProfile. +func (vnp VirtualNetworkProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vnp.ID != nil { + objectMap["id"] = vnp.ID + } + if vnp.Subnet != nil { + objectMap["subnet"] = vnp.Subnet + } + return json.Marshal(objectMap) +} + +// VnetGateway the Virtual Network gateway contract. This is used to give the Virtual Network gateway access to +// the VPN package. type VnetGateway struct { autorest.Response `json:"-"` // VnetGatewayProperties - VnetGateway resource specific properties @@ -21154,6 +21627,21 @@ type VnetInfoProperties struct { DNSServers *string `json:"dnsServers,omitempty"` } +// MarshalJSON is the custom marshaler for VnetInfoProperties. +func (vi VnetInfoProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vi.VnetResourceID != nil { + objectMap["vnetResourceId"] = vi.VnetResourceID + } + if vi.CertBlob != nil { + objectMap["certBlob"] = vi.CertBlob + } + if vi.DNSServers != nil { + objectMap["dnsServers"] = vi.DNSServers + } + return json.Marshal(objectMap) +} + // VnetParameters the required set of inputs to validate a VNET type VnetParameters struct { // VnetParametersProperties - VnetParameters resource specific properties @@ -21556,6 +22044,24 @@ type WorkerPool struct { InstanceNames *[]string `json:"instanceNames,omitempty"` } +// MarshalJSON is the custom marshaler for WorkerPool. +func (wp WorkerPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wp.WorkerSizeID != nil { + objectMap["workerSizeId"] = wp.WorkerSizeID + } + if wp.ComputeMode != "" { + objectMap["computeMode"] = wp.ComputeMode + } + if wp.WorkerSize != nil { + objectMap["workerSize"] = wp.WorkerSize + } + if wp.WorkerCount != nil { + objectMap["workerCount"] = wp.WorkerCount + } + return json.Marshal(objectMap) +} + // WorkerPoolCollection collection of worker pools. type WorkerPoolCollection struct { autorest.Response `json:"-"` @@ -21565,6 +22071,15 @@ type WorkerPoolCollection struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for WorkerPoolCollection. +func (wpc WorkerPoolCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if wpc.Value != nil { + objectMap["value"] = wpc.Value + } + return json.Marshal(objectMap) +} + // WorkerPoolCollectionIterator provides access to a complete listing of WorkerPoolResource values. type WorkerPoolCollectionIterator struct { i int @@ -21633,10 +22148,15 @@ func (wpc WorkerPoolCollection) IsEmpty() bool { return wpc.Value == nil || len(*wpc.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (wpc WorkerPoolCollection) hasNextLink() bool { + return wpc.NextLink != nil && len(*wpc.NextLink) != 0 +} + // workerPoolCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (wpc WorkerPoolCollection) workerPoolCollectionPreparer(ctx context.Context) (*http.Request, error) { - if wpc.NextLink == nil || len(to.String(wpc.NextLink)) < 1 { + if !wpc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -21664,11 +22184,16 @@ func (page *WorkerPoolCollectionPage) NextWithContext(ctx context.Context) (err tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.wpc) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.wpc) + if err != nil { + return err + } + page.wpc = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.wpc = next return nil } diff --git a/services/web/mgmt/2016-09-01/web/provider.go b/services/web/mgmt/2016-09-01/web/provider.go index a6bd85ec37bb..624fd851d2d6 100644 --- a/services/web/mgmt/2016-09-01/web/provider.go +++ b/services/web/mgmt/2016-09-01/web/provider.go @@ -71,6 +71,9 @@ func (client ProviderClient) GetAvailableStacks(ctx context.Context, osTypeSelec if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetAvailableStacks", resp, "Failure responding to request") } + if result.asc.hasNextLink() && result.asc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -104,7 +107,6 @@ func (client ProviderClient) GetAvailableStacksSender(req *http.Request) (*http. func (client ProviderClient) GetAvailableStacksResponder(resp *http.Response) (result ApplicationStackCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -179,6 +181,9 @@ func (client ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, osTyp if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "GetAvailableStacksOnPrem", resp, "Failure responding to request") } + if result.asc.hasNextLink() && result.asc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -216,7 +221,6 @@ func (client ProviderClient) GetAvailableStacksOnPremSender(req *http.Request) ( func (client ProviderClient) GetAvailableStacksOnPremResponder(resp *http.Response) (result ApplicationStackCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -292,6 +296,9 @@ func (client ProviderClient) ListOperations(ctx context.Context) (result CsmOper if err != nil { err = autorest.NewErrorWithError(err, "web.ProviderClient", "ListOperations", resp, "Failure responding to request") } + if result.coc.hasNextLink() && result.coc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -322,7 +329,6 @@ func (client ProviderClient) ListOperationsSender(req *http.Request) (*http.Resp func (client ProviderClient) ListOperationsResponder(resp *http.Response) (result CsmOperationCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/recommendations.go b/services/web/mgmt/2016-09-01/web/recommendations.go index 7c5a2ea03c93..e505085a10d1 100644 --- a/services/web/mgmt/2016-09-01/web/recommendations.go +++ b/services/web/mgmt/2016-09-01/web/recommendations.go @@ -118,7 +118,6 @@ func (client RecommendationsClient) DisableAllForWebAppSender(req *http.Request) func (client RecommendationsClient) DisableAllForWebAppResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -203,7 +202,6 @@ func (client RecommendationsClient) DisableRecommendationForSiteSender(req *http func (client RecommendationsClient) DisableRecommendationForSiteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -277,7 +275,6 @@ func (client RecommendationsClient) DisableRecommendationForSubscriptionSender(r func (client RecommendationsClient) DisableRecommendationForSubscriptionResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -371,7 +368,6 @@ func (client RecommendationsClient) GetRuleDetailsByWebAppSender(req *http.Reque func (client RecommendationsClient) GetRuleDetailsByWebAppResponder(resp *http.Response) (result RecommendationRule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -415,6 +411,9 @@ func (client RecommendationsClient) List(ctx context.Context, featured *bool, fi if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "List", resp, "Failure responding to request") } + if result.rc.hasNextLink() && result.rc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -455,7 +454,6 @@ func (client RecommendationsClient) ListSender(req *http.Request) (*http.Respons func (client RecommendationsClient) ListResponder(resp *http.Response) (result RecommendationCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -544,6 +542,9 @@ func (client RecommendationsClient) ListHistoryForWebApp(ctx context.Context, re if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListHistoryForWebApp", resp, "Failure responding to request") } + if result.rc.hasNextLink() && result.rc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -583,7 +584,6 @@ func (client RecommendationsClient) ListHistoryForWebAppSender(req *http.Request func (client RecommendationsClient) ListHistoryForWebAppResponder(resp *http.Response) (result RecommendationCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -673,6 +673,9 @@ func (client RecommendationsClient) ListRecommendedRulesForWebApp(ctx context.Co if err != nil { err = autorest.NewErrorWithError(err, "web.RecommendationsClient", "ListRecommendedRulesForWebApp", resp, "Failure responding to request") } + if result.rc.hasNextLink() && result.rc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -715,7 +718,6 @@ func (client RecommendationsClient) ListRecommendedRulesForWebAppSender(req *htt func (client RecommendationsClient) ListRecommendedRulesForWebAppResponder(resp *http.Response) (result RecommendationCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -823,7 +825,6 @@ func (client RecommendationsClient) ResetAllFiltersSender(req *http.Request) (*h func (client RecommendationsClient) ResetAllFiltersResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -906,7 +907,6 @@ func (client RecommendationsClient) ResetAllFiltersForWebAppSender(req *http.Req func (client RecommendationsClient) ResetAllFiltersForWebAppResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp diff --git a/services/web/mgmt/2016-09-01/web/resourcehealthmetadata.go b/services/web/mgmt/2016-09-01/web/resourcehealthmetadata.go index 203c26e67d8b..60bb1bb28dc4 100644 --- a/services/web/mgmt/2016-09-01/web/resourcehealthmetadata.go +++ b/services/web/mgmt/2016-09-01/web/resourcehealthmetadata.go @@ -119,7 +119,6 @@ func (client ResourceHealthMetadataClient) GetBySiteSender(req *http.Request) (* func (client ResourceHealthMetadataClient) GetBySiteResponder(resp *http.Response) (result ResourceHealthMetadata, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -205,7 +204,6 @@ func (client ResourceHealthMetadataClient) GetBySiteSlotSender(req *http.Request func (client ResourceHealthMetadataClient) GetBySiteSlotResponder(resp *http.Response) (result ResourceHealthMetadata, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -243,6 +241,9 @@ func (client ResourceHealthMetadataClient) List(ctx context.Context) (result Res if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "List", resp, "Failure responding to request") } + if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -277,7 +278,6 @@ func (client ResourceHealthMetadataClient) ListSender(req *http.Request) (*http. func (client ResourceHealthMetadataClient) ListResponder(resp *http.Response) (result ResourceHealthMetadataCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -362,6 +362,9 @@ func (client ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Conte if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListByResourceGroup", resp, "Failure responding to request") } + if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -397,7 +400,6 @@ func (client ResourceHealthMetadataClient) ListByResourceGroupSender(req *http.R func (client ResourceHealthMetadataClient) ListByResourceGroupResponder(resp *http.Response) (result ResourceHealthMetadataCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -483,6 +485,9 @@ func (client ResourceHealthMetadataClient) ListBySite(ctx context.Context, resou if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListBySite", resp, "Failure responding to request") } + if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -519,7 +524,6 @@ func (client ResourceHealthMetadataClient) ListBySiteSender(req *http.Request) ( func (client ResourceHealthMetadataClient) ListBySiteResponder(resp *http.Response) (result ResourceHealthMetadataCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -606,6 +610,9 @@ func (client ResourceHealthMetadataClient) ListBySiteSlot(ctx context.Context, r if err != nil { err = autorest.NewErrorWithError(err, "web.ResourceHealthMetadataClient", "ListBySiteSlot", resp, "Failure responding to request") } + if result.rhmc.hasNextLink() && result.rhmc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -643,7 +650,6 @@ func (client ResourceHealthMetadataClient) ListBySiteSlotSender(req *http.Reques func (client ResourceHealthMetadataClient) ListBySiteSlotResponder(resp *http.Response) (result ResourceHealthMetadataCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/topleveldomains.go b/services/web/mgmt/2016-09-01/web/topleveldomains.go index 7689189bcc9d..2ec6cbbe3d00 100644 --- a/services/web/mgmt/2016-09-01/web/topleveldomains.go +++ b/services/web/mgmt/2016-09-01/web/topleveldomains.go @@ -107,7 +107,6 @@ func (client TopLevelDomainsClient) GetSender(req *http.Request) (*http.Response func (client TopLevelDomainsClient) GetResponder(resp *http.Response) (result TopLevelDomain, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -145,6 +144,9 @@ func (client TopLevelDomainsClient) List(ctx context.Context) (result TopLevelDo if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "List", resp, "Failure responding to request") } + if result.tldc.hasNextLink() && result.tldc.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -179,7 +181,6 @@ func (client TopLevelDomainsClient) ListSender(req *http.Request) (*http.Respons func (client TopLevelDomainsClient) ListResponder(resp *http.Response) (result TopLevelDomainCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -257,6 +258,9 @@ func (client TopLevelDomainsClient) ListAgreements(ctx context.Context, name str if err != nil { err = autorest.NewErrorWithError(err, "web.TopLevelDomainsClient", "ListAgreements", resp, "Failure responding to request") } + if result.tlac.hasNextLink() && result.tlac.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -294,7 +298,6 @@ func (client TopLevelDomainsClient) ListAgreementsSender(req *http.Request) (*ht func (client TopLevelDomainsClient) ListAgreementsResponder(resp *http.Response) (result TldLegalAgreementCollection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/web/mgmt/2016-09-01/web/version.go b/services/web/mgmt/2016-09-01/web/version.go index f2ef6e92459f..3ef5d494d617 100644 --- a/services/web/mgmt/2016-09-01/web/version.go +++ b/services/web/mgmt/2016-09-01/web/version.go @@ -21,7 +21,7 @@ import "github.com/Azure/azure-sdk-for-go/version" // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " web/2016-09-01" + return "Azure-SDK-For-Go/" + Version() + " web/2016-09-01" } // Version returns the semantic version (see http://semver.org) of the client.