From 5db0c0db6e8039cf101942fe696d31ada90f4e97 Mon Sep 17 00:00:00 2001 From: "Xiaxin Yi (from Dev Box)" Date: Tue, 2 Jan 2024 11:18:18 +0800 Subject: [PATCH 1/6] update sdk for linux web app - I --- internal/services/appservice/client/client.go | 18 +- .../helpers/linux_web_app_schema.go | 6 +- .../appservice/linux_web_app_resource.go | 42 +- .../2023-01-01/resourceproviders/README.md | 371 + .../2023-01-01/resourceproviders/client.go | 26 + .../2023-01-01/resourceproviders/constants.go | 560 ++ .../resourceproviders/id_providerlocation.go | 116 + .../resourceproviders/id_sourcecontrol.go | 107 + .../method_checknameavailability.go | 57 + .../method_getpublishinguser.go | 51 + .../method_getsourcecontrol.go | 51 + ...thod_getsubscriptiondeploymentlocations.go | 53 + .../method_getusagesinlocationlist.go | 89 + .../method_listaseregions.go | 90 + .../method_listbillingmeters.go | 122 + .../method_listcustomhostnamesites.go | 118 + .../method_listgeoregions.go | 130 + .../method_listpremieraddonoffers.go | 90 + ...d_listsiteidentifiersassignedtohostname.go | 90 + .../resourceproviders/method_listskus.go | 53 + .../method_listsourcecontrols.go | 89 + .../resourceproviders/method_move.go | 52 + .../method_updatepublishinguser.go | 55 + .../method_updatesourcecontrol.go | 55 + .../resourceproviders/method_validate.go | 57 + .../resourceproviders/method_validatemove.go | 52 + .../method_verifyhostingenvironmentvnet.go | 57 + .../model_appserviceenvironment.go | 27 + .../resourceproviders/model_aseregion.go | 12 + .../model_aseregionproperties.go | 13 + .../model_asev3networkingconfiguration.go | 12 + ..._asev3networkingconfigurationproperties.go | 15 + .../resourceproviders/model_billingmeter.go | 12 + .../model_billingmeterproperties.go | 14 + .../resourceproviders/model_capability.go | 10 + .../model_csmmoveresourceenvelope.go | 9 + .../resourceproviders/model_csmusagequota.go | 30 + .../model_customdnssuffixconfiguration.go | 12 + ..._customdnssuffixconfigurationproperties.go | 12 + .../model_customhostnamesites.go | 12 + .../model_customhostnamesitesproperties.go | 10 + .../model_deploymentlocations.go | 10 + .../resourceproviders/model_georegion.go | 12 + .../model_georegionproperties.go | 10 + .../model_globalcsmskudescription.go | 14 + .../model_hostingenvironmentdeploymentinfo.go | 9 + .../resourceproviders/model_identifier.go | 12 + .../model_identifierproperties.go | 8 + .../model_localizablestring.go | 9 + .../resourceproviders/model_nameidentifier.go | 8 + .../resourceproviders/model_namevaluepair.go | 9 + .../model_premieraddonoffer.go | 12 + .../model_premieraddonofferproperties.go | 17 + .../model_resourcenameavailability.go | 10 + .../model_resourcenameavailabilityrequest.go | 11 + .../resourceproviders/model_skucapacity.go | 12 + .../resourceproviders/model_skuinfos.go | 9 + .../resourceproviders/model_sourcecontrol.go | 12 + .../model_sourcecontrolproperties.go | 29 + .../resourceproviders/model_user.go | 12 + .../resourceproviders/model_userproperties.go | 12 + .../model_validateproperties.go | 21 + .../model_validaterequest.go | 11 + .../model_validateresponse.go | 9 + .../model_validateresponseerror.go | 9 + .../model_virtualnetworkprofile.go | 11 + .../resourceproviders/model_vnetparameters.go | 12 + .../model_vnetparametersproperties.go | 11 + .../model_vnetvalidationfailuredetails.go | 12 + ..._vnetvalidationfailuredetailsproperties.go | 11 + .../model_vnetvalidationtestfailure.go | 12 + ...del_vnetvalidationtestfailureproperties.go | 9 + .../resourceproviders/predicates.go | 228 + .../2023-01-01/resourceproviders/version.go | 12 + .../web/2023-01-01/webapps/README.md | 6912 +++++++++++++++++ .../web/2023-01-01/webapps/client.go | 26 + .../web/2023-01-01/webapps/constants.go | 2496 ++++++ .../web/2023-01-01/webapps/id_appsetting.go | 136 + .../web/2023-01-01/webapps/id_backup.go | 134 + .../webapps/id_configreferenceappsetting.go | 145 + .../id_configreferenceconnectionstring.go | 145 + .../2023-01-01/webapps/id_connectionstring.go | 136 + .../2023-01-01/webapps/id_continuouswebjob.go | 134 + .../web/2023-01-01/webapps/id_default.go | 143 + .../web/2023-01-01/webapps/id_deployment.go | 134 + .../webapps/id_domainownershipidentifier.go | 134 + .../web/2023-01-01/webapps/id_function.go | 134 + .../web/2023-01-01/webapps/id_functionkey.go | 152 + .../web/2023-01-01/webapps/id_gateway.go | 143 + .../web/2023-01-01/webapps/id_history.go | 143 + .../web/2023-01-01/webapps/id_hostdefault.go | 152 + .../2023-01-01/webapps/id_hostnamebinding.go | 134 + .../2023-01-01/webapps/id_hybridconnection.go | 134 + .../web/2023-01-01/webapps/id_instance.go | 134 + .../2023-01-01/webapps/id_instanceprocess.go | 143 + .../webapps/id_instanceprocessmodule.go | 152 + .../web/2023-01-01/webapps/id_key.go | 143 + .../web/2023-01-01/webapps/id_module.go | 143 + .../2023-01-01/webapps/id_networkfeature.go | 134 + .../web/2023-01-01/webapps/id_networktrace.go | 134 + .../web/2023-01-01/webapps/id_premieraddon.go | 134 + .../webapps/id_privateendpointconnection.go | 134 + .../web/2023-01-01/webapps/id_process.go | 134 + .../2023-01-01/webapps/id_processmodule.go | 152 + .../webapps/id_publiccertificate.go | 134 + .../web/2023-01-01/webapps/id_relay.go | 143 + .../2023-01-01/webapps/id_siteextension.go | 134 + .../2023-01-01/webapps/id_sitenetworktrace.go | 134 + .../webapps/id_siteslotnetworktrace.go | 143 + .../web/2023-01-01/webapps/id_slot.go | 134 + .../web/2023-01-01/webapps/id_slotbackup.go | 143 + .../webapps/id_slotcontinuouswebjob.go | 143 + .../2023-01-01/webapps/id_slotdeployment.go | 143 + .../id_slotdomainownershipidentifier.go | 143 + .../web/2023-01-01/webapps/id_slotfunction.go | 143 + .../webapps/id_slothostnamebinding.go | 143 + .../webapps/id_slothybridconnection.go | 143 + .../id_slothybridconnectionnamespacerelay.go | 152 + .../web/2023-01-01/webapps/id_slotinstance.go | 143 + .../webapps/id_slotinstanceprocess.go | 152 + .../webapps/id_slotinstanceprocessmodule.go | 161 + .../webapps/id_slotnetworkfeature.go | 143 + .../2023-01-01/webapps/id_slotnetworktrace.go | 143 + .../2023-01-01/webapps/id_slotpremieraddon.go | 143 + .../id_slotprivateendpointconnection.go | 143 + .../web/2023-01-01/webapps/id_slotprocess.go | 143 + .../webapps/id_slotpubliccertificate.go | 143 + .../webapps/id_slotsiteextension.go | 143 + .../webapps/id_slottriggeredwebjob.go | 143 + .../id_slotvirtualnetworkconnection.go | 143 + .../id_slotvirtualnetworkconnectiongateway.go | 152 + .../web/2023-01-01/webapps/id_slotwebjob.go | 143 + .../web/2023-01-01/webapps/id_slotworkflow.go | 143 + .../web/2023-01-01/webapps/id_snapshot.go | 136 + .../2023-01-01/webapps/id_triggeredwebjob.go | 134 + .../webapps/id_triggeredwebjobhistory.go | 152 + .../webapps/id_virtualnetworkconnection.go | 134 + .../web/2023-01-01/webapps/id_webjob.go | 134 + .../web/2023-01-01/webapps/id_websnapshot.go | 145 + .../web/2023-01-01/webapps/id_workflow.go | 134 + .../webapps/method_addpremieraddon.go | 55 + .../webapps/method_addpremieraddonslot.go | 55 + .../webapps/method_analyzecustomhostname.go | 81 + .../method_analyzecustomhostnameslot.go | 80 + .../method_applyslotconfigtoproduction.go | 52 + .../method_applyslotconfigurationslot.go | 51 + ...pproveorrejectprivateendpointconnection.go | 74 + ...veorrejectprivateendpointconnectionslot.go | 74 + .../web/2023-01-01/webapps/method_backup.go | 57 + .../2023-01-01/webapps/method_backupslot.go | 56 + .../webapps/method_createdeployment.go | 55 + .../webapps/method_createdeploymentslot.go | 55 + .../webapps/method_createfunction.go | 73 + .../method_createinstancefunctionslot.go | 73 + .../method_createinstancemsdeployoperation.go | 73 + ...hod_createinstancemsdeployoperationslot.go | 73 + .../webapps/method_createmsdeployoperation.go | 74 + .../method_createmsdeployoperationslot.go | 73 + .../method_createonedeployoperation.go | 53 + .../webapps/method_createorupdate.go | 75 + .../method_createorupdateconfiguration.go | 57 + .../method_createorupdateconfigurationslot.go | 56 + ...createorupdatedomainownershipidentifier.go | 55 + ...teorupdatedomainownershipidentifierslot.go | 55 + .../method_createorupdatefunctionsecret.go | 56 + ...method_createorupdatefunctionsecretslot.go | 56 + .../method_createorupdatehostnamebinding.go | 55 + ...ethod_createorupdatehostnamebindingslot.go | 55 + .../method_createorupdatehostsecret.go | 56 + .../method_createorupdatehostsecretslot.go | 56 + .../method_createorupdatehybridconnection.go | 55 + ...thod_createorupdatehybridconnectionslot.go | 55 + .../method_createorupdatepubliccertificate.go | 55 + ...hod_createorupdatepubliccertificateslot.go | 55 + ...od_createorupdaterelayserviceconnection.go | 55 + ...reateorupdaterelayserviceconnectionslot.go | 55 + .../webapps/method_createorupdateslot.go | 74 + .../method_createorupdatesourcecontrol.go | 76 + .../method_createorupdatesourcecontrolslot.go | 75 + ...eswiftvirtualnetworkconnectionwithcheck.go | 57 + ...ftvirtualnetworkconnectionwithcheckslot.go | 56 + .../method_createorupdatevnetconnection.go | 55 + ...hod_createorupdatevnetconnectiongateway.go | 55 + ...createorupdatevnetconnectiongatewayslot.go | 55 + ...method_createorupdatevnetconnectionslot.go | 55 + .../web/2023-01-01/webapps/method_delete.go | 81 + .../2023-01-01/webapps/method_deletebackup.go | 46 + .../method_deletebackupconfiguration.go | 48 + .../method_deletebackupconfigurationslot.go | 47 + .../webapps/method_deletebackupslot.go | 46 + .../webapps/method_deletecontinuouswebjob.go | 47 + .../method_deletecontinuouswebjobslot.go | 47 + .../webapps/method_deletedeployment.go | 47 + .../webapps/method_deletedeploymentslot.go | 47 + .../method_deletedomainownershipidentifier.go | 47 + ...hod_deletedomainownershipidentifierslot.go | 47 + .../webapps/method_deletefunction.go | 46 + .../webapps/method_deletefunctionsecret.go | 46 + .../method_deletefunctionsecretslot.go | 46 + .../webapps/method_deletehostnamebinding.go | 47 + .../method_deletehostnamebindingslot.go | 47 + .../webapps/method_deletehostsecret.go | 46 + .../webapps/method_deletehostsecretslot.go | 46 + .../webapps/method_deletehybridconnection.go | 46 + .../method_deletehybridconnectionslot.go | 46 + .../method_deleteinstancefunctionslot.go | 46 + .../webapps/method_deleteinstanceprocess.go | 46 + .../method_deleteinstanceprocessslot.go | 46 + .../webapps/method_deletepremieraddon.go | 46 + .../webapps/method_deletepremieraddonslot.go | 46 + .../method_deleteprivateendpointconnection.go | 71 + ...hod_deleteprivateendpointconnectionslot.go | 71 + .../webapps/method_deleteprocess.go | 46 + .../webapps/method_deleteprocessslot.go | 46 + .../webapps/method_deletepubliccertificate.go | 47 + .../method_deletepubliccertificateslot.go | 47 + .../method_deleterelayserviceconnection.go | 46 + ...method_deleterelayserviceconnectionslot.go | 46 + .../webapps/method_deletesiteextension.go | 46 + .../webapps/method_deletesiteextensionslot.go | 46 + .../2023-01-01/webapps/method_deleteslot.go | 80 + .../webapps/method_deletesourcecontrol.go | 77 + .../webapps/method_deletesourcecontrolslot.go | 76 + .../method_deleteswiftvirtualnetwork.go | 48 + .../method_deleteswiftvirtualnetworkslot.go | 47 + .../webapps/method_deletetriggeredwebjob.go | 47 + .../method_deletetriggeredwebjobslot.go | 47 + .../webapps/method_deletevnetconnection.go | 46 + .../method_deletevnetconnectionslot.go | 46 + .../webapps/method_deployworkflowartifacts.go | 52 + .../method_deployworkflowartifactsslot.go | 51 + .../webapps/method_discoverbackup.go | 57 + .../webapps/method_discoverbackupslot.go | 56 + ...ethod_generatenewsitepublishingpassword.go | 49 + ...d_generatenewsitepublishingpasswordslot.go | 48 + .../web/2023-01-01/webapps/method_get.go | 52 + .../method_getappsettingkeyvaultreference.go | 51 + ...thod_getappsettingkeyvaultreferenceslot.go | 51 + ...method_getappsettingskeyvaultreferences.go | 90 + ...od_getappsettingskeyvaultreferencesslot.go | 89 + .../webapps/method_getauthsettings.go | 53 + .../webapps/method_getauthsettingsslot.go | 52 + .../webapps/method_getauthsettingsv2.go | 53 + .../webapps/method_getauthsettingsv2slot.go | 52 + .../method_getauthsettingsv2withoutsecrets.go | 53 + ...hod_getauthsettingsv2withoutsecretsslot.go | 52 + .../webapps/method_getbackupconfiguration.go | 53 + .../method_getbackupconfigurationslot.go | 52 + .../webapps/method_getbackupstatus.go | 51 + .../webapps/method_getbackupstatusslot.go | 51 + .../webapps/method_getconfiguration.go | 53 + .../webapps/method_getconfigurationslot.go | 52 + .../method_getconfigurationsnapshot.go | 51 + .../method_getconfigurationsnapshotslot.go | 51 + .../webapps/method_getcontainerlogszip.go | 54 + .../webapps/method_getcontainerlogszipslot.go | 53 + .../webapps/method_getcontinuouswebjob.go | 51 + .../webapps/method_getcontinuouswebjobslot.go | 51 + .../webapps/method_getdeployment.go | 51 + .../webapps/method_getdeploymentslot.go | 51 + .../method_getdiagnosticlogsconfiguration.go | 53 + ...thod_getdiagnosticlogsconfigurationslot.go | 52 + .../method_getdomainownershipidentifier.go | 51 + ...method_getdomainownershipidentifierslot.go | 51 + .../webapps/method_getftpallowed.go | 53 + .../webapps/method_getftpallowedslot.go | 52 + .../2023-01-01/webapps/method_getfunction.go | 51 + .../webapps/method_getfunctionsadmintoken.go | 53 + .../method_getfunctionsadmintokenslot.go | 52 + .../webapps/method_gethostnamebinding.go | 51 + .../webapps/method_gethostnamebindingslot.go | 51 + .../webapps/method_gethybridconnection.go | 51 + .../webapps/method_gethybridconnectionslot.go | 51 + .../webapps/method_getinstancefunctionslot.go | 51 + .../webapps/method_getinstanceinfo.go | 51 + .../webapps/method_getinstanceinfoslot.go | 51 + .../webapps/method_getinstancemsdeploylog.go | 52 + .../method_getinstancemsdeploylogslot.go | 52 + .../method_getinstancemsdeploystatus.go | 52 + .../method_getinstancemsdeploystatusslot.go | 52 + .../webapps/method_getinstanceprocess.go | 51 + .../webapps/method_getinstanceprocessdump.go | 52 + .../method_getinstanceprocessdumpslot.go | 52 + .../method_getinstanceprocessmodule.go | 51 + .../method_getinstanceprocessmoduleslot.go | 51 + .../webapps/method_getinstanceprocessslot.go | 51 + .../webapps/method_getinstanceworkflowslot.go | 51 + .../webapps/method_getmigratemysqlstatus.go | 53 + .../method_getmigratemysqlstatusslot.go | 52 + .../webapps/method_getmsdeploylog.go | 53 + .../webapps/method_getmsdeploylogslot.go | 52 + .../webapps/method_getmsdeploystatus.go | 53 + .../webapps/method_getmsdeploystatusslot.go | 52 + .../webapps/method_getnetworktraces.go | 51 + .../webapps/method_getnetworktracesslot.go | 51 + .../webapps/method_getnetworktracesslotv2.go | 51 + .../webapps/method_getnetworktracesv2.go | 51 + .../webapps/method_getonedeploystatus.go | 53 + .../webapps/method_getpremieraddon.go | 51 + .../webapps/method_getpremieraddonslot.go | 51 + .../webapps/method_getprivateaccess.go | 53 + .../webapps/method_getprivateaccessslot.go | 52 + .../method_getprivateendpointconnection.go | 51 + ...method_getprivateendpointconnectionlist.go | 90 + ...od_getprivateendpointconnectionlistslot.go | 89 + ...method_getprivateendpointconnectionslot.go | 51 + .../webapps/method_getprivatelinkresources.go | 53 + .../method_getprivatelinkresourcesslot.go | 52 + .../2023-01-01/webapps/method_getprocess.go | 51 + .../webapps/method_getprocessdump.go | 52 + .../webapps/method_getprocessdumpslot.go | 52 + .../webapps/method_getprocessmodule.go | 51 + .../webapps/method_getprocessmoduleslot.go | 51 + .../webapps/method_getprocessslot.go | 51 + .../webapps/method_getpubliccertificate.go | 51 + .../method_getpubliccertificateslot.go | 51 + .../method_getrelayserviceconnection.go | 51 + .../method_getrelayserviceconnectionslot.go | 51 + .../webapps/method_getscmallowed.go | 53 + .../webapps/method_getscmallowedslot.go | 52 + ...etsiteconnectionstringkeyvaultreference.go | 51 + ...tsiteconnectionstringkeyvaultreferences.go | 90 + ...teconnectionstringkeyvaultreferenceslot.go | 51 + ...econnectionstringkeyvaultreferencesslot.go | 89 + .../webapps/method_getsiteextension.go | 51 + .../webapps/method_getsiteextensionslot.go | 51 + .../webapps/method_getsitephperrorlogflag.go | 53 + .../method_getsitephperrorlogflagslot.go | 52 + .../web/2023-01-01/webapps/method_getslot.go | 51 + .../webapps/method_getsourcecontrol.go | 55 + .../webapps/method_getsourcecontrolslot.go | 54 + ...method_getswiftvirtualnetworkconnection.go | 53 + ...od_getswiftvirtualnetworkconnectionslot.go | 52 + .../webapps/method_gettriggeredwebjob.go | 51 + .../method_gettriggeredwebjobhistory.go | 51 + .../method_gettriggeredwebjobhistoryslot.go | 51 + .../webapps/method_gettriggeredwebjobslot.go | 51 + .../webapps/method_getvnetconnection.go | 51 + .../method_getvnetconnectiongateway.go | 51 + .../method_getvnetconnectiongatewayslot.go | 51 + .../webapps/method_getvnetconnectionslot.go | 51 + .../2023-01-01/webapps/method_getwebjob.go | 51 + .../webapps/method_getwebjobslot.go | 51 + .../webapps/method_getwebsitecontainerlogs.go | 54 + .../method_getwebsitecontainerlogsslot.go | 53 + .../2023-01-01/webapps/method_getworkflow.go | 51 + .../webapps/method_installsiteextension.go | 70 + .../method_installsiteextensionslot.go | 70 + .../2023-01-01/webapps/method_iscloneable.go | 53 + .../webapps/method_iscloneableslot.go | 52 + .../web/2023-01-01/webapps/method_list.go | 90 + .../webapps/method_listapplicationsettings.go | 53 + .../method_listapplicationsettingsslot.go | 52 + .../method_listazurestorageaccounts.go | 53 + .../method_listazurestorageaccountsslot.go | 52 + .../2023-01-01/webapps/method_listbackups.go | 90 + .../webapps/method_listbackupsslot.go | 89 + .../webapps/method_listbackupstatussecrets.go | 56 + .../method_listbackupstatussecretsslot.go | 56 + ..._listbasicpublishingcredentialspolicies.go | 90 + ...tbasicpublishingcredentialspoliciesslot.go | 89 + .../webapps/method_listbyresourcegroup.go | 118 + .../webapps/method_listconfigurations.go | 90 + .../method_listconfigurationsnapshotinfo.go | 90 + ...ethod_listconfigurationsnapshotinfoslot.go | 89 + .../webapps/method_listconfigurationsslot.go | 89 + .../webapps/method_listconnectionstrings.go | 53 + .../method_listconnectionstringsslot.go | 52 + .../webapps/method_listcontinuouswebjobs.go | 90 + .../method_listcontinuouswebjobsslot.go | 89 + .../webapps/method_listdeploymentlog.go | 52 + .../webapps/method_listdeploymentlogslot.go | 52 + .../webapps/method_listdeployments.go | 90 + .../webapps/method_listdeploymentsslot.go | 89 + .../method_listdomainownershipidentifiers.go | 90 + ...thod_listdomainownershipidentifiersslot.go | 89 + .../webapps/method_listfunctionkeys.go | 52 + .../webapps/method_listfunctionkeysslot.go | 52 + .../webapps/method_listfunctions.go | 90 + .../webapps/method_listfunctionsecrets.go | 52 + .../webapps/method_listfunctionsecretsslot.go | 52 + .../2023-01-01/webapps/method_listhostkeys.go | 53 + .../webapps/method_listhostkeysslot.go | 52 + .../webapps/method_listhostnamebindings.go | 90 + .../method_listhostnamebindingsslot.go | 89 + .../webapps/method_listhybridconnections.go | 53 + .../method_listhybridconnectionsslot.go | 52 + .../method_listinstancefunctionsslot.go | 89 + .../webapps/method_listinstanceidentifiers.go | 90 + .../method_listinstanceidentifiersslot.go | 89 + .../webapps/method_listinstanceprocesses.go | 89 + .../method_listinstanceprocessesslot.go | 89 + .../method_listinstanceprocessmodules.go | 89 + .../method_listinstanceprocessmodulesslot.go | 89 + .../method_listinstanceprocessthreads.go | 89 + .../method_listinstanceprocessthreadsslot.go | 89 + .../method_listinstanceworkflowsslot.go | 89 + .../2023-01-01/webapps/method_listmetadata.go | 53 + .../webapps/method_listmetadataslot.go | 52 + .../webapps/method_listnetworkfeatures.go | 51 + .../webapps/method_listnetworkfeaturesslot.go | 51 + .../webapps/method_listperfmoncounters.go | 118 + .../webapps/method_listperfmoncountersslot.go | 117 + .../webapps/method_listpremieraddons.go | 53 + .../webapps/method_listpremieraddonsslot.go | 52 + .../webapps/method_listprocesses.go | 90 + .../webapps/method_listprocessesslot.go | 89 + .../webapps/method_listprocessmodules.go | 89 + .../webapps/method_listprocessmodulesslot.go | 89 + .../webapps/method_listprocessthreads.go | 89 + .../webapps/method_listprocessthreadsslot.go | 89 + ...od_listproductionsitedeploymentstatuses.go | 90 + .../webapps/method_listpubliccertificates.go | 90 + .../method_listpubliccertificatesslot.go | 89 + .../method_listpublishingcredentials.go | 70 + .../method_listpublishingcredentialsslot.go | 69 + ...hod_listpublishingprofilexmlwithsecrets.go | 57 + ...listpublishingprofilexmlwithsecretsslot.go | 56 + .../method_listrelayserviceconnections.go | 53 + .../method_listrelayserviceconnectionsslot.go | 52 + .../webapps/method_listsitebackups.go | 90 + .../webapps/method_listsitebackupsslot.go | 89 + .../webapps/method_listsiteextensions.go | 90 + .../webapps/method_listsiteextensionsslot.go | 89 + .../webapps/method_listsitepushsettings.go | 53 + .../method_listsitepushsettingsslot.go | 52 + .../method_listslotconfigurationnames.go | 53 + ...ethod_listslotdifferencesfromproduction.go | 90 + .../webapps/method_listslotdifferencesslot.go | 89 + .../2023-01-01/webapps/method_listslots.go | 90 + ...thod_listslotsitedeploymentstatusesslot.go | 89 + .../webapps/method_listsnapshots.go | 90 + .../method_listsnapshotsfromdrsecondary.go | 90 + ...method_listsnapshotsfromdrsecondaryslot.go | 89 + .../webapps/method_listsnapshotsslot.go | 89 + .../method_listsyncfunctiontriggers.go | 53 + .../method_listsyncfunctiontriggersslot.go | 52 + .../webapps/method_listsyncstatus.go | 48 + .../webapps/method_listsyncstatusslot.go | 47 + .../method_listtriggeredwebjobhistory.go | 89 + .../method_listtriggeredwebjobhistoryslot.go | 89 + .../webapps/method_listtriggeredwebjobs.go | 90 + .../method_listtriggeredwebjobsslot.go | 89 + .../2023-01-01/webapps/method_listusages.go | 118 + .../webapps/method_listusagesslot.go | 117 + .../webapps/method_listvnetconnections.go | 53 + .../webapps/method_listvnetconnectionsslot.go | 52 + .../2023-01-01/webapps/method_listwebjobs.go | 90 + .../webapps/method_listwebjobsslot.go | 89 + .../webapps/method_listworkflows.go | 90 + .../method_listworkflowsconnections.go | 53 + .../method_listworkflowsconnectionsslot.go | 52 + .../2023-01-01/webapps/method_migratemysql.go | 74 + .../webapps/method_migratestorage.go | 102 + .../webapps/method_putprivateaccessvnet.go | 57 + .../method_putprivateaccessvnetslot.go | 56 + ...method_recoversiteconfigurationsnapshot.go | 47 + ...od_recoversiteconfigurationsnapshotslot.go | 47 + .../method_resetproductionslotconfig.go | 48 + .../method_resetslotconfigurationslot.go | 47 + .../web/2023-01-01/webapps/method_restart.go | 80 + .../2023-01-01/webapps/method_restartslot.go | 79 + .../web/2023-01-01/webapps/method_restore.go | 74 + .../webapps/method_restorefrombackupblob.go | 75 + .../method_restorefrombackupblobslot.go | 74 + .../webapps/method_restorefromdeletedapp.go | 75 + .../method_restorefromdeletedappslot.go | 74 + .../2023-01-01/webapps/method_restoreslot.go | 74 + .../webapps/method_restoresnapshot.go | 75 + .../webapps/method_restoresnapshotslot.go | 74 + .../webapps/method_runtriggeredwebjob.go | 47 + .../webapps/method_runtriggeredwebjobslot.go | 47 + .../web/2023-01-01/webapps/method_start.go | 48 + .../webapps/method_startcontinuouswebjob.go | 47 + .../method_startcontinuouswebjobslot.go | 47 + .../webapps/method_startnetworktrace.go | 107 + .../webapps/method_startnetworktraceslot.go | 106 + .../2023-01-01/webapps/method_startslot.go | 47 + .../method_startwebsitenetworktrace.go | 89 + ...ethod_startwebsitenetworktraceoperation.go | 107 + ...d_startwebsitenetworktraceoperationslot.go | 106 + .../method_startwebsitenetworktraceslot.go | 88 + .../web/2023-01-01/webapps/method_stop.go | 48 + .../webapps/method_stopcontinuouswebjob.go | 47 + .../method_stopcontinuouswebjobslot.go | 47 + .../webapps/method_stopnetworktrace.go | 49 + .../webapps/method_stopnetworktraceslot.go | 48 + .../web/2023-01-01/webapps/method_stopslot.go | 47 + .../webapps/method_stopwebsitenetworktrace.go | 49 + .../method_stopwebsitenetworktraceslot.go | 48 + .../2023-01-01/webapps/method_swapslotslot.go | 74 + .../webapps/method_swapslotwithproduction.go | 75 + .../webapps/method_syncfunctions.go | 48 + .../webapps/method_syncfunctionsslot.go | 47 + .../webapps/method_syncfunctiontriggers.go | 48 + .../method_syncfunctiontriggersslot.go | 47 + .../webapps/method_syncrepository.go | 48 + .../webapps/method_syncrepositoryslot.go | 47 + .../web/2023-01-01/webapps/method_update.go | 57 + .../method_updateapplicationsettings.go | 57 + .../method_updateapplicationsettingsslot.go | 56 + .../webapps/method_updateauthsettings.go | 57 + .../webapps/method_updateauthsettingsslot.go | 56 + .../webapps/method_updateauthsettingsv2.go | 57 + .../method_updateauthsettingsv2slot.go | 56 + .../method_updateazurestorageaccounts.go | 57 + .../method_updateazurestorageaccountsslot.go | 56 + .../method_updatebackupconfiguration.go | 57 + .../method_updatebackupconfigurationslot.go | 56 + .../webapps/method_updateconfiguration.go | 57 + .../webapps/method_updateconfigurationslot.go | 56 + .../webapps/method_updateconnectionstrings.go | 57 + .../method_updateconnectionstringsslot.go | 56 + .../method_updatediagnosticlogsconfig.go | 57 + .../method_updatediagnosticlogsconfigslot.go | 56 + .../method_updatedomainownershipidentifier.go | 55 + ...hod_updatedomainownershipidentifierslot.go | 55 + .../webapps/method_updateftpallowed.go | 57 + .../webapps/method_updateftpallowedslot.go | 56 + .../webapps/method_updatehybridconnection.go | 55 + .../method_updatehybridconnectionslot.go | 55 + .../webapps/method_updatemetadata.go | 57 + .../webapps/method_updatemetadataslot.go | 56 + .../webapps/method_updatepremieraddon.go | 55 + .../webapps/method_updatepremieraddonslot.go | 55 + .../method_updaterelayserviceconnection.go | 55 + ...method_updaterelayserviceconnectionslot.go | 55 + .../webapps/method_updatescmallowed.go | 57 + .../webapps/method_updatescmallowedslot.go | 56 + .../webapps/method_updatesitepushsettings.go | 57 + .../method_updatesitepushsettingsslot.go | 56 + .../2023-01-01/webapps/method_updateslot.go | 56 + .../method_updateslotconfigurationnames.go | 57 + .../webapps/method_updatesourcecontrol.go | 59 + .../webapps/method_updatesourcecontrolslot.go | 58 + ...eswiftvirtualnetworkconnectionwithcheck.go | 57 + ...ftvirtualnetworkconnectionwithcheckslot.go | 56 + .../webapps/method_updatevnetconnection.go | 55 + .../method_updatevnetconnectiongateway.go | 55 + .../method_updatevnetconnectiongatewayslot.go | 55 + .../method_updatevnetconnectionslot.go | 55 + .../model_allowedaudiencesvalidation.go | 8 + .../webapps/model_allowedprincipals.go | 9 + .../webapps/model_apidefinitioninfo.go | 8 + .../webapps/model_apikvreference.go | 12 + .../webapps/model_apikvreferenceproperties.go | 20 + .../webapps/model_apimanagementconfig.go | 8 + .../web/2023-01-01/webapps/model_apple.go | 10 + .../webapps/model_appleregistration.go | 9 + .../webapps/model_applicationlogsconfig.go | 10 + .../webapps/model_appregistration.go | 9 + .../2023-01-01/webapps/model_armidwrapper.go | 8 + .../2023-01-01/webapps/model_authplatform.go | 10 + .../webapps/model_autohealactions.go | 10 + .../webapps/model_autohealcustomaction.go | 9 + .../2023-01-01/webapps/model_autohealrules.go | 9 + .../webapps/model_autohealtriggers.go | 13 + .../webapps/model_azureactivedirectory.go | 12 + .../model_azureactivedirectorylogin.go | 9 + .../model_azureactivedirectoryregistration.go | 13 + .../model_azureactivedirectoryvalidation.go | 10 + ...l_azureblobstorageapplicationlogsconfig.go | 10 + .../model_azureblobstoragehttplogsconfig.go | 10 + .../webapps/model_azurestaticwebapps.go | 9 + .../model_azurestaticwebappsregistration.go | 8 + .../webapps/model_azurestorageinfovalue.go | 13 + ..._azurestoragepropertydictionaryresource.go | 12 + ..._azuretablestorageapplicationlogsconfig.go | 9 + .../2023-01-01/webapps/model_backupitem.go | 12 + .../webapps/model_backupitemproperties.go | 63 + .../2023-01-01/webapps/model_backuprequest.go | 12 + .../webapps/model_backuprequestproperties.go | 12 + .../webapps/model_backupschedule.go | 43 + .../webapps/model_blobstoragetokenstore.go | 8 + .../webapps/model_clientregistration.go | 9 + .../2023-01-01/webapps/model_cloninginfo.go | 18 + .../model_connectionstringdictionary.go | 12 + .../webapps/model_connstringinfo.go | 10 + .../webapps/model_connstringvaluetypepair.go | 9 + .../webapps/model_containercpustatistics.go | 11 + .../webapps/model_containercpuusage.go | 11 + .../2023-01-01/webapps/model_containerinfo.go | 45 + .../model_containermemorystatistics.go | 10 + ...del_containernetworkinterfacestatistics.go | 15 + .../webapps/model_containerthrottlingdata.go | 10 + .../webapps/model_continuouswebjob.go | 12 + .../model_continuouswebjobproperties.go | 17 + .../webapps/model_cookieexpiration.go | 9 + .../2023-01-01/webapps/model_corssettings.go | 9 + .../webapps/model_csmdeploymentstatus.go | 12 + .../model_csmdeploymentstatusproperties.go | 14 + ..._csmpublishingcredentialspoliciesentity.go | 12 + ...hingcredentialspoliciesentityproperties.go | 8 + .../model_csmpublishingprofileoptions.go | 9 + .../2023-01-01/webapps/model_csmslotentity.go | 9 + .../2023-01-01/webapps/model_csmusagequota.go | 30 + .../model_customhostnameanalysisresult.go | 12 + ..._customhostnameanalysisresultproperties.go | 18 + .../model_customopenidconnectprovider.go | 10 + .../2023-01-01/webapps/model_daprconfig.go | 14 + .../webapps/model_databasebackupsetting.go | 11 + .../model_defaultauthorizationpolicy.go | 9 + .../webapps/model_deletedapprestorerequest.go | 12 + ...odel_deletedapprestorerequestproperties.go | 11 + .../2023-01-01/webapps/model_deployment.go | 12 + .../webapps/model_deploymentproperties.go | 46 + .../2023-01-01/webapps/model_enabledconfig.go | 8 + .../2023-01-01/webapps/model_errorentity.go | 15 + .../2023-01-01/webapps/model_experiments.go | 8 + .../webapps/model_extendedlocation.go | 9 + .../web/2023-01-01/webapps/model_facebook.go | 11 + .../model_filesystemapplicationlogsconfig.go | 8 + .../webapps/model_filesystemhttplogsconfig.go | 10 + .../webapps/model_filesystemtokenstore.go | 8 + .../2023-01-01/webapps/model_forwardproxy.go | 10 + .../webapps/model_functionenvelope.go | 12 + .../model_functionenvelopeproperties.go | 20 + .../webapps/model_functionsecrets.go | 9 + .../web/2023-01-01/webapps/model_github.go | 10 + .../model_githubactioncodeconfiguration.go | 9 + .../model_githubactionconfiguration.go | 11 + ...odel_githubactioncontainerconfiguration.go | 11 + .../webapps/model_globalvalidation.go | 11 + .../web/2023-01-01/webapps/model_google.go | 11 + .../webapps/model_handlermapping.go | 10 + .../model_hostingenvironmentprofile.go | 10 + .../web/2023-01-01/webapps/model_hostkeys.go | 10 + .../webapps/model_hostnamebinding.go | 12 + .../model_hostnamebindingproperties.go | 16 + .../webapps/model_hostnamesslstate.go | 13 + .../webapps/model_httplogsconfig.go | 9 + .../2023-01-01/webapps/model_httpsettings.go | 10 + .../webapps/model_httpsettingsroutes.go | 8 + .../webapps/model_hybridconnection.go | 12 + .../model_hybridconnectionproperties.go | 15 + .../2023-01-01/webapps/model_identifier.go | 12 + .../webapps/model_identifierproperties.go | 8 + .../webapps/model_identityproviders.go | 16 + .../webapps/model_ipsecurityrestriction.go | 18 + .../webapps/model_jwtclaimchecks.go | 9 + .../web/2023-01-01/webapps/model_keyinfo.go | 9 + .../webapps/model_legacymicrosoftaccount.go | 11 + .../webapps/model_localizablestring.go | 9 + .../web/2023-01-01/webapps/model_login.go | 13 + .../2023-01-01/webapps/model_loginroutes.go | 8 + .../2023-01-01/webapps/model_loginscopes.go | 8 + .../webapps/model_migratemysqlrequest.go | 12 + .../model_migratemysqlrequestproperties.go | 9 + .../webapps/model_migratemysqlstatus.go | 12 + .../model_migratemysqlstatusproperties.go | 10 + .../web/2023-01-01/webapps/model_msdeploy.go | 12 + .../2023-01-01/webapps/model_msdeploycore.go | 14 + .../2023-01-01/webapps/model_msdeploylog.go | 12 + .../webapps/model_msdeploylogentry.go | 28 + .../webapps/model_msdeploylogproperties.go | 8 + .../webapps/model_msdeployproperties.go | 8 + .../webapps/model_msdeploystatus.go | 12 + .../webapps/model_msdeploystatusproperties.go | 42 + .../2023-01-01/webapps/model_namevaluepair.go | 9 + .../webapps/model_networkfeatures.go | 12 + .../model_networkfeaturesproperties.go | 11 + .../2023-01-01/webapps/model_networktrace.go | 10 + .../web/2023-01-01/webapps/model_nonce.go | 9 + .../model_openidconnectclientcredential.go | 9 + .../webapps/model_openidconnectconfig.go | 12 + .../webapps/model_openidconnectlogin.go | 9 + .../model_openidconnectregistration.go | 10 + .../web/2023-01-01/webapps/model_operation.go | 57 + .../webapps/model_perfmonresponse.go | 10 + .../2023-01-01/webapps/model_perfmonsample.go | 28 + .../2023-01-01/webapps/model_perfmonset.go | 42 + .../2023-01-01/webapps/model_premieraddon.go | 14 + .../model_premieraddonpatchresource.go | 12 + ...del_premieraddonpatchresourceproperties.go | 12 + .../webapps/model_premieraddonproperties.go | 12 + .../2023-01-01/webapps/model_privateaccess.go | 12 + .../webapps/model_privateaccessproperties.go | 9 + .../webapps/model_privateaccesssubnet.go | 9 + .../model_privateaccessvirtualnetwork.go | 11 + ...el_privatelinkconnectionapprovalrequest.go | 8 + ...telinkconnectionapprovalrequestresource.go | 12 + .../model_privatelinkconnectionstate.go | 10 + .../webapps/model_privatelinkresource.go | 11 + .../model_privatelinkresourceproperties.go | 10 + .../model_privatelinkresourceswrapper.go | 8 + .../2023-01-01/webapps/model_processinfo.go | 12 + .../webapps/model_processinfoproperties.go | 73 + .../webapps/model_processmoduleinfo.go | 12 + .../model_processmoduleinfoproperties.go | 18 + .../webapps/model_processthreadinfo.go | 12 + .../model_processthreadinfoproperties.go | 37 + .../webapps/model_publiccertificate.go | 12 + .../model_publiccertificateproperties.go | 10 + .../2023-01-01/webapps/model_pushsettings.go | 12 + .../webapps/model_pushsettingsproperties.go | 11 + .../2023-01-01/webapps/model_rampuprule.go | 15 + .../model_relayserviceconnectionentity.go | 12 + ..._relayserviceconnectionentityproperties.go | 14 + ...oteprivateendpointconnectionarmresource.go | 12 + ...endpointconnectionarmresourceproperties.go | 11 + .../webapps/model_requestsbasedtrigger.go | 9 + .../webapps/model_resourceconfig.go | 9 + .../webapps/model_restorerequest.go | 12 + .../webapps/model_restorerequestproperties.go | 18 + .../web/2023-01-01/webapps/model_site.go | 20 + .../webapps/model_siteauthsettings.go | 12 + .../model_siteauthsettingsproperties.go | 45 + .../webapps/model_siteauthsettingsv2.go | 12 + .../model_siteauthsettingsv2properties.go | 12 + .../webapps/model_sitecloneability.go | 11 + .../model_sitecloneabilitycriterion.go | 9 + .../2023-01-01/webapps/model_siteconfig.go | 97 + .../webapps/model_siteconfigresource.go | 12 + .../model_siteconfigurationsnapshotinfo.go | 12 + ...siteconfigurationsnapshotinfoproperties.go | 27 + .../webapps/model_siteextensioninfo.go | 12 + .../model_siteextensioninfoproperties.go | 57 + .../2023-01-01/webapps/model_sitelimits.go | 10 + .../webapps/model_sitelogsconfig.go | 12 + .../webapps/model_sitelogsconfigproperties.go | 11 + .../webapps/model_sitemachinekey.go | 11 + .../webapps/model_sitepatchresource.go | 17 + .../model_sitepatchresourceproperties.go | 78 + .../webapps/model_sitephperrorlogflag.go | 12 + .../model_sitephperrorlogflagproperties.go | 11 + .../webapps/model_siteproperties.go | 86 + .../webapps/model_sitesourcecontrol.go | 12 + .../model_sitesourcecontrolproperties.go | 14 + .../webapps/model_slotconfignames.go | 10 + .../webapps/model_slotconfignamesresource.go | 12 + .../webapps/model_slotdifference.go | 12 + .../webapps/model_slotdifferenceproperties.go | 14 + .../webapps/model_slotswapstatus.go | 28 + .../webapps/model_slowrequestsbasedtrigger.go | 11 + .../web/2023-01-01/webapps/model_snapshot.go | 12 + .../webapps/model_snapshotproperties.go | 8 + .../webapps/model_snapshotrecoverysource.go | 9 + .../webapps/model_snapshotrestorerequest.go | 12 + .../model_snapshotrestorerequestproperties.go | 13 + .../webapps/model_statuscodesbasedtrigger.go | 13 + .../model_statuscodesrangebasedtrigger.go | 11 + .../webapps/model_storagemigrationoptions.go | 12 + ...model_storagemigrationoptionsproperties.go | 11 + .../webapps/model_storagemigrationresponse.go | 12 + ...odel_storagemigrationresponseproperties.go | 8 + .../webapps/model_stringdictionary.go | 12 + .../webapps/model_swiftvirtualnetwork.go | 12 + .../model_swiftvirtualnetworkproperties.go | 9 + .../2023-01-01/webapps/model_tokenstore.go | 11 + .../webapps/model_triggeredjobhistory.go | 12 + .../model_triggeredjobhistoryproperties.go | 8 + .../webapps/model_triggeredjobrun.go | 48 + .../webapps/model_triggeredwebjob.go | 12 + .../model_triggeredwebjobproperties.go | 19 + .../web/2023-01-01/webapps/model_twitter.go | 9 + .../webapps/model_twitterregistration.go | 9 + .../web/2023-01-01/webapps/model_user.go | 12 + .../webapps/model_userproperties.go | 12 + .../webapps/model_virtualapplication.go | 11 + .../webapps/model_virtualdirectory.go | 9 + .../2023-01-01/webapps/model_vnetgateway.go | 12 + .../webapps/model_vnetgatewayproperties.go | 9 + .../web/2023-01-01/webapps/model_vnetinfo.go | 14 + .../webapps/model_vnetinforesource.go | 12 + .../web/2023-01-01/webapps/model_vnetroute.go | 12 + .../webapps/model_vnetrouteproperties.go | 10 + .../web/2023-01-01/webapps/model_webjob.go | 12 + .../webapps/model_webjobproperties.go | 14 + .../webapps/model_websiteinstancestatus.go | 12 + .../model_websiteinstancestatusproperties.go | 13 + .../webapps/model_workflowartifacts.go | 10 + .../webapps/model_workflowenvelope.go | 13 + .../model_workflowenvelopeproperties.go | 10 + .../webapps/model_workflowhealth.go | 9 + .../web/2023-01-01/webapps/predicates.go | 760 ++ .../web/2023-01-01/webapps/version.go | 12 + vendor/modules.txt | 2 + 777 files changed, 50558 insertions(+), 29 deletions(-) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_providerlocation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_sourcecontrol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_checknameavailability.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getpublishinguser.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsourcecontrol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsubscriptiondeploymentlocations.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getusagesinlocationlist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listaseregions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listpremieraddonoffers.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listskus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsourcecontrols.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_move.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatepublishinguser.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatesourcecontrol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validatemove.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_verifyhostingenvironmentvnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_appserviceenvironment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_aseregion.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_aseregionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_asev3networkingconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_asev3networkingconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_billingmeter.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_billingmeterproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_capability.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_csmmoveresourceenvelope.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_csmusagequota.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customdnssuffixconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customdnssuffixconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customhostnamesites.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customhostnamesitesproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_deploymentlocations.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_georegion.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_georegionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_globalcsmskudescription.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_hostingenvironmentdeploymentinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifier.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifierproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_localizablestring.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_nameidentifier.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_namevaluepair.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_premieraddonoffer.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_premieraddonofferproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_resourcenameavailability.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_resourcenameavailabilityrequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_skucapacity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_skuinfos.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_sourcecontrol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_sourcecontrolproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_user.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_userproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validaterequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateresponseerror.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_virtualnetworkprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetparametersproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationfailuredetails.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationfailuredetailsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationtestfailure.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationtestfailureproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_appsetting.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_backup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceappsetting.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceconnectionstring.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_connectionstring.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_continuouswebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_default.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_deployment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_domainownershipidentifier.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_function.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_functionkey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_gateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_history.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostdefault.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostnamebinding.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hybridconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instance.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocess.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocessmodule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_key.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_module.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networkfeature.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networktrace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_premieraddon.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_process.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_processmodule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_publiccertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_relay.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteextension.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_sitenetworktrace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteslotnetworktrace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotbackup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotcontinuouswebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdeployment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdomainownershipidentifier.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotfunction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothostnamebinding.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnectionnamespacerelay.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstance.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocess.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocessmodule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworkfeature.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworktrace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpremieraddon.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprocess.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpubliccertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotsiteextension.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slottriggeredwebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnectiongateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotwebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotworkflow.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_snapshot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjobhistory.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_virtualnetworkconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_webjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_websnapshot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_workflow.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddon.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddonslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostname.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostnameslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigtoproduction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigurationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backupslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeployment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeploymentslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createfunction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancefunctionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createonedeployoperation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfigurationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifier.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifierslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecret.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecretslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebinding.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebindingslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecret.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecretslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificateslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrolslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheck.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheckslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongatewayslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfigurationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjobslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeployment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeploymentslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifier.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifierslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecret.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecretslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebinding.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebindingslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecret.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecretslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstancefunctionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocess.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocessslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddon.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddonslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocess.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocessslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificateslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextension.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextensionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrolslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetwork.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetworkslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjobslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifacts.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifactsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackupslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpassword.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpasswordslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreference.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreferenceslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferences.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferencesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2slot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecrets.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecretsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfigurationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatusslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshotslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszip.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszipslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjobslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeployment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeploymentslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfigurationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifier.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifierslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowed.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowedslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintoken.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintokenslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebinding.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebindingslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancefunctionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfoslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylogslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatusslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocess.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdump.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdumpslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmodule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmoduleslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceworkflowslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatusslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylogslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatusslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktraces.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslotv2.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesv2.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getonedeploystatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddon.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddonslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccess.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccessslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlistslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresources.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresourcesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocess.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdump.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdumpslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmodule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmoduleslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificateslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowed.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowedslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreference.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferenceslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextension.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextensionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflagslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrolslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistory.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistoryslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongatewayslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjobslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogs.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getworkflow.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextension.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextensionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneableslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettingsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccounts.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccountsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackups.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecrets.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecretsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspolicies.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurations.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfoslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstrings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstringsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobs.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlogslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeployments.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiers.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiersslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeys.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeysslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecrets.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecretsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeys.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeysslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindingsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnections.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnectionsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstancefunctionsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiers.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiersslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocesses.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodules.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodulesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreads.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreadsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceworkflowsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadata.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadataslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeatures.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeaturesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncounters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncountersslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddons.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddonsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocesses.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodules.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodulesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreads.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreadsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listproductionsitedeploymentstatuses.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificatesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentials.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentialsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecrets.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecretsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnections.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnectionsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensionsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettingsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotconfigurationnames.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslots.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotsitedeploymentstatusesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshots.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondary.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondaryslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggers.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggersslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatusslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistory.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistoryslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobs.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusages.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusagesslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnections.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnectionsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobs.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflows.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnections.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnectionsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratemysql.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratestorage.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnetslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshotslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetproductionslotconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetslotconfigurationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restart.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restartslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restore.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblobslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedapp.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedappslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoreslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshotslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjobslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_start.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjobslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktrace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktraceslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktrace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stop.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjobslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktrace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktraceslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktrace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktraceslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotwithproduction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctionsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggers.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggersslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepository.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepositoryslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_update.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettingsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2slot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccounts.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccountsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfigurationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfigurationslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstrings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstringsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfigslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifier.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifierslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowed.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowedslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadata.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadataslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddon.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddonslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowed.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowedslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettingsslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslotconfigurationnames.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrolslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheck.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheckslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongatewayslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectionslot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedaudiencesvalidation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedprincipals.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apidefinitioninfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreference.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreferenceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apimanagementconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apple.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appleregistration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_applicationlogsconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appregistration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_armidwrapper.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_authplatform.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealactions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealcustomaction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealrules.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealtriggers.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectory.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectorylogin.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryregistration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryvalidation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstorageapplicationlogsconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstoragehttplogsconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebapps.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebappsregistration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestorageinfovalue.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestoragepropertydictionaryresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azuretablestorageapplicationlogsconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitemproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequestproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupschedule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_blobstoragetokenstore.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_clientregistration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cloninginfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connectionstringdictionary.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringvaluetypepair.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpustatistics.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpuusage.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containermemorystatistics.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containernetworkinterfacestatistics.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerthrottlingdata.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjobproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cookieexpiration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_corssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatusproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentityproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingprofileoptions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmslotentity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmusagequota.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresultproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customopenidconnectprovider.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_daprconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_databasebackupsetting.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_defaultauthorizationpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequestproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deployment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deploymentproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_enabledconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_errorentity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_experiments.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_extendedlocation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_facebook.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemapplicationlogsconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemhttplogsconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemtokenstore.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_forwardproxy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelope.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelopeproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionsecrets.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_github.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncodeconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactionconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncontainerconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_globalvalidation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_google.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_handlermapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostingenvironmentprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostkeys.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebinding.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebindingproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamesslstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httplogsconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettingsroutes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifier.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifierproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identityproviders.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_ipsecurityrestriction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_jwtclaimchecks.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_keyinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_legacymicrosoftaccount.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_localizablestring.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_login.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginroutes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginscopes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequestproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatusproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploycore.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogentry.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeployproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatusproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_namevaluepair.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeatures.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeaturesproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networktrace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_nonce.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectclientcredential.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectlogin.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectregistration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_operation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonsample.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddon.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresourceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccess.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccesssubnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessvirtualnetwork.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequestresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceswrapper.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfoproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfoproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfoproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificateproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettingsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_rampuprule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentityproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresourceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_requestsbasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_resourceconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequestproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_site.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2properties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneability.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneabilitycriterion.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfoproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfoproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelimits.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfigproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitemachinekey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresourceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflagproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrolproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignames.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignamesresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifference.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifferenceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotswapstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slowrequestsbasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrecoverysource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequestproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesbasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesrangebasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptionsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponseproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_stringdictionary.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetwork.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetworkproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_tokenstore.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistory.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistoryproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobrun.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjobproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitter.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitterregistration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_user.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_userproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualapplication.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualdirectory.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgatewayproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinforesource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetrouteproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjob.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjobproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatusproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowartifacts.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelope.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelopeproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowhealth.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/version.go diff --git a/internal/services/appservice/client/client.go b/internal/services/appservice/client/client.go index e5d2b997ceb1..478019cf055f 100644 --- a/internal/services/appservice/client/client.go +++ b/internal/services/appservice/client/client.go @@ -4,6 +4,9 @@ package client import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/common" "github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web" ) @@ -12,18 +15,21 @@ type Client struct { AppServiceEnvironmentClient *web.AppServiceEnvironmentsClient BaseClient *web.BaseClient ServicePlanClient *web.AppServicePlansClient - WebAppsClient *web.AppsClient + WebAppsClient *webapps.WebAppsClient } -func NewClient(o *common.ClientOptions) *Client { +func NewClient(o *common.ClientOptions) (*Client, error) { appServiceEnvironmentClient := web.NewAppServiceEnvironmentsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) o.ConfigureClient(&appServiceEnvironmentClient.Client, o.ResourceManagerAuthorizer) baseClient := web.NewWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) o.ConfigureClient(&baseClient.Client, o.ResourceManagerAuthorizer) - webAppServiceClient := web.NewAppsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) - o.ConfigureClient(&webAppServiceClient.Client, o.ResourceManagerAuthorizer) + webAppServiceClient, err := webapps.NewWebAppsClientWithBaseURI(o.Environment.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building WebApps client: %+v", err) + } + o.Configure(webAppServiceClient.Client, o.Authorizers.ResourceManager) servicePlanClient := web.NewAppServicePlansClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) o.ConfigureClient(&servicePlanClient.Client, o.ResourceManagerAuthorizer) @@ -32,6 +38,6 @@ func NewClient(o *common.ClientOptions) *Client { AppServiceEnvironmentClient: &appServiceEnvironmentClient, BaseClient: &baseClient, ServicePlanClient: &servicePlanClient, - WebAppsClient: &webAppServiceClient, - } + WebAppsClient: webAppServiceClient, + }, nil } diff --git a/internal/services/appservice/helpers/linux_web_app_schema.go b/internal/services/appservice/helpers/linux_web_app_schema.go index 70be35d4310a..5671b30d9606 100644 --- a/internal/services/appservice/helpers/linux_web_app_schema.go +++ b/internal/services/appservice/helpers/linux_web_app_schema.go @@ -9,12 +9,12 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web" ) type SiteConfigLinux struct { @@ -727,8 +727,8 @@ func autoHealTriggerSchemaLinuxComputed() *pluginsdk.Schema { } } -func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*web.SiteConfig, error) { - expanded := &web.SiteConfig{} +func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*w.SiteConfig, error) { + expanded := &webapps.SiteConfig{} expanded.AlwaysOn = pointer.To(s.AlwaysOn) expanded.AcrUseManagedIdentityCreds = pointer.To(s.UseManagedIdentityACR) diff --git a/internal/services/appservice/linux_web_app_resource.go b/internal/services/appservice/linux_web_app_resource.go index 6d2515431102..f8c354b71258 100644 --- a/internal/services/appservice/linux_web_app_resource.go +++ b/internal/services/appservice/linux_web_app_resource.go @@ -11,9 +11,13 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/helpers" @@ -23,7 +27,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web" ) type LinuxWebAppResource struct{} @@ -123,9 +126,9 @@ func (r LinuxWebAppResource) Arguments() map[string]*pluginsdk.Schema { Optional: true, Default: "Required", ValidateFunc: validation.StringInSlice([]string{ - string(web.ClientCertModeOptional), - string(web.ClientCertModeRequired), - string(web.ClientCertModeOptionalInteractiveUser), + string(webapps.ClientCertModeOptional), + string(webapps.ClientCertModeRequired), + string(webapps.ClientCertModeOptionalInteractiveUser), }, false), }, @@ -277,20 +280,20 @@ func (r LinuxWebAppResource) Create() sdk.ResourceFunc { servicePlanClient := metadata.Client.AppService.ServicePlanClient subscriptionId := metadata.Client.Account.SubscriptionId - id := parse.NewWebAppID(subscriptionId, webApp.ResourceGroup, webApp.Name) + id := commonids.NewAppServiceID(subscriptionId, webApp.ResourceGroup, webApp.Name) - existing, err := client.Get(ctx, id.ResourceGroup, id.SiteName) - if err != nil && !utils.ResponseWasNotFound(existing.Response) { + existing, err := client.Get(ctx, id) + if err != nil && !response.WasNotFound(existing.HttpResponse) { return fmt.Errorf("checking for presence of existing Linux %s: %+v", id, err) } - if !utils.ResponseWasNotFound(existing.Response) { + if !response.WasNotFound(existing.HttpResponse) { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - availabilityRequest := web.ResourceNameAvailabilityRequest{ - Name: pointer.To(webApp.Name), - Type: web.CheckNameResourceTypesMicrosoftWebsites, + availabilityRequest := resourceproviders.ResourceNameAvailabilityRequest{ + Name: webApp.Name, + Type: resourceproviders.CheckNameResourceTypesMicrosoftPointWebSites, } servicePlanId, err := parse.ServicePlanID(webApp.ServicePlanId) @@ -322,11 +325,10 @@ func (r LinuxWebAppResource) Create() sdk.ResourceFunc { } } - availabilityRequest.Name = pointer.To(fmt.Sprintf("%s.%s", webApp.Name, nameSuffix)) availabilityRequest.IsFqdn = pointer.To(true) } - checkName, err := client.CheckNameAvailability(ctx, availabilityRequest) + checkName, err := aseClient.CheckNameAvailability(ctx, availabilityRequest) if err != nil { return fmt.Errorf("checking name availability for Linux %s: %+v", id, err) } @@ -349,23 +351,23 @@ func (r LinuxWebAppResource) Create() sdk.ResourceFunc { return err } - expandedIdentity, err := expandIdentity(metadata.ResourceData.Get("identity").([]interface{})) + expandedIdentity, err := identity.ExpandSystemAndUserAssignedMap(metadata.ResourceData.Get("identity").([]interface{})) if err != nil { return fmt.Errorf("expanding `identity`: %+v", err) } - siteEnvelope := web.Site{ - Location: pointer.To(webApp.Location), + siteEnvelope := webapps.Site{ + Location: webApp.Location, Identity: expandedIdentity, - Tags: tags.FromTypedObject(webApp.Tags), - SiteProperties: &web.SiteProperties{ - ServerFarmID: pointer.To(webApp.ServicePlanId), + Tags: &webApp.Tags, + Properties: &webapps.SiteProperties{ + ServerFarmId: pointer.To(webApp.ServicePlanId), Enabled: pointer.To(webApp.Enabled), HTTPSOnly: pointer.To(webApp.HttpsOnly), SiteConfig: siteConfig, ClientAffinityEnabled: pointer.To(webApp.ClientAffinityEnabled), ClientCertEnabled: pointer.To(webApp.ClientCertEnabled), - ClientCertMode: web.ClientCertMode(webApp.ClientCertMode), + ClientCertMode: pointer.To(webapps.ClientCertMode(webApp.ClientCertMode)), VnetRouteAllEnabled: siteConfig.VnetRouteAllEnabled, }, } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/README.md new file mode 100644 index 000000000000..dfc2435f87cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/README.md @@ -0,0 +1,371 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders` Documentation + +The `resourceproviders` SDK allows for interaction with the Azure Resource Manager Service `web` (API Version `2023-01-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders" +``` + + +### Client Initialization + +```go +client := resourceproviders.NewResourceProvidersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ResourceProvidersClient.CheckNameAvailability` + +```go +ctx := context.TODO() +id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +payload := resourceproviders.ResourceNameAvailabilityRequest{ + // ... +} + + +read, err := client.CheckNameAvailability(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ResourceProvidersClient.GetPublishingUser` + +```go +ctx := context.TODO() + + +read, err := client.GetPublishingUser(ctx) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ResourceProvidersClient.GetSourceControl` + +```go +ctx := context.TODO() +id := resourceproviders.NewSourceControlID("sourceControlValue") + +read, err := client.GetSourceControl(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ResourceProvidersClient.GetSubscriptionDeploymentLocations` + +```go +ctx := context.TODO() +id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.GetSubscriptionDeploymentLocations(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ResourceProvidersClient.GetUsagesInLocationlist` + +```go +ctx := context.TODO() +id := resourceproviders.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "locationValue") + +// alternatively `client.GetUsagesInLocationlist(ctx, id)` can be used to do batched pagination +items, err := client.GetUsagesInLocationlistComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ResourceProvidersClient.ListAseRegions` + +```go +ctx := context.TODO() +id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAseRegions(ctx, id)` can be used to do batched pagination +items, err := client.ListAseRegionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ResourceProvidersClient.ListBillingMeters` + +```go +ctx := context.TODO() +id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBillingMeters(ctx, id, resourceproviders.DefaultListBillingMetersOperationOptions())` can be used to do batched pagination +items, err := client.ListBillingMetersComplete(ctx, id, resourceproviders.DefaultListBillingMetersOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ResourceProvidersClient.ListCustomHostNameSites` + +```go +ctx := context.TODO() +id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListCustomHostNameSites(ctx, id, resourceproviders.DefaultListCustomHostNameSitesOperationOptions())` can be used to do batched pagination +items, err := client.ListCustomHostNameSitesComplete(ctx, id, resourceproviders.DefaultListCustomHostNameSitesOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ResourceProvidersClient.ListGeoRegions` + +```go +ctx := context.TODO() +id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListGeoRegions(ctx, id, resourceproviders.DefaultListGeoRegionsOperationOptions())` can be used to do batched pagination +items, err := client.ListGeoRegionsComplete(ctx, id, resourceproviders.DefaultListGeoRegionsOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ResourceProvidersClient.ListPremierAddOnOffers` + +```go +ctx := context.TODO() +id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListPremierAddOnOffers(ctx, id)` can be used to do batched pagination +items, err := client.ListPremierAddOnOffersComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ResourceProvidersClient.ListSiteIdentifiersAssignedToHostName` + +```go +ctx := context.TODO() +id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +payload := resourceproviders.NameIdentifier{ + // ... +} + + +// alternatively `client.ListSiteIdentifiersAssignedToHostName(ctx, id, payload)` can be used to do batched pagination +items, err := client.ListSiteIdentifiersAssignedToHostNameComplete(ctx, id, payload) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ResourceProvidersClient.ListSkus` + +```go +ctx := context.TODO() +id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListSkus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ResourceProvidersClient.ListSourceControls` + +```go +ctx := context.TODO() + + +// alternatively `client.ListSourceControls(ctx)` can be used to do batched pagination +items, err := client.ListSourceControlsComplete(ctx) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ResourceProvidersClient.Move` + +```go +ctx := context.TODO() +id := resourceproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +payload := resourceproviders.CsmMoveResourceEnvelope{ + // ... +} + + +read, err := client.Move(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ResourceProvidersClient.UpdatePublishingUser` + +```go +ctx := context.TODO() + +payload := resourceproviders.User{ + // ... +} + + +read, err := client.UpdatePublishingUser(ctx, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ResourceProvidersClient.UpdateSourceControl` + +```go +ctx := context.TODO() +id := resourceproviders.NewSourceControlID("sourceControlValue") + +payload := resourceproviders.SourceControl{ + // ... +} + + +read, err := client.UpdateSourceControl(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ResourceProvidersClient.Validate` + +```go +ctx := context.TODO() +id := resourceproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +payload := resourceproviders.ValidateRequest{ + // ... +} + + +read, err := client.Validate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ResourceProvidersClient.ValidateMove` + +```go +ctx := context.TODO() +id := resourceproviders.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +payload := resourceproviders.CsmMoveResourceEnvelope{ + // ... +} + + +read, err := client.ValidateMove(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ResourceProvidersClient.VerifyHostingEnvironmentVnet` + +```go +ctx := context.TODO() +id := resourceproviders.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +payload := resourceproviders.VnetParameters{ + // ... +} + + +read, err := client.VerifyHostingEnvironmentVnet(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/client.go new file mode 100644 index 000000000000..0f91da37d8c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/client.go @@ -0,0 +1,26 @@ +package resourceproviders + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceProvidersClient struct { + Client *resourcemanager.Client +} + +func NewResourceProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourceProvidersClient, error) { + client, err := resourcemanager.NewResourceManagerClient(sdkApi, "resourceproviders", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ResourceProvidersClient: %+v", err) + } + + return &ResourceProvidersClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/constants.go new file mode 100644 index 000000000000..54b4de195a5d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/constants.go @@ -0,0 +1,560 @@ +package resourceproviders + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppServicePlanRestrictions string + +const ( + AppServicePlanRestrictionsBasic AppServicePlanRestrictions = "Basic" + AppServicePlanRestrictionsFree AppServicePlanRestrictions = "Free" + AppServicePlanRestrictionsNone AppServicePlanRestrictions = "None" + AppServicePlanRestrictionsPremium AppServicePlanRestrictions = "Premium" + AppServicePlanRestrictionsShared AppServicePlanRestrictions = "Shared" + AppServicePlanRestrictionsStandard AppServicePlanRestrictions = "Standard" +) + +func PossibleValuesForAppServicePlanRestrictions() []string { + return []string{ + string(AppServicePlanRestrictionsBasic), + string(AppServicePlanRestrictionsFree), + string(AppServicePlanRestrictionsNone), + string(AppServicePlanRestrictionsPremium), + string(AppServicePlanRestrictionsShared), + string(AppServicePlanRestrictionsStandard), + } +} + +func (s *AppServicePlanRestrictions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAppServicePlanRestrictions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAppServicePlanRestrictions(input string) (*AppServicePlanRestrictions, error) { + vals := map[string]AppServicePlanRestrictions{ + "basic": AppServicePlanRestrictionsBasic, + "free": AppServicePlanRestrictionsFree, + "none": AppServicePlanRestrictionsNone, + "premium": AppServicePlanRestrictionsPremium, + "shared": AppServicePlanRestrictionsShared, + "standard": AppServicePlanRestrictionsStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AppServicePlanRestrictions(input) + return &out, nil +} + +type CheckNameResourceTypes string + +const ( + CheckNameResourceTypesHostingEnvironment CheckNameResourceTypes = "HostingEnvironment" + CheckNameResourceTypesMicrosoftPointWebHostingEnvironments CheckNameResourceTypes = "Microsoft.Web/hostingEnvironments" + CheckNameResourceTypesMicrosoftPointWebPublishingUsers CheckNameResourceTypes = "Microsoft.Web/publishingUsers" + CheckNameResourceTypesMicrosoftPointWebSites CheckNameResourceTypes = "Microsoft.Web/sites" + CheckNameResourceTypesMicrosoftPointWebSitesSlots CheckNameResourceTypes = "Microsoft.Web/sites/slots" + CheckNameResourceTypesPublishingUser CheckNameResourceTypes = "PublishingUser" + CheckNameResourceTypesSite CheckNameResourceTypes = "Site" + CheckNameResourceTypesSlot CheckNameResourceTypes = "Slot" +) + +func PossibleValuesForCheckNameResourceTypes() []string { + return []string{ + string(CheckNameResourceTypesHostingEnvironment), + string(CheckNameResourceTypesMicrosoftPointWebHostingEnvironments), + string(CheckNameResourceTypesMicrosoftPointWebPublishingUsers), + string(CheckNameResourceTypesMicrosoftPointWebSites), + string(CheckNameResourceTypesMicrosoftPointWebSitesSlots), + string(CheckNameResourceTypesPublishingUser), + string(CheckNameResourceTypesSite), + string(CheckNameResourceTypesSlot), + } +} + +func (s *CheckNameResourceTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCheckNameResourceTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCheckNameResourceTypes(input string) (*CheckNameResourceTypes, error) { + vals := map[string]CheckNameResourceTypes{ + "hostingenvironment": CheckNameResourceTypesHostingEnvironment, + "microsoft.web/hostingenvironments": CheckNameResourceTypesMicrosoftPointWebHostingEnvironments, + "microsoft.web/publishingusers": CheckNameResourceTypesMicrosoftPointWebPublishingUsers, + "microsoft.web/sites": CheckNameResourceTypesMicrosoftPointWebSites, + "microsoft.web/sites/slots": CheckNameResourceTypesMicrosoftPointWebSitesSlots, + "publishinguser": CheckNameResourceTypesPublishingUser, + "site": CheckNameResourceTypesSite, + "slot": CheckNameResourceTypesSlot, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CheckNameResourceTypes(input) + return &out, nil +} + +type CustomDnsSuffixProvisioningState string + +const ( + CustomDnsSuffixProvisioningStateDegraded CustomDnsSuffixProvisioningState = "Degraded" + CustomDnsSuffixProvisioningStateFailed CustomDnsSuffixProvisioningState = "Failed" + CustomDnsSuffixProvisioningStateInProgress CustomDnsSuffixProvisioningState = "InProgress" + CustomDnsSuffixProvisioningStateSucceeded CustomDnsSuffixProvisioningState = "Succeeded" +) + +func PossibleValuesForCustomDnsSuffixProvisioningState() []string { + return []string{ + string(CustomDnsSuffixProvisioningStateDegraded), + string(CustomDnsSuffixProvisioningStateFailed), + string(CustomDnsSuffixProvisioningStateInProgress), + string(CustomDnsSuffixProvisioningStateSucceeded), + } +} + +func (s *CustomDnsSuffixProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCustomDnsSuffixProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCustomDnsSuffixProvisioningState(input string) (*CustomDnsSuffixProvisioningState, error) { + vals := map[string]CustomDnsSuffixProvisioningState{ + "degraded": CustomDnsSuffixProvisioningStateDegraded, + "failed": CustomDnsSuffixProvisioningStateFailed, + "inprogress": CustomDnsSuffixProvisioningStateInProgress, + "succeeded": CustomDnsSuffixProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CustomDnsSuffixProvisioningState(input) + return &out, nil +} + +type HostingEnvironmentStatus string + +const ( + HostingEnvironmentStatusDeleting HostingEnvironmentStatus = "Deleting" + HostingEnvironmentStatusPreparing HostingEnvironmentStatus = "Preparing" + HostingEnvironmentStatusReady HostingEnvironmentStatus = "Ready" + HostingEnvironmentStatusScaling HostingEnvironmentStatus = "Scaling" +) + +func PossibleValuesForHostingEnvironmentStatus() []string { + return []string{ + string(HostingEnvironmentStatusDeleting), + string(HostingEnvironmentStatusPreparing), + string(HostingEnvironmentStatusReady), + string(HostingEnvironmentStatusScaling), + } +} + +func (s *HostingEnvironmentStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHostingEnvironmentStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHostingEnvironmentStatus(input string) (*HostingEnvironmentStatus, error) { + vals := map[string]HostingEnvironmentStatus{ + "deleting": HostingEnvironmentStatusDeleting, + "preparing": HostingEnvironmentStatusPreparing, + "ready": HostingEnvironmentStatusReady, + "scaling": HostingEnvironmentStatusScaling, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HostingEnvironmentStatus(input) + return &out, nil +} + +type InAvailabilityReasonType string + +const ( + InAvailabilityReasonTypeAlreadyExists InAvailabilityReasonType = "AlreadyExists" + InAvailabilityReasonTypeInvalid InAvailabilityReasonType = "Invalid" +) + +func PossibleValuesForInAvailabilityReasonType() []string { + return []string{ + string(InAvailabilityReasonTypeAlreadyExists), + string(InAvailabilityReasonTypeInvalid), + } +} + +func (s *InAvailabilityReasonType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseInAvailabilityReasonType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseInAvailabilityReasonType(input string) (*InAvailabilityReasonType, error) { + vals := map[string]InAvailabilityReasonType{ + "alreadyexists": InAvailabilityReasonTypeAlreadyExists, + "invalid": InAvailabilityReasonTypeInvalid, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := InAvailabilityReasonType(input) + return &out, nil +} + +type LoadBalancingMode string + +const ( + LoadBalancingModeNone LoadBalancingMode = "None" + LoadBalancingModePublishing LoadBalancingMode = "Publishing" + LoadBalancingModeWeb LoadBalancingMode = "Web" + LoadBalancingModeWebPublishing LoadBalancingMode = "Web, Publishing" +) + +func PossibleValuesForLoadBalancingMode() []string { + return []string{ + string(LoadBalancingModeNone), + string(LoadBalancingModePublishing), + string(LoadBalancingModeWeb), + string(LoadBalancingModeWebPublishing), + } +} + +func (s *LoadBalancingMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancingMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancingMode(input string) (*LoadBalancingMode, error) { + vals := map[string]LoadBalancingMode{ + "none": LoadBalancingModeNone, + "publishing": LoadBalancingModePublishing, + "web": LoadBalancingModeWeb, + "web, publishing": LoadBalancingModeWebPublishing, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancingMode(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateInProgress ProvisioningState = "InProgress" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateCanceled), + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateInProgress), + string(ProvisioningStateSucceeded), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "inprogress": ProvisioningStateInProgress, + "succeeded": ProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SkuName string + +const ( + SkuNameBasic SkuName = "Basic" + SkuNameDynamic SkuName = "Dynamic" + SkuNameElasticIsolated SkuName = "ElasticIsolated" + SkuNameElasticPremium SkuName = "ElasticPremium" + SkuNameFree SkuName = "Free" + SkuNameIsolated SkuName = "Isolated" + SkuNameIsolatedVTwo SkuName = "IsolatedV2" + SkuNamePremium SkuName = "Premium" + SkuNamePremiumContainer SkuName = "PremiumContainer" + SkuNamePremiumVThree SkuName = "PremiumV3" + SkuNamePremiumVTwo SkuName = "PremiumV2" + SkuNameShared SkuName = "Shared" + SkuNameStandard SkuName = "Standard" +) + +func PossibleValuesForSkuName() []string { + return []string{ + string(SkuNameBasic), + string(SkuNameDynamic), + string(SkuNameElasticIsolated), + string(SkuNameElasticPremium), + string(SkuNameFree), + string(SkuNameIsolated), + string(SkuNameIsolatedVTwo), + string(SkuNamePremium), + string(SkuNamePremiumContainer), + string(SkuNamePremiumVThree), + string(SkuNamePremiumVTwo), + string(SkuNameShared), + string(SkuNameStandard), + } +} + +func (s *SkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSkuName(input string) (*SkuName, error) { + vals := map[string]SkuName{ + "basic": SkuNameBasic, + "dynamic": SkuNameDynamic, + "elasticisolated": SkuNameElasticIsolated, + "elasticpremium": SkuNameElasticPremium, + "free": SkuNameFree, + "isolated": SkuNameIsolated, + "isolatedv2": SkuNameIsolatedVTwo, + "premium": SkuNamePremium, + "premiumcontainer": SkuNamePremiumContainer, + "premiumv3": SkuNamePremiumVThree, + "premiumv2": SkuNamePremiumVTwo, + "shared": SkuNameShared, + "standard": SkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SkuName(input) + return &out, nil +} + +type UpgradeAvailability string + +const ( + UpgradeAvailabilityNone UpgradeAvailability = "None" + UpgradeAvailabilityReady UpgradeAvailability = "Ready" +) + +func PossibleValuesForUpgradeAvailability() []string { + return []string{ + string(UpgradeAvailabilityNone), + string(UpgradeAvailabilityReady), + } +} + +func (s *UpgradeAvailability) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUpgradeAvailability(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUpgradeAvailability(input string) (*UpgradeAvailability, error) { + vals := map[string]UpgradeAvailability{ + "none": UpgradeAvailabilityNone, + "ready": UpgradeAvailabilityReady, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UpgradeAvailability(input) + return &out, nil +} + +type UpgradePreference string + +const ( + UpgradePreferenceEarly UpgradePreference = "Early" + UpgradePreferenceLate UpgradePreference = "Late" + UpgradePreferenceManual UpgradePreference = "Manual" + UpgradePreferenceNone UpgradePreference = "None" +) + +func PossibleValuesForUpgradePreference() []string { + return []string{ + string(UpgradePreferenceEarly), + string(UpgradePreferenceLate), + string(UpgradePreferenceManual), + string(UpgradePreferenceNone), + } +} + +func (s *UpgradePreference) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUpgradePreference(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUpgradePreference(input string) (*UpgradePreference, error) { + vals := map[string]UpgradePreference{ + "early": UpgradePreferenceEarly, + "late": UpgradePreferenceLate, + "manual": UpgradePreferenceManual, + "none": UpgradePreferenceNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UpgradePreference(input) + return &out, nil +} + +type ValidateResourceTypes string + +const ( + ValidateResourceTypesMicrosoftPointWebHostingEnvironments ValidateResourceTypes = "Microsoft.Web/hostingEnvironments" + ValidateResourceTypesServerFarm ValidateResourceTypes = "ServerFarm" + ValidateResourceTypesSite ValidateResourceTypes = "Site" +) + +func PossibleValuesForValidateResourceTypes() []string { + return []string{ + string(ValidateResourceTypesMicrosoftPointWebHostingEnvironments), + string(ValidateResourceTypesServerFarm), + string(ValidateResourceTypesSite), + } +} + +func (s *ValidateResourceTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseValidateResourceTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseValidateResourceTypes(input string) (*ValidateResourceTypes, error) { + vals := map[string]ValidateResourceTypes{ + "microsoft.web/hostingenvironments": ValidateResourceTypesMicrosoftPointWebHostingEnvironments, + "serverfarm": ValidateResourceTypesServerFarm, + "site": ValidateResourceTypesSite, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ValidateResourceTypes(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_providerlocation.go new file mode 100644 index 000000000000..f1a135084fec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_providerlocation.go @@ -0,0 +1,116 @@ +package resourceproviders + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = ProviderLocationId{} + +// ProviderLocationId is a struct representing the Resource ID for a Provider Location +type ProviderLocationId struct { + SubscriptionId string + LocationName string +} + +// NewProviderLocationID returns a new ProviderLocationId struct +func NewProviderLocationID(subscriptionId string, locationName string) ProviderLocationId { + return ProviderLocationId{ + SubscriptionId: subscriptionId, + LocationName: locationName, + } +} + +// ParseProviderLocationID parses 'input' into a ProviderLocationId +func ParseProviderLocationID(input string) (*ProviderLocationId, error) { + parser := resourceids.NewParserFromResourceIdType(ProviderLocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderLocationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseProviderLocationIDInsensitively parses 'input' case-insensitively into a ProviderLocationId +// note: this method should only be used for API response data and not user input +func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, error) { + parser := resourceids.NewParserFromResourceIdType(ProviderLocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderLocationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ProviderLocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID +func ValidateProviderLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseProviderLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Provider Location ID +func (id ProviderLocationId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.Web/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Provider Location ID +func (id ProviderLocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationValue"), + } +} + +// String returns a human-readable description of this Provider Location ID +func (id ProviderLocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Provider Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_sourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_sourcecontrol.go new file mode 100644 index 000000000000..3de3c627bc92 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_sourcecontrol.go @@ -0,0 +1,107 @@ +package resourceproviders + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SourceControlId{} + +// SourceControlId is a struct representing the Resource ID for a Source Control +type SourceControlId struct { + SourceControlName string +} + +// NewSourceControlID returns a new SourceControlId struct +func NewSourceControlID(sourceControlName string) SourceControlId { + return SourceControlId{ + SourceControlName: sourceControlName, + } +} + +// ParseSourceControlID parses 'input' into a SourceControlId +func ParseSourceControlID(input string) (*SourceControlId, error) { + parser := resourceids.NewParserFromResourceIdType(SourceControlId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SourceControlId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSourceControlIDInsensitively parses 'input' case-insensitively into a SourceControlId +// note: this method should only be used for API response data and not user input +func ParseSourceControlIDInsensitively(input string) (*SourceControlId, error) { + parser := resourceids.NewParserFromResourceIdType(SourceControlId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SourceControlId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SourceControlId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SourceControlName, ok = input.Parsed["sourceControlName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "sourceControlName", input) + } + + return nil +} + +// ValidateSourceControlID checks that 'input' can be parsed as a Source Control ID +func ValidateSourceControlID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSourceControlID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Source Control ID +func (id SourceControlId) ID() string { + fmtString := "/providers/Microsoft.Web/sourceControls/%s" + return fmt.Sprintf(fmtString, id.SourceControlName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Source Control ID +func (id SourceControlId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSourceControls", "sourceControls", "sourceControls"), + resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlValue"), + } +} + +// String returns a human-readable description of this Source Control ID +func (id SourceControlId) String() string { + components := []string{ + fmt.Sprintf("Source Control Name: %q", id.SourceControlName), + } + return fmt.Sprintf("Source Control (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_checknameavailability.go new file mode 100644 index 000000000000..ee088f211316 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_checknameavailability.go @@ -0,0 +1,57 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameAvailabilityOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ResourceNameAvailability +} + +// CheckNameAvailability ... +func (c ResourceProvidersClient) CheckNameAvailability(ctx context.Context, id commonids.SubscriptionId, input ResourceNameAvailabilityRequest) (result CheckNameAvailabilityOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/checknameavailability", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getpublishinguser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getpublishinguser.go new file mode 100644 index 000000000000..90025d2e432e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getpublishinguser.go @@ -0,0 +1,51 @@ +package resourceproviders + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPublishingUserOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *User +} + +// GetPublishingUser ... +func (c ResourceProvidersClient) GetPublishingUser(ctx context.Context) (result GetPublishingUserOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: "/providers/Microsoft.Web/publishingUsers/web", + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsourcecontrol.go new file mode 100644 index 000000000000..d1f902762aa0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsourcecontrol.go @@ -0,0 +1,51 @@ +package resourceproviders + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSourceControlOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SourceControl +} + +// GetSourceControl ... +func (c ResourceProvidersClient) GetSourceControl(ctx context.Context, id SourceControlId) (result GetSourceControlOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsubscriptiondeploymentlocations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsubscriptiondeploymentlocations.go new file mode 100644 index 000000000000..41189e8e2bbd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsubscriptiondeploymentlocations.go @@ -0,0 +1,53 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSubscriptionDeploymentLocationsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *DeploymentLocations +} + +// GetSubscriptionDeploymentLocations ... +func (c ResourceProvidersClient) GetSubscriptionDeploymentLocations(ctx context.Context, id commonids.SubscriptionId) (result GetSubscriptionDeploymentLocationsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/deploymentLocations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getusagesinlocationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getusagesinlocationlist.go new file mode 100644 index 000000000000..237739a8e5c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getusagesinlocationlist.go @@ -0,0 +1,89 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetUsagesInLocationlistOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CsmUsageQuota +} + +type GetUsagesInLocationlistCompleteResult struct { + Items []CsmUsageQuota +} + +// GetUsagesInLocationlist ... +func (c ResourceProvidersClient) GetUsagesInLocationlist(ctx context.Context, id ProviderLocationId) (result GetUsagesInLocationlistOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/usages", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CsmUsageQuota `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// GetUsagesInLocationlistComplete retrieves all the results into a single object +func (c ResourceProvidersClient) GetUsagesInLocationlistComplete(ctx context.Context, id ProviderLocationId) (GetUsagesInLocationlistCompleteResult, error) { + return c.GetUsagesInLocationlistCompleteMatchingPredicate(ctx, id, CsmUsageQuotaOperationPredicate{}) +} + +// GetUsagesInLocationlistCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ResourceProvidersClient) GetUsagesInLocationlistCompleteMatchingPredicate(ctx context.Context, id ProviderLocationId, predicate CsmUsageQuotaOperationPredicate) (result GetUsagesInLocationlistCompleteResult, err error) { + items := make([]CsmUsageQuota, 0) + + resp, err := c.GetUsagesInLocationlist(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = GetUsagesInLocationlistCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listaseregions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listaseregions.go new file mode 100644 index 000000000000..ca8237391c70 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listaseregions.go @@ -0,0 +1,90 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAseRegionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AseRegion +} + +type ListAseRegionsCompleteResult struct { + Items []AseRegion +} + +// ListAseRegions ... +func (c ResourceProvidersClient) ListAseRegions(ctx context.Context, id commonids.SubscriptionId) (result ListAseRegionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/aseRegions", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AseRegion `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAseRegionsComplete retrieves all the results into a single object +func (c ResourceProvidersClient) ListAseRegionsComplete(ctx context.Context, id commonids.SubscriptionId) (ListAseRegionsCompleteResult, error) { + return c.ListAseRegionsCompleteMatchingPredicate(ctx, id, AseRegionOperationPredicate{}) +} + +// ListAseRegionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ResourceProvidersClient) ListAseRegionsCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AseRegionOperationPredicate) (result ListAseRegionsCompleteResult, err error) { + items := make([]AseRegion, 0) + + resp, err := c.ListAseRegions(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAseRegionsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go new file mode 100644 index 000000000000..d5acba2a7aea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go @@ -0,0 +1,122 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBillingMetersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BillingMeter +} + +type ListBillingMetersCompleteResult struct { + Items []BillingMeter +} + +type ListBillingMetersOperationOptions struct { + BillingLocation *string + OsType *string +} + +func DefaultListBillingMetersOperationOptions() ListBillingMetersOperationOptions { + return ListBillingMetersOperationOptions{} +} + +func (o ListBillingMetersOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListBillingMetersOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListBillingMetersOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.BillingLocation != nil { + out.Append("billingLocation", fmt.Sprintf("%v", *o.BillingLocation)) + } + if o.OsType != nil { + out.Append("osType", fmt.Sprintf("%v", *o.OsType)) + } + return &out +} + +// ListBillingMeters ... +func (c ResourceProvidersClient) ListBillingMeters(ctx context.Context, id commonids.SubscriptionId, options ListBillingMetersOperationOptions) (result ListBillingMetersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/billingMeters", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]BillingMeter `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBillingMetersComplete retrieves all the results into a single object +func (c ResourceProvidersClient) ListBillingMetersComplete(ctx context.Context, id commonids.SubscriptionId, options ListBillingMetersOperationOptions) (ListBillingMetersCompleteResult, error) { + return c.ListBillingMetersCompleteMatchingPredicate(ctx, id, options, BillingMeterOperationPredicate{}) +} + +// ListBillingMetersCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ResourceProvidersClient) ListBillingMetersCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListBillingMetersOperationOptions, predicate BillingMeterOperationPredicate) (result ListBillingMetersCompleteResult, err error) { + items := make([]BillingMeter, 0) + + resp, err := c.ListBillingMeters(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBillingMetersCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go new file mode 100644 index 000000000000..5782cf6e96a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go @@ -0,0 +1,118 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListCustomHostNameSitesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CustomHostnameSites +} + +type ListCustomHostNameSitesCompleteResult struct { + Items []CustomHostnameSites +} + +type ListCustomHostNameSitesOperationOptions struct { + Hostname *string +} + +func DefaultListCustomHostNameSitesOperationOptions() ListCustomHostNameSitesOperationOptions { + return ListCustomHostNameSitesOperationOptions{} +} + +func (o ListCustomHostNameSitesOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListCustomHostNameSitesOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListCustomHostNameSitesOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Hostname != nil { + out.Append("hostname", fmt.Sprintf("%v", *o.Hostname)) + } + return &out +} + +// ListCustomHostNameSites ... +func (c ResourceProvidersClient) ListCustomHostNameSites(ctx context.Context, id commonids.SubscriptionId, options ListCustomHostNameSitesOperationOptions) (result ListCustomHostNameSitesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/customhostnameSites", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CustomHostnameSites `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListCustomHostNameSitesComplete retrieves all the results into a single object +func (c ResourceProvidersClient) ListCustomHostNameSitesComplete(ctx context.Context, id commonids.SubscriptionId, options ListCustomHostNameSitesOperationOptions) (ListCustomHostNameSitesCompleteResult, error) { + return c.ListCustomHostNameSitesCompleteMatchingPredicate(ctx, id, options, CustomHostnameSitesOperationPredicate{}) +} + +// ListCustomHostNameSitesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ResourceProvidersClient) ListCustomHostNameSitesCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListCustomHostNameSitesOperationOptions, predicate CustomHostnameSitesOperationPredicate) (result ListCustomHostNameSitesCompleteResult, err error) { + items := make([]CustomHostnameSites, 0) + + resp, err := c.ListCustomHostNameSites(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCustomHostNameSitesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go new file mode 100644 index 000000000000..2f6ae4bd2a0d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go @@ -0,0 +1,130 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListGeoRegionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]GeoRegion +} + +type ListGeoRegionsCompleteResult struct { + Items []GeoRegion +} + +type ListGeoRegionsOperationOptions struct { + LinuxDynamicWorkersEnabled *bool + LinuxWorkersEnabled *bool + Sku *SkuName + XenonWorkersEnabled *bool +} + +func DefaultListGeoRegionsOperationOptions() ListGeoRegionsOperationOptions { + return ListGeoRegionsOperationOptions{} +} + +func (o ListGeoRegionsOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListGeoRegionsOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListGeoRegionsOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.LinuxDynamicWorkersEnabled != nil { + out.Append("linuxDynamicWorkersEnabled", fmt.Sprintf("%v", *o.LinuxDynamicWorkersEnabled)) + } + if o.LinuxWorkersEnabled != nil { + out.Append("linuxWorkersEnabled", fmt.Sprintf("%v", *o.LinuxWorkersEnabled)) + } + if o.Sku != nil { + out.Append("sku", fmt.Sprintf("%v", *o.Sku)) + } + if o.XenonWorkersEnabled != nil { + out.Append("xenonWorkersEnabled", fmt.Sprintf("%v", *o.XenonWorkersEnabled)) + } + return &out +} + +// ListGeoRegions ... +func (c ResourceProvidersClient) ListGeoRegions(ctx context.Context, id commonids.SubscriptionId, options ListGeoRegionsOperationOptions) (result ListGeoRegionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/geoRegions", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]GeoRegion `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListGeoRegionsComplete retrieves all the results into a single object +func (c ResourceProvidersClient) ListGeoRegionsComplete(ctx context.Context, id commonids.SubscriptionId, options ListGeoRegionsOperationOptions) (ListGeoRegionsCompleteResult, error) { + return c.ListGeoRegionsCompleteMatchingPredicate(ctx, id, options, GeoRegionOperationPredicate{}) +} + +// ListGeoRegionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ResourceProvidersClient) ListGeoRegionsCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListGeoRegionsOperationOptions, predicate GeoRegionOperationPredicate) (result ListGeoRegionsCompleteResult, err error) { + items := make([]GeoRegion, 0) + + resp, err := c.ListGeoRegions(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListGeoRegionsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listpremieraddonoffers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listpremieraddonoffers.go new file mode 100644 index 000000000000..5c2376c54849 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listpremieraddonoffers.go @@ -0,0 +1,90 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPremierAddOnOffersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PremierAddOnOffer +} + +type ListPremierAddOnOffersCompleteResult struct { + Items []PremierAddOnOffer +} + +// ListPremierAddOnOffers ... +func (c ResourceProvidersClient) ListPremierAddOnOffers(ctx context.Context, id commonids.SubscriptionId) (result ListPremierAddOnOffersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/premieraddonoffers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PremierAddOnOffer `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListPremierAddOnOffersComplete retrieves all the results into a single object +func (c ResourceProvidersClient) ListPremierAddOnOffersComplete(ctx context.Context, id commonids.SubscriptionId) (ListPremierAddOnOffersCompleteResult, error) { + return c.ListPremierAddOnOffersCompleteMatchingPredicate(ctx, id, PremierAddOnOfferOperationPredicate{}) +} + +// ListPremierAddOnOffersCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ResourceProvidersClient) ListPremierAddOnOffersCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate PremierAddOnOfferOperationPredicate) (result ListPremierAddOnOffersCompleteResult, err error) { + items := make([]PremierAddOnOffer, 0) + + resp, err := c.ListPremierAddOnOffers(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListPremierAddOnOffersCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go new file mode 100644 index 000000000000..d237fee2c0e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go @@ -0,0 +1,90 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSiteIdentifiersAssignedToHostNameOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Identifier +} + +type ListSiteIdentifiersAssignedToHostNameCompleteResult struct { + Items []Identifier +} + +// ListSiteIdentifiersAssignedToHostName ... +func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostName(ctx context.Context, id commonids.SubscriptionId, input NameIdentifier) (result ListSiteIdentifiersAssignedToHostNameOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/listSitesAssignedToHostName", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Identifier `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSiteIdentifiersAssignedToHostNameComplete retrieves all the results into a single object +func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostNameComplete(ctx context.Context, id commonids.SubscriptionId, input NameIdentifier) (ListSiteIdentifiersAssignedToHostNameCompleteResult, error) { + return c.ListSiteIdentifiersAssignedToHostNameCompleteMatchingPredicate(ctx, id, input, IdentifierOperationPredicate{}) +} + +// ListSiteIdentifiersAssignedToHostNameCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostNameCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, input NameIdentifier, predicate IdentifierOperationPredicate) (result ListSiteIdentifiersAssignedToHostNameCompleteResult, err error) { + items := make([]Identifier, 0) + + resp, err := c.ListSiteIdentifiersAssignedToHostName(ctx, id, input) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSiteIdentifiersAssignedToHostNameCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listskus.go new file mode 100644 index 000000000000..56cafffb085f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listskus.go @@ -0,0 +1,53 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSkusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SkuInfos +} + +// ListSkus ... +func (c ResourceProvidersClient) ListSkus(ctx context.Context, id commonids.SubscriptionId) (result ListSkusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/skus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsourcecontrols.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsourcecontrols.go new file mode 100644 index 000000000000..241665d495c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsourcecontrols.go @@ -0,0 +1,89 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSourceControlsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SourceControl +} + +type ListSourceControlsCompleteResult struct { + Items []SourceControl +} + +// ListSourceControls ... +func (c ResourceProvidersClient) ListSourceControls(ctx context.Context) (result ListSourceControlsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: "/providers/Microsoft.Web/sourceControls", + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SourceControl `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSourceControlsComplete retrieves all the results into a single object +func (c ResourceProvidersClient) ListSourceControlsComplete(ctx context.Context) (ListSourceControlsCompleteResult, error) { + return c.ListSourceControlsCompleteMatchingPredicate(ctx, SourceControlOperationPredicate{}) +} + +// ListSourceControlsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ResourceProvidersClient) ListSourceControlsCompleteMatchingPredicate(ctx context.Context, predicate SourceControlOperationPredicate) (result ListSourceControlsCompleteResult, err error) { + items := make([]SourceControl, 0) + + resp, err := c.ListSourceControls(ctx) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSourceControlsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_move.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_move.go new file mode 100644 index 000000000000..1d47ce748e7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_move.go @@ -0,0 +1,52 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MoveOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// Move ... +func (c ResourceProvidersClient) Move(ctx context.Context, id commonids.ResourceGroupId, input CsmMoveResourceEnvelope) (result MoveOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/moveResources", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatepublishinguser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatepublishinguser.go new file mode 100644 index 000000000000..419ea8ee3fd3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatepublishinguser.go @@ -0,0 +1,55 @@ +package resourceproviders + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdatePublishingUserOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *User +} + +// UpdatePublishingUser ... +func (c ResourceProvidersClient) UpdatePublishingUser(ctx context.Context, input User) (result UpdatePublishingUserOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: "/providers/Microsoft.Web/publishingUsers/web", + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatesourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatesourcecontrol.go new file mode 100644 index 000000000000..5a2c018ecbc8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatesourcecontrol.go @@ -0,0 +1,55 @@ +package resourceproviders + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateSourceControlOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SourceControl +} + +// UpdateSourceControl ... +func (c ResourceProvidersClient) UpdateSourceControl(ctx context.Context, id SourceControlId, input SourceControl) (result UpdateSourceControlOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validate.go new file mode 100644 index 000000000000..58cef3283bad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validate.go @@ -0,0 +1,57 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ValidateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ValidateResponse +} + +// Validate ... +func (c ResourceProvidersClient) Validate(ctx context.Context, id commonids.ResourceGroupId, input ValidateRequest) (result ValidateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/validate", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validatemove.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validatemove.go new file mode 100644 index 000000000000..7df2e3df0eb6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validatemove.go @@ -0,0 +1,52 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ValidateMoveOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// ValidateMove ... +func (c ResourceProvidersClient) ValidateMove(ctx context.Context, id commonids.ResourceGroupId, input CsmMoveResourceEnvelope) (result ValidateMoveOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/validateMoveResources", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_verifyhostingenvironmentvnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_verifyhostingenvironmentvnet.go new file mode 100644 index 000000000000..d56ad0413427 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_verifyhostingenvironmentvnet.go @@ -0,0 +1,57 @@ +package resourceproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VerifyHostingEnvironmentVnetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetValidationFailureDetails +} + +// VerifyHostingEnvironmentVnet ... +func (c ResourceProvidersClient) VerifyHostingEnvironmentVnet(ctx context.Context, id commonids.SubscriptionId, input VnetParameters) (result VerifyHostingEnvironmentVnetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/verifyHostingEnvironmentVnet", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_appserviceenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_appserviceenvironment.go new file mode 100644 index 000000000000..4c64f3befc2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_appserviceenvironment.go @@ -0,0 +1,27 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppServiceEnvironment struct { + ClusterSettings *[]NameValuePair `json:"clusterSettings,omitempty"` + CustomDnsSuffixConfiguration *CustomDnsSuffixConfiguration `json:"customDnsSuffixConfiguration,omitempty"` + DedicatedHostCount *int64 `json:"dedicatedHostCount,omitempty"` + DnsSuffix *string `json:"dnsSuffix,omitempty"` + FrontEndScaleFactor *int64 `json:"frontEndScaleFactor,omitempty"` + HasLinuxWorkers *bool `json:"hasLinuxWorkers,omitempty"` + IPsslAddressCount *int64 `json:"ipsslAddressCount,omitempty"` + InternalLoadBalancingMode *LoadBalancingMode `json:"internalLoadBalancingMode,omitempty"` + MaximumNumberOfMachines *int64 `json:"maximumNumberOfMachines,omitempty"` + MultiRoleCount *int64 `json:"multiRoleCount,omitempty"` + MultiSize *string `json:"multiSize,omitempty"` + NetworkingConfiguration *AseV3NetworkingConfiguration `json:"networkingConfiguration,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Status *HostingEnvironmentStatus `json:"status,omitempty"` + Suspended *bool `json:"suspended,omitempty"` + UpgradeAvailability *UpgradeAvailability `json:"upgradeAvailability,omitempty"` + UpgradePreference *UpgradePreference `json:"upgradePreference,omitempty"` + UserWhitelistedIPRanges *[]string `json:"userWhitelistedIpRanges,omitempty"` + VirtualNetwork VirtualNetworkProfile `json:"virtualNetwork"` + ZoneRedundant *bool `json:"zoneRedundant,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_aseregion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_aseregion.go new file mode 100644 index 000000000000..75229a008ccd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_aseregion.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AseRegion struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AseRegionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_aseregionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_aseregionproperties.go new file mode 100644 index 000000000000..193d6e9cc249 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_aseregionproperties.go @@ -0,0 +1,13 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AseRegionProperties struct { + AvailableOS *[]string `json:"availableOS,omitempty"` + AvailableSku *[]string `json:"availableSku,omitempty"` + DedicatedHost *bool `json:"dedicatedHost,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Standard *bool `json:"standard,omitempty"` + ZoneRedundant *bool `json:"zoneRedundant,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_asev3networkingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_asev3networkingconfiguration.go new file mode 100644 index 000000000000..44e592b0c220 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_asev3networkingconfiguration.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AseV3NetworkingConfiguration struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AseV3NetworkingConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_asev3networkingconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_asev3networkingconfigurationproperties.go new file mode 100644 index 000000000000..d93b1c90db6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_asev3networkingconfigurationproperties.go @@ -0,0 +1,15 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AseV3NetworkingConfigurationProperties struct { + AllowNewPrivateEndpointConnections *bool `json:"allowNewPrivateEndpointConnections,omitempty"` + ExternalInboundIPAddresses *[]string `json:"externalInboundIpAddresses,omitempty"` + FtpEnabled *bool `json:"ftpEnabled,omitempty"` + InboundIPAddressOverride *string `json:"inboundIpAddressOverride,omitempty"` + InternalInboundIPAddresses *[]string `json:"internalInboundIpAddresses,omitempty"` + LinuxOutboundIPAddresses *[]string `json:"linuxOutboundIpAddresses,omitempty"` + RemoteDebugEnabled *bool `json:"remoteDebugEnabled,omitempty"` + WindowsOutboundIPAddresses *[]string `json:"windowsOutboundIpAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_billingmeter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_billingmeter.go new file mode 100644 index 000000000000..5d22f02ed37d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_billingmeter.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BillingMeter struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BillingMeterProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_billingmeterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_billingmeterproperties.go new file mode 100644 index 000000000000..aae6e22c9486 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_billingmeterproperties.go @@ -0,0 +1,14 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BillingMeterProperties struct { + BillingLocation *string `json:"billingLocation,omitempty"` + FriendlyName *string `json:"friendlyName,omitempty"` + MeterId *string `json:"meterId,omitempty"` + Multiplier *float64 `json:"multiplier,omitempty"` + OsType *string `json:"osType,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ShortName *string `json:"shortName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_capability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_capability.go new file mode 100644 index 000000000000..85356855f605 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_capability.go @@ -0,0 +1,10 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Capability struct { + Name *string `json:"name,omitempty"` + Reason *string `json:"reason,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_csmmoveresourceenvelope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_csmmoveresourceenvelope.go new file mode 100644 index 000000000000..6e585fdc4165 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_csmmoveresourceenvelope.go @@ -0,0 +1,9 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CsmMoveResourceEnvelope struct { + Resources *[]string `json:"resources,omitempty"` + TargetResourceGroup *string `json:"targetResourceGroup,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_csmusagequota.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_csmusagequota.go new file mode 100644 index 000000000000..d3c613eb2487 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_csmusagequota.go @@ -0,0 +1,30 @@ +package resourceproviders + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CsmUsageQuota struct { + CurrentValue *int64 `json:"currentValue,omitempty"` + Limit *int64 `json:"limit,omitempty"` + Name *LocalizableString `json:"name,omitempty"` + NextResetTime *string `json:"nextResetTime,omitempty"` + Unit *string `json:"unit,omitempty"` +} + +func (o *CsmUsageQuota) GetNextResetTimeAsTime() (*time.Time, error) { + if o.NextResetTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.NextResetTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *CsmUsageQuota) SetNextResetTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.NextResetTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customdnssuffixconfiguration.go new file mode 100644 index 000000000000..59f89a9a6b2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customdnssuffixconfiguration.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsSuffixConfiguration struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *CustomDnsSuffixConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customdnssuffixconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customdnssuffixconfigurationproperties.go new file mode 100644 index 000000000000..ba59ff8812d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customdnssuffixconfigurationproperties.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsSuffixConfigurationProperties struct { + CertificateUrl *string `json:"certificateUrl,omitempty"` + DnsSuffix *string `json:"dnsSuffix,omitempty"` + KeyVaultReferenceIdentity *string `json:"keyVaultReferenceIdentity,omitempty"` + ProvisioningDetails *string `json:"provisioningDetails,omitempty"` + ProvisioningState *CustomDnsSuffixProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customhostnamesites.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customhostnamesites.go new file mode 100644 index 000000000000..f967d7a31530 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customhostnamesites.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomHostnameSites struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *CustomHostnameSitesProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customhostnamesitesproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customhostnamesitesproperties.go new file mode 100644 index 000000000000..d7767777efa1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_customhostnamesitesproperties.go @@ -0,0 +1,10 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomHostnameSitesProperties struct { + CustomHostname *string `json:"customHostname,omitempty"` + Region *string `json:"region,omitempty"` + SiteResourceIds *[]Identifier `json:"siteResourceIds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_deploymentlocations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_deploymentlocations.go new file mode 100644 index 000000000000..0cf632a95025 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_deploymentlocations.go @@ -0,0 +1,10 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeploymentLocations struct { + HostingEnvironmentDeploymentInfos *[]HostingEnvironmentDeploymentInfo `json:"hostingEnvironmentDeploymentInfos,omitempty"` + HostingEnvironments *[]AppServiceEnvironment `json:"hostingEnvironments,omitempty"` + Locations *[]GeoRegion `json:"locations,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_georegion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_georegion.go new file mode 100644 index 000000000000..bc4c17360b53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_georegion.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GeoRegion struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *GeoRegionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_georegionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_georegionproperties.go new file mode 100644 index 000000000000..1511ccc9e28f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_georegionproperties.go @@ -0,0 +1,10 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GeoRegionProperties struct { + Description *string `json:"description,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + OrgDomain *string `json:"orgDomain,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_globalcsmskudescription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_globalcsmskudescription.go new file mode 100644 index 000000000000..fee5a130039c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_globalcsmskudescription.go @@ -0,0 +1,14 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GlobalCsmSkuDescription struct { + Capabilities *[]Capability `json:"capabilities,omitempty"` + Capacity *SkuCapacity `json:"capacity,omitempty"` + Family *string `json:"family,omitempty"` + Locations *[]string `json:"locations,omitempty"` + Name *string `json:"name,omitempty"` + Size *string `json:"size,omitempty"` + Tier *string `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_hostingenvironmentdeploymentinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_hostingenvironmentdeploymentinfo.go new file mode 100644 index 000000000000..5cbdecfc3f3c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_hostingenvironmentdeploymentinfo.go @@ -0,0 +1,9 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HostingEnvironmentDeploymentInfo struct { + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifier.go new file mode 100644 index 000000000000..879aff521be1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifier.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Identifier struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IdentifierProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifierproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifierproperties.go new file mode 100644 index 000000000000..5fee3a1ed5d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifierproperties.go @@ -0,0 +1,8 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IdentifierProperties struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_localizablestring.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_localizablestring.go new file mode 100644 index 000000000000..4ee07f00d955 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_localizablestring.go @@ -0,0 +1,9 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalizableString struct { + LocalizedValue *string `json:"localizedValue,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_nameidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_nameidentifier.go new file mode 100644 index 000000000000..94caff8a1105 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_nameidentifier.go @@ -0,0 +1,8 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NameIdentifier struct { + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_namevaluepair.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_namevaluepair.go new file mode 100644 index 000000000000..30d7a8f65467 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_namevaluepair.go @@ -0,0 +1,9 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NameValuePair struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_premieraddonoffer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_premieraddonoffer.go new file mode 100644 index 000000000000..8245c61bc6e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_premieraddonoffer.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PremierAddOnOffer struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PremierAddOnOfferProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_premieraddonofferproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_premieraddonofferproperties.go new file mode 100644 index 000000000000..4dcce517ebee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_premieraddonofferproperties.go @@ -0,0 +1,17 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PremierAddOnOfferProperties struct { + LegalTermsUrl *string `json:"legalTermsUrl,omitempty"` + MarketplaceOffer *string `json:"marketplaceOffer,omitempty"` + MarketplacePublisher *string `json:"marketplacePublisher,omitempty"` + PrivacyPolicyUrl *string `json:"privacyPolicyUrl,omitempty"` + Product *string `json:"product,omitempty"` + PromoCodeRequired *bool `json:"promoCodeRequired,omitempty"` + Quota *int64 `json:"quota,omitempty"` + Sku *string `json:"sku,omitempty"` + Vendor *string `json:"vendor,omitempty"` + WebHostingPlanRestrictions *AppServicePlanRestrictions `json:"webHostingPlanRestrictions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_resourcenameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_resourcenameavailability.go new file mode 100644 index 000000000000..0a19de2fac87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_resourcenameavailability.go @@ -0,0 +1,10 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNameAvailability struct { + Message *string `json:"message,omitempty"` + NameAvailable *bool `json:"nameAvailable,omitempty"` + Reason *InAvailabilityReasonType `json:"reason,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_resourcenameavailabilityrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_resourcenameavailabilityrequest.go new file mode 100644 index 000000000000..abefca1cda6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_resourcenameavailabilityrequest.go @@ -0,0 +1,11 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNameAvailabilityRequest struct { + EnvironmentId *string `json:"environmentId,omitempty"` + IsFqdn *bool `json:"isFqdn,omitempty"` + Name string `json:"name"` + Type CheckNameResourceTypes `json:"type"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_skucapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_skucapacity.go new file mode 100644 index 000000000000..9f5bcf3423de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_skucapacity.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SkuCapacity struct { + Default *int64 `json:"default,omitempty"` + ElasticMaximum *int64 `json:"elasticMaximum,omitempty"` + Maximum *int64 `json:"maximum,omitempty"` + Minimum *int64 `json:"minimum,omitempty"` + ScaleType *string `json:"scaleType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_skuinfos.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_skuinfos.go new file mode 100644 index 000000000000..c0c36d86b526 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_skuinfos.go @@ -0,0 +1,9 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SkuInfos struct { + ResourceType *string `json:"resourceType,omitempty"` + Skus *[]GlobalCsmSkuDescription `json:"skus,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_sourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_sourcecontrol.go new file mode 100644 index 000000000000..03ce9771a742 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_sourcecontrol.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SourceControl struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SourceControlProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_sourcecontrolproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_sourcecontrolproperties.go new file mode 100644 index 000000000000..012dfe7a3c34 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_sourcecontrolproperties.go @@ -0,0 +1,29 @@ +package resourceproviders + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SourceControlProperties struct { + ExpirationTime *string `json:"expirationTime,omitempty"` + RefreshToken *string `json:"refreshToken,omitempty"` + Token *string `json:"token,omitempty"` + TokenSecret *string `json:"tokenSecret,omitempty"` +} + +func (o *SourceControlProperties) GetExpirationTimeAsTime() (*time.Time, error) { + if o.ExpirationTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.ExpirationTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *SourceControlProperties) SetExpirationTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.ExpirationTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_user.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_user.go new file mode 100644 index 000000000000..adb8119b83f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_user.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type User struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *UserProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_userproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_userproperties.go new file mode 100644 index 000000000000..7ac82ad3b1f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_userproperties.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UserProperties struct { + PublishingPassword *string `json:"publishingPassword,omitempty"` + PublishingPasswordHash *string `json:"publishingPasswordHash,omitempty"` + PublishingPasswordHashSalt *string `json:"publishingPasswordHashSalt,omitempty"` + PublishingUserName string `json:"publishingUserName"` + ScmUri *string `json:"scmUri,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateproperties.go new file mode 100644 index 000000000000..390aaea61b01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateproperties.go @@ -0,0 +1,21 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ValidateProperties struct { + AppServiceEnvironment *AppServiceEnvironment `json:"appServiceEnvironment,omitempty"` + Capacity *int64 `json:"capacity,omitempty"` + ContainerImagePlatform *string `json:"containerImagePlatform,omitempty"` + ContainerImageRepository *string `json:"containerImageRepository,omitempty"` + ContainerImageTag *string `json:"containerImageTag,omitempty"` + ContainerRegistryBaseUrl *string `json:"containerRegistryBaseUrl,omitempty"` + ContainerRegistryPassword *string `json:"containerRegistryPassword,omitempty"` + ContainerRegistryUsername *string `json:"containerRegistryUsername,omitempty"` + HostingEnvironment *string `json:"hostingEnvironment,omitempty"` + IsSpot *bool `json:"isSpot,omitempty"` + IsXenon *bool `json:"isXenon,omitempty"` + NeedLinuxWorkers *bool `json:"needLinuxWorkers,omitempty"` + ServerFarmId *string `json:"serverFarmId,omitempty"` + SkuName *string `json:"skuName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validaterequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validaterequest.go new file mode 100644 index 000000000000..c7dc8dc05f4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validaterequest.go @@ -0,0 +1,11 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ValidateRequest struct { + Location string `json:"location"` + Name string `json:"name"` + Properties ValidateProperties `json:"properties"` + Type ValidateResourceTypes `json:"type"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateresponse.go new file mode 100644 index 000000000000..dbc96e23750b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateresponse.go @@ -0,0 +1,9 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ValidateResponse struct { + Error *ValidateResponseError `json:"error,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateresponseerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateresponseerror.go new file mode 100644 index 000000000000..8d4f8adf9447 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_validateresponseerror.go @@ -0,0 +1,9 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ValidateResponseError struct { + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_virtualnetworkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_virtualnetworkprofile.go new file mode 100644 index 000000000000..b6498b01aeaf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_virtualnetworkprofile.go @@ -0,0 +1,11 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkProfile struct { + Id string `json:"id"` + Name *string `json:"name,omitempty"` + Subnet *string `json:"subnet,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetparameters.go new file mode 100644 index 000000000000..195de734cb33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetparameters.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetParameters struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VnetParametersProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetparametersproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetparametersproperties.go new file mode 100644 index 000000000000..86fff3783876 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetparametersproperties.go @@ -0,0 +1,11 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetParametersProperties struct { + SubnetResourceId *string `json:"subnetResourceId,omitempty"` + VnetName *string `json:"vnetName,omitempty"` + VnetResourceGroup *string `json:"vnetResourceGroup,omitempty"` + VnetSubnetName *string `json:"vnetSubnetName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationfailuredetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationfailuredetails.go new file mode 100644 index 000000000000..c6f31ff5b83e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationfailuredetails.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetValidationFailureDetails struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VnetValidationFailureDetailsProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationfailuredetailsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationfailuredetailsproperties.go new file mode 100644 index 000000000000..edae58023cbf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationfailuredetailsproperties.go @@ -0,0 +1,11 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetValidationFailureDetailsProperties struct { + Failed *bool `json:"failed,omitempty"` + FailedTests *[]VnetValidationTestFailure `json:"failedTests,omitempty"` + Message *string `json:"message,omitempty"` + Warnings *[]VnetValidationTestFailure `json:"warnings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationtestfailure.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationtestfailure.go new file mode 100644 index 000000000000..2ecad9b35ca9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationtestfailure.go @@ -0,0 +1,12 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetValidationTestFailure struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VnetValidationTestFailureProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationtestfailureproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationtestfailureproperties.go new file mode 100644 index 000000000000..68ba825c5307 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_vnetvalidationtestfailureproperties.go @@ -0,0 +1,9 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetValidationTestFailureProperties struct { + Details *string `json:"details,omitempty"` + TestName *string `json:"testName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/predicates.go new file mode 100644 index 000000000000..c633f44ef011 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/predicates.go @@ -0,0 +1,228 @@ +package resourceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AseRegionOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p AseRegionOperationPredicate) Matches(input AseRegion) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type BillingMeterOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p BillingMeterOperationPredicate) Matches(input BillingMeter) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type CsmUsageQuotaOperationPredicate struct { + CurrentValue *int64 + Limit *int64 + NextResetTime *string + Unit *string +} + +func (p CsmUsageQuotaOperationPredicate) Matches(input CsmUsageQuota) bool { + + if p.CurrentValue != nil && (input.CurrentValue == nil || *p.CurrentValue != *input.CurrentValue) { + return false + } + + if p.Limit != nil && (input.Limit == nil || *p.Limit != *input.Limit) { + return false + } + + if p.NextResetTime != nil && (input.NextResetTime == nil || *p.NextResetTime != *input.NextResetTime) { + return false + } + + if p.Unit != nil && (input.Unit == nil || *p.Unit != *input.Unit) { + return false + } + + return true +} + +type CustomHostnameSitesOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p CustomHostnameSitesOperationPredicate) Matches(input CustomHostnameSites) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type GeoRegionOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p GeoRegionOperationPredicate) Matches(input GeoRegion) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type IdentifierOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p IdentifierOperationPredicate) Matches(input Identifier) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type PremierAddOnOfferOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p PremierAddOnOfferOperationPredicate) Matches(input PremierAddOnOffer) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type SourceControlOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p SourceControlOperationPredicate) Matches(input SourceControl) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/version.go new file mode 100644 index 000000000000..0659fd65e56a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/version.go @@ -0,0 +1,12 @@ +package resourceproviders + +import "fmt" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-01-01" + +func userAgent() string { + return fmt.Sprintf("hashicorp/go-azure-sdk/resourceproviders/%s", defaultApiVersion) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/README.md new file mode 100644 index 000000000000..b84e1dc9856a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/README.md @@ -0,0 +1,6912 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps` Documentation + +The `webapps` SDK allows for interaction with the Azure Resource Manager Service `web` (API Version `2023-01-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" +``` + + +### Client Initialization + +```go +client := webapps.NewWebAppsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `WebAppsClient.AddPremierAddOn` + +```go +ctx := context.TODO() +id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "premierAddonValue") + +payload := webapps.PremierAddOn{ + // ... +} + + +read, err := client.AddPremierAddOn(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.AddPremierAddOnSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "premierAddonValue") + +payload := webapps.PremierAddOn{ + // ... +} + + +read, err := client.AddPremierAddOnSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.AnalyzeCustomHostname` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.AnalyzeCustomHostname(ctx, id, webapps.DefaultAnalyzeCustomHostnameOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.AnalyzeCustomHostnameSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.AnalyzeCustomHostnameSlot(ctx, id, webapps.DefaultAnalyzeCustomHostnameSlotOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ApplySlotConfigToProduction` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.CsmSlotEntity{ + // ... +} + + +read, err := client.ApplySlotConfigToProduction(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ApplySlotConfigurationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.CsmSlotEntity{ + // ... +} + + +read, err := client.ApplySlotConfigurationSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ApproveOrRejectPrivateEndpointConnection` + +```go +ctx := context.TODO() +id := webapps.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "privateEndpointConnectionValue") + +payload := webapps.PrivateLinkConnectionApprovalRequestResource{ + // ... +} + + +if err := client.ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.ApproveOrRejectPrivateEndpointConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "privateEndpointConnectionValue") + +payload := webapps.PrivateLinkConnectionApprovalRequestResource{ + // ... +} + + +if err := client.ApproveOrRejectPrivateEndpointConnectionSlotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.Backup` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.BackupRequest{ + // ... +} + + +read, err := client.Backup(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.BackupSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.BackupRequest{ + // ... +} + + +read, err := client.BackupSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateDeployment` + +```go +ctx := context.TODO() +id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "deploymentValue") + +payload := webapps.Deployment{ + // ... +} + + +read, err := client.CreateDeployment(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateDeploymentSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "deploymentValue") + +payload := webapps.Deployment{ + // ... +} + + +read, err := client.CreateDeploymentSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateFunction` + +```go +ctx := context.TODO() +id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue") + +payload := webapps.FunctionEnvelope{ + // ... +} + + +if err := client.CreateFunctionThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.CreateInstanceFunctionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue") + +payload := webapps.FunctionEnvelope{ + // ... +} + + +if err := client.CreateInstanceFunctionSlotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.CreateInstanceMSDeployOperation` + +```go +ctx := context.TODO() +id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue") + +payload := webapps.MSDeploy{ + // ... +} + + +if err := client.CreateInstanceMSDeployOperationThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.CreateInstanceMSDeployOperationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue") + +payload := webapps.MSDeploy{ + // ... +} + + +if err := client.CreateInstanceMSDeployOperationSlotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.CreateMSDeployOperation` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.MSDeploy{ + // ... +} + + +if err := client.CreateMSDeployOperationThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.CreateMSDeployOperationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.MSDeploy{ + // ... +} + + +if err := client.CreateMSDeployOperationSlotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.CreateOneDeployOperation` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.CreateOneDeployOperation(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.Site{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateConfiguration` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SiteConfigResource{ + // ... +} + + +read, err := client.CreateOrUpdateConfiguration(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateConfigurationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.SiteConfigResource{ + // ... +} + + +read, err := client.CreateOrUpdateConfigurationSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateDomainOwnershipIdentifier` + +```go +ctx := context.TODO() +id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "domainOwnershipIdentifierValue") + +payload := webapps.Identifier{ + // ... +} + + +read, err := client.CreateOrUpdateDomainOwnershipIdentifier(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateDomainOwnershipIdentifierSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "domainOwnershipIdentifierValue") + +payload := webapps.Identifier{ + // ... +} + + +read, err := client.CreateOrUpdateDomainOwnershipIdentifierSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateFunctionSecret` + +```go +ctx := context.TODO() +id := webapps.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue", "keyValue") + +payload := webapps.KeyInfo{ + // ... +} + + +read, err := client.CreateOrUpdateFunctionSecret(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateFunctionSecretSlot` + +```go +ctx := context.TODO() +id := webapps.NewFunctionKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue", "keyValue") + +payload := webapps.KeyInfo{ + // ... +} + + +read, err := client.CreateOrUpdateFunctionSecretSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateHostNameBinding` + +```go +ctx := context.TODO() +id := webapps.NewHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hostNameBindingValue") + +payload := webapps.HostNameBinding{ + // ... +} + + +read, err := client.CreateOrUpdateHostNameBinding(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateHostNameBindingSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hostNameBindingValue") + +payload := webapps.HostNameBinding{ + // ... +} + + +read, err := client.CreateOrUpdateHostNameBindingSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateHostSecret` + +```go +ctx := context.TODO() +id := webapps.NewDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "defaultValue", "keyValue") + +payload := webapps.KeyInfo{ + // ... +} + + +read, err := client.CreateOrUpdateHostSecret(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateHostSecretSlot` + +```go +ctx := context.TODO() +id := webapps.NewHostDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "defaultValue", "keyValue") + +payload := webapps.KeyInfo{ + // ... +} + + +read, err := client.CreateOrUpdateHostSecretSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateHybridConnection` + +```go +ctx := context.TODO() +id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionNamespaceValue", "relayValue") + +payload := webapps.HybridConnection{ + // ... +} + + +read, err := client.CreateOrUpdateHybridConnection(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateHybridConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionNamespaceValue", "relayValue") + +payload := webapps.HybridConnection{ + // ... +} + + +read, err := client.CreateOrUpdateHybridConnectionSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdatePublicCertificate` + +```go +ctx := context.TODO() +id := webapps.NewPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "publicCertificateValue") + +payload := webapps.PublicCertificate{ + // ... +} + + +read, err := client.CreateOrUpdatePublicCertificate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdatePublicCertificateSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "publicCertificateValue") + +payload := webapps.PublicCertificate{ + // ... +} + + +read, err := client.CreateOrUpdatePublicCertificateSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateRelayServiceConnection` + +```go +ctx := context.TODO() +id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionValue") + +payload := webapps.RelayServiceConnectionEntity{ + // ... +} + + +read, err := client.CreateOrUpdateRelayServiceConnection(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateRelayServiceConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionValue") + +payload := webapps.RelayServiceConnectionEntity{ + // ... +} + + +read, err := client.CreateOrUpdateRelayServiceConnectionSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.Site{ + // ... +} + + +if err := client.CreateOrUpdateSlotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateSourceControl` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SiteSourceControl{ + // ... +} + + +if err := client.CreateOrUpdateSourceControlThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateSourceControlSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.SiteSourceControl{ + // ... +} + + +if err := client.CreateOrUpdateSourceControlSlotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SwiftVirtualNetwork{ + // ... +} + + +read, err := client.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.SwiftVirtualNetwork{ + // ... +} + + +read, err := client.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateVnetConnection` + +```go +ctx := context.TODO() +id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue") + +payload := webapps.VnetInfoResource{ + // ... +} + + +read, err := client.CreateOrUpdateVnetConnection(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateVnetConnectionGateway` + +```go +ctx := context.TODO() +id := webapps.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue", "gatewayValue") + +payload := webapps.VnetGateway{ + // ... +} + + +read, err := client.CreateOrUpdateVnetConnectionGateway(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateVnetConnectionGatewaySlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue", "gatewayValue") + +payload := webapps.VnetGateway{ + // ... +} + + +read, err := client.CreateOrUpdateVnetConnectionGatewaySlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.CreateOrUpdateVnetConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue") + +payload := webapps.VnetInfoResource{ + // ... +} + + +read, err := client.CreateOrUpdateVnetConnectionSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.Delete` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.Delete(ctx, id, webapps.DefaultDeleteOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteBackup` + +```go +ctx := context.TODO() +id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "backupIdValue") + +read, err := client.DeleteBackup(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteBackupConfiguration` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.DeleteBackupConfiguration(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteBackupConfigurationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.DeleteBackupConfigurationSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteBackupSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "backupIdValue") + +read, err := client.DeleteBackupSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteContinuousWebJob` + +```go +ctx := context.TODO() +id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "continuousWebJobValue") + +read, err := client.DeleteContinuousWebJob(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteContinuousWebJobSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "continuousWebJobValue") + +read, err := client.DeleteContinuousWebJobSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteDeployment` + +```go +ctx := context.TODO() +id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "deploymentValue") + +read, err := client.DeleteDeployment(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteDeploymentSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "deploymentValue") + +read, err := client.DeleteDeploymentSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteDomainOwnershipIdentifier` + +```go +ctx := context.TODO() +id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "domainOwnershipIdentifierValue") + +read, err := client.DeleteDomainOwnershipIdentifier(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteDomainOwnershipIdentifierSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "domainOwnershipIdentifierValue") + +read, err := client.DeleteDomainOwnershipIdentifierSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteFunction` + +```go +ctx := context.TODO() +id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue") + +read, err := client.DeleteFunction(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteFunctionSecret` + +```go +ctx := context.TODO() +id := webapps.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue", "keyValue") + +read, err := client.DeleteFunctionSecret(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteFunctionSecretSlot` + +```go +ctx := context.TODO() +id := webapps.NewFunctionKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue", "keyValue") + +read, err := client.DeleteFunctionSecretSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteHostNameBinding` + +```go +ctx := context.TODO() +id := webapps.NewHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hostNameBindingValue") + +read, err := client.DeleteHostNameBinding(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteHostNameBindingSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hostNameBindingValue") + +read, err := client.DeleteHostNameBindingSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteHostSecret` + +```go +ctx := context.TODO() +id := webapps.NewDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "defaultValue", "keyValue") + +read, err := client.DeleteHostSecret(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteHostSecretSlot` + +```go +ctx := context.TODO() +id := webapps.NewHostDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "defaultValue", "keyValue") + +read, err := client.DeleteHostSecretSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteHybridConnection` + +```go +ctx := context.TODO() +id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionNamespaceValue", "relayValue") + +read, err := client.DeleteHybridConnection(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteHybridConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionNamespaceValue", "relayValue") + +read, err := client.DeleteHybridConnectionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteInstanceFunctionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue") + +read, err := client.DeleteInstanceFunctionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteInstanceProcess` + +```go +ctx := context.TODO() +id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue") + +read, err := client.DeleteInstanceProcess(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteInstanceProcessSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue") + +read, err := client.DeleteInstanceProcessSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeletePremierAddOn` + +```go +ctx := context.TODO() +id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "premierAddonValue") + +read, err := client.DeletePremierAddOn(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeletePremierAddOnSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "premierAddonValue") + +read, err := client.DeletePremierAddOnSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeletePrivateEndpointConnection` + +```go +ctx := context.TODO() +id := webapps.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "privateEndpointConnectionValue") + +if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.DeletePrivateEndpointConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "privateEndpointConnectionValue") + +if err := client.DeletePrivateEndpointConnectionSlotThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.DeleteProcess` + +```go +ctx := context.TODO() +id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue") + +read, err := client.DeleteProcess(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteProcessSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue") + +read, err := client.DeleteProcessSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeletePublicCertificate` + +```go +ctx := context.TODO() +id := webapps.NewPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "publicCertificateValue") + +read, err := client.DeletePublicCertificate(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeletePublicCertificateSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "publicCertificateValue") + +read, err := client.DeletePublicCertificateSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteRelayServiceConnection` + +```go +ctx := context.TODO() +id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionValue") + +read, err := client.DeleteRelayServiceConnection(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteRelayServiceConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionValue") + +read, err := client.DeleteRelayServiceConnectionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteSiteExtension` + +```go +ctx := context.TODO() +id := webapps.NewSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "siteExtensionIdValue") + +read, err := client.DeleteSiteExtension(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteSiteExtensionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "siteExtensionIdValue") + +read, err := client.DeleteSiteExtensionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.DeleteSlot(ctx, id, webapps.DefaultDeleteSlotOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteSourceControl` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.DeleteSourceControl(ctx, id, webapps.DefaultDeleteSourceControlOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteSourceControlSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.DeleteSourceControlSlot(ctx, id, webapps.DefaultDeleteSourceControlSlotOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteSwiftVirtualNetwork` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.DeleteSwiftVirtualNetwork(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteSwiftVirtualNetworkSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.DeleteSwiftVirtualNetworkSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteTriggeredWebJob` + +```go +ctx := context.TODO() +id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "triggeredWebJobValue") + +read, err := client.DeleteTriggeredWebJob(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteTriggeredWebJobSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "triggeredWebJobValue") + +read, err := client.DeleteTriggeredWebJobSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteVnetConnection` + +```go +ctx := context.TODO() +id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue") + +read, err := client.DeleteVnetConnection(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeleteVnetConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue") + +read, err := client.DeleteVnetConnectionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeployWorkflowArtifacts` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.WorkflowArtifacts{ + // ... +} + + +read, err := client.DeployWorkflowArtifacts(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DeployWorkflowArtifactsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.WorkflowArtifacts{ + // ... +} + + +read, err := client.DeployWorkflowArtifactsSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DiscoverBackup` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.RestoreRequest{ + // ... +} + + +read, err := client.DiscoverBackup(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.DiscoverBackupSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.RestoreRequest{ + // ... +} + + +read, err := client.DiscoverBackupSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GenerateNewSitePublishingPassword` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GenerateNewSitePublishingPassword(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GenerateNewSitePublishingPasswordSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GenerateNewSitePublishingPasswordSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.Get` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetAppSettingKeyVaultReference` + +```go +ctx := context.TODO() +id := webapps.NewAppSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "appSettingKeyValue") + +read, err := client.GetAppSettingKeyVaultReference(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetAppSettingKeyVaultReferenceSlot` + +```go +ctx := context.TODO() +id := webapps.NewConfigReferenceAppSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "appSettingKeyValue") + +read, err := client.GetAppSettingKeyVaultReferenceSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetAppSettingsKeyVaultReferences` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.GetAppSettingsKeyVaultReferences(ctx, id)` can be used to do batched pagination +items, err := client.GetAppSettingsKeyVaultReferencesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.GetAppSettingsKeyVaultReferencesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.GetAppSettingsKeyVaultReferencesSlot(ctx, id)` can be used to do batched pagination +items, err := client.GetAppSettingsKeyVaultReferencesSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.GetAuthSettings` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetAuthSettings(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetAuthSettingsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetAuthSettingsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetAuthSettingsV2` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetAuthSettingsV2(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetAuthSettingsV2Slot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetAuthSettingsV2Slot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetAuthSettingsV2WithoutSecrets` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetAuthSettingsV2WithoutSecrets(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetAuthSettingsV2WithoutSecretsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetAuthSettingsV2WithoutSecretsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetBackupConfiguration` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetBackupConfiguration(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetBackupConfigurationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetBackupConfigurationSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetBackupStatus` + +```go +ctx := context.TODO() +id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "backupIdValue") + +read, err := client.GetBackupStatus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetBackupStatusSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "backupIdValue") + +read, err := client.GetBackupStatusSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetConfiguration` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetConfiguration(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetConfigurationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetConfigurationSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetConfigurationSnapshot` + +```go +ctx := context.TODO() +id := webapps.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "snapshotIdValue") + +read, err := client.GetConfigurationSnapshot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetConfigurationSnapshotSlot` + +```go +ctx := context.TODO() +id := webapps.NewWebSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "snapshotIdValue") + +read, err := client.GetConfigurationSnapshotSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetContainerLogsZip` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetContainerLogsZip(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetContainerLogsZipSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetContainerLogsZipSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetContinuousWebJob` + +```go +ctx := context.TODO() +id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "continuousWebJobValue") + +read, err := client.GetContinuousWebJob(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetContinuousWebJobSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "continuousWebJobValue") + +read, err := client.GetContinuousWebJobSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetDeployment` + +```go +ctx := context.TODO() +id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "deploymentValue") + +read, err := client.GetDeployment(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetDeploymentSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "deploymentValue") + +read, err := client.GetDeploymentSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetDiagnosticLogsConfiguration` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetDiagnosticLogsConfiguration(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetDiagnosticLogsConfigurationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetDiagnosticLogsConfigurationSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetDomainOwnershipIdentifier` + +```go +ctx := context.TODO() +id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "domainOwnershipIdentifierValue") + +read, err := client.GetDomainOwnershipIdentifier(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetDomainOwnershipIdentifierSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "domainOwnershipIdentifierValue") + +read, err := client.GetDomainOwnershipIdentifierSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetFtpAllowed` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetFtpAllowed(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetFtpAllowedSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetFtpAllowedSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetFunction` + +```go +ctx := context.TODO() +id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue") + +read, err := client.GetFunction(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetFunctionsAdminToken` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetFunctionsAdminToken(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetFunctionsAdminTokenSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetFunctionsAdminTokenSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetHostNameBinding` + +```go +ctx := context.TODO() +id := webapps.NewHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hostNameBindingValue") + +read, err := client.GetHostNameBinding(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetHostNameBindingSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hostNameBindingValue") + +read, err := client.GetHostNameBindingSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetHybridConnection` + +```go +ctx := context.TODO() +id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionNamespaceValue", "relayValue") + +read, err := client.GetHybridConnection(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetHybridConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionNamespaceValue", "relayValue") + +read, err := client.GetHybridConnectionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceFunctionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue") + +read, err := client.GetInstanceFunctionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceInfo` + +```go +ctx := context.TODO() +id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue") + +read, err := client.GetInstanceInfo(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceInfoSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue") + +read, err := client.GetInstanceInfoSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceMSDeployLog` + +```go +ctx := context.TODO() +id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue") + +read, err := client.GetInstanceMSDeployLog(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceMSDeployLogSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue") + +read, err := client.GetInstanceMSDeployLogSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceMsDeployStatus` + +```go +ctx := context.TODO() +id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue") + +read, err := client.GetInstanceMsDeployStatus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceMsDeployStatusSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue") + +read, err := client.GetInstanceMsDeployStatusSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceProcess` + +```go +ctx := context.TODO() +id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue") + +read, err := client.GetInstanceProcess(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceProcessDump` + +```go +ctx := context.TODO() +id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue") + +read, err := client.GetInstanceProcessDump(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceProcessDumpSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue") + +read, err := client.GetInstanceProcessDumpSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceProcessModule` + +```go +ctx := context.TODO() +id := webapps.NewInstanceProcessModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue", "moduleValue") + +read, err := client.GetInstanceProcessModule(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceProcessModuleSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotInstanceProcessModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue", "moduleValue") + +read, err := client.GetInstanceProcessModuleSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceProcessSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue") + +read, err := client.GetInstanceProcessSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetInstanceWorkflowSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "workflowValue") + +read, err := client.GetInstanceWorkflowSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetMSDeployLog` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetMSDeployLog(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetMSDeployLogSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetMSDeployLogSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetMSDeployStatus` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetMSDeployStatus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetMSDeployStatusSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetMSDeployStatusSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetMigrateMySqlStatus` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetMigrateMySqlStatus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetMigrateMySqlStatusSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetMigrateMySqlStatusSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetNetworkTraces` + +```go +ctx := context.TODO() +id := webapps.NewNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "operationIdValue") + +read, err := client.GetNetworkTraces(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetNetworkTracesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "operationIdValue") + +read, err := client.GetNetworkTracesSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetNetworkTracesSlotV2` + +```go +ctx := context.TODO() +id := webapps.NewSiteSlotNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "operationIdValue") + +read, err := client.GetNetworkTracesSlotV2(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetNetworkTracesV2` + +```go +ctx := context.TODO() +id := webapps.NewSiteNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "operationIdValue") + +read, err := client.GetNetworkTracesV2(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetOneDeployStatus` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetOneDeployStatus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetPremierAddOn` + +```go +ctx := context.TODO() +id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "premierAddonValue") + +read, err := client.GetPremierAddOn(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetPremierAddOnSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "premierAddonValue") + +read, err := client.GetPremierAddOnSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetPrivateAccess` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetPrivateAccess(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetPrivateAccessSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetPrivateAccessSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetPrivateEndpointConnection` + +```go +ctx := context.TODO() +id := webapps.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "privateEndpointConnectionValue") + +read, err := client.GetPrivateEndpointConnection(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetPrivateEndpointConnectionList` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.GetPrivateEndpointConnectionList(ctx, id)` can be used to do batched pagination +items, err := client.GetPrivateEndpointConnectionListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.GetPrivateEndpointConnectionListSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.GetPrivateEndpointConnectionListSlot(ctx, id)` can be used to do batched pagination +items, err := client.GetPrivateEndpointConnectionListSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.GetPrivateEndpointConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "privateEndpointConnectionValue") + +read, err := client.GetPrivateEndpointConnectionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetPrivateLinkResources` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetPrivateLinkResources(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetPrivateLinkResourcesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetPrivateLinkResourcesSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetProcess` + +```go +ctx := context.TODO() +id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue") + +read, err := client.GetProcess(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetProcessDump` + +```go +ctx := context.TODO() +id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue") + +read, err := client.GetProcessDump(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetProcessDumpSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue") + +read, err := client.GetProcessDumpSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetProcessModule` + +```go +ctx := context.TODO() +id := webapps.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue", "moduleValue") + +read, err := client.GetProcessModule(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetProcessModuleSlot` + +```go +ctx := context.TODO() +id := webapps.NewProcessModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue", "moduleValue") + +read, err := client.GetProcessModuleSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetProcessSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue") + +read, err := client.GetProcessSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetPublicCertificate` + +```go +ctx := context.TODO() +id := webapps.NewPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "publicCertificateValue") + +read, err := client.GetPublicCertificate(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetPublicCertificateSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "publicCertificateValue") + +read, err := client.GetPublicCertificateSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetRelayServiceConnection` + +```go +ctx := context.TODO() +id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionValue") + +read, err := client.GetRelayServiceConnection(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetRelayServiceConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionValue") + +read, err := client.GetRelayServiceConnectionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetScmAllowed` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetScmAllowed(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetScmAllowedSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetScmAllowedSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetSiteConnectionStringKeyVaultReference` + +```go +ctx := context.TODO() +id := webapps.NewConnectionStringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "connectionStringKeyValue") + +read, err := client.GetSiteConnectionStringKeyVaultReference(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetSiteConnectionStringKeyVaultReferenceSlot` + +```go +ctx := context.TODO() +id := webapps.NewConfigReferenceConnectionStringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "connectionStringKeyValue") + +read, err := client.GetSiteConnectionStringKeyVaultReferenceSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetSiteConnectionStringKeyVaultReferences` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.GetSiteConnectionStringKeyVaultReferences(ctx, id)` can be used to do batched pagination +items, err := client.GetSiteConnectionStringKeyVaultReferencesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.GetSiteConnectionStringKeyVaultReferencesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.GetSiteConnectionStringKeyVaultReferencesSlot(ctx, id)` can be used to do batched pagination +items, err := client.GetSiteConnectionStringKeyVaultReferencesSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.GetSiteExtension` + +```go +ctx := context.TODO() +id := webapps.NewSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "siteExtensionIdValue") + +read, err := client.GetSiteExtension(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetSiteExtensionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "siteExtensionIdValue") + +read, err := client.GetSiteExtensionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetSitePhpErrorLogFlag` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetSitePhpErrorLogFlag(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetSitePhpErrorLogFlagSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetSitePhpErrorLogFlagSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetSourceControl` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetSourceControl(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetSourceControlSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetSourceControlSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetSwiftVirtualNetworkConnection` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetSwiftVirtualNetworkConnection(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetSwiftVirtualNetworkConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetSwiftVirtualNetworkConnectionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetTriggeredWebJob` + +```go +ctx := context.TODO() +id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "triggeredWebJobValue") + +read, err := client.GetTriggeredWebJob(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetTriggeredWebJobHistory` + +```go +ctx := context.TODO() +id := webapps.NewHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "triggeredWebJobValue", "historyValue") + +read, err := client.GetTriggeredWebJobHistory(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetTriggeredWebJobHistorySlot` + +```go +ctx := context.TODO() +id := webapps.NewTriggeredWebJobHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "triggeredWebJobValue", "historyValue") + +read, err := client.GetTriggeredWebJobHistorySlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetTriggeredWebJobSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "triggeredWebJobValue") + +read, err := client.GetTriggeredWebJobSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetVnetConnection` + +```go +ctx := context.TODO() +id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue") + +read, err := client.GetVnetConnection(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetVnetConnectionGateway` + +```go +ctx := context.TODO() +id := webapps.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue", "gatewayValue") + +read, err := client.GetVnetConnectionGateway(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetVnetConnectionGatewaySlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue", "gatewayValue") + +read, err := client.GetVnetConnectionGatewaySlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetVnetConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue") + +read, err := client.GetVnetConnectionSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetWebJob` + +```go +ctx := context.TODO() +id := webapps.NewWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "webJobValue") + +read, err := client.GetWebJob(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetWebJobSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "webJobValue") + +read, err := client.GetWebJobSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetWebSiteContainerLogs` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.GetWebSiteContainerLogs(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetWebSiteContainerLogsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.GetWebSiteContainerLogsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.GetWorkflow` + +```go +ctx := context.TODO() +id := webapps.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "workflowValue") + +read, err := client.GetWorkflow(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.InstallSiteExtension` + +```go +ctx := context.TODO() +id := webapps.NewSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "siteExtensionIdValue") + +if err := client.InstallSiteExtensionThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.InstallSiteExtensionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "siteExtensionIdValue") + +if err := client.InstallSiteExtensionSlotThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.IsCloneable` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.IsCloneable(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.IsCloneableSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.IsCloneableSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.List` + +```go +ctx := context.TODO() +id := webapps.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListApplicationSettings` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListApplicationSettings(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListApplicationSettingsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListApplicationSettingsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListAzureStorageAccounts` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListAzureStorageAccounts(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListAzureStorageAccountsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListAzureStorageAccountsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListBackupStatusSecrets` + +```go +ctx := context.TODO() +id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "backupIdValue") + +payload := webapps.BackupRequest{ + // ... +} + + +read, err := client.ListBackupStatusSecrets(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListBackupStatusSecretsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "backupIdValue") + +payload := webapps.BackupRequest{ + // ... +} + + +read, err := client.ListBackupStatusSecretsSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListBackups` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListBackups(ctx, id)` can be used to do batched pagination +items, err := client.ListBackupsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListBackupsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListBackupsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListBackupsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListBasicPublishingCredentialsPolicies` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListBasicPublishingCredentialsPolicies(ctx, id)` can be used to do batched pagination +items, err := client.ListBasicPublishingCredentialsPoliciesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListBasicPublishingCredentialsPoliciesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListBasicPublishingCredentialsPoliciesSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListBasicPublishingCredentialsPoliciesSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := webapps.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id, webapps.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id, webapps.DefaultListByResourceGroupOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListConfigurationSnapshotInfo` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListConfigurationSnapshotInfo(ctx, id)` can be used to do batched pagination +items, err := client.ListConfigurationSnapshotInfoComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListConfigurationSnapshotInfoSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListConfigurationSnapshotInfoSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListConfigurationSnapshotInfoSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListConfigurations` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListConfigurations(ctx, id)` can be used to do batched pagination +items, err := client.ListConfigurationsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListConfigurationsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListConfigurationsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListConfigurationsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListConnectionStrings` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListConnectionStrings(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListConnectionStringsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListConnectionStringsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListContinuousWebJobs` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListContinuousWebJobs(ctx, id)` can be used to do batched pagination +items, err := client.ListContinuousWebJobsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListContinuousWebJobsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListContinuousWebJobsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListContinuousWebJobsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListDeploymentLog` + +```go +ctx := context.TODO() +id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "deploymentValue") + +read, err := client.ListDeploymentLog(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListDeploymentLogSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "deploymentValue") + +read, err := client.ListDeploymentLogSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListDeployments` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListDeployments(ctx, id)` can be used to do batched pagination +items, err := client.ListDeploymentsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListDeploymentsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListDeploymentsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListDeploymentsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListDomainOwnershipIdentifiers` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListDomainOwnershipIdentifiers(ctx, id)` can be used to do batched pagination +items, err := client.ListDomainOwnershipIdentifiersComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListDomainOwnershipIdentifiersSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListDomainOwnershipIdentifiersSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListDomainOwnershipIdentifiersSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListFunctionKeys` + +```go +ctx := context.TODO() +id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue") + +read, err := client.ListFunctionKeys(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListFunctionKeysSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue") + +read, err := client.ListFunctionKeysSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListFunctionSecrets` + +```go +ctx := context.TODO() +id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue") + +read, err := client.ListFunctionSecrets(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListFunctionSecretsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue") + +read, err := client.ListFunctionSecretsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListFunctions` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListFunctions(ctx, id)` can be used to do batched pagination +items, err := client.ListFunctionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListHostKeys` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListHostKeys(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListHostKeysSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListHostKeysSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListHostNameBindings` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListHostNameBindings(ctx, id)` can be used to do batched pagination +items, err := client.ListHostNameBindingsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListHostNameBindingsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListHostNameBindingsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListHostNameBindingsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListHybridConnections` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListHybridConnections(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListHybridConnectionsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListHybridConnectionsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListInstanceFunctionsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListInstanceFunctionsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListInstanceFunctionsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListInstanceIdentifiers` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListInstanceIdentifiers(ctx, id)` can be used to do batched pagination +items, err := client.ListInstanceIdentifiersComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListInstanceIdentifiersSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListInstanceIdentifiersSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListInstanceIdentifiersSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListInstanceProcessModules` + +```go +ctx := context.TODO() +id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue") + +// alternatively `client.ListInstanceProcessModules(ctx, id)` can be used to do batched pagination +items, err := client.ListInstanceProcessModulesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListInstanceProcessModulesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue") + +// alternatively `client.ListInstanceProcessModulesSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListInstanceProcessModulesSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListInstanceProcessThreads` + +```go +ctx := context.TODO() +id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue") + +// alternatively `client.ListInstanceProcessThreads(ctx, id)` can be used to do batched pagination +items, err := client.ListInstanceProcessThreadsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListInstanceProcessThreadsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue") + +// alternatively `client.ListInstanceProcessThreadsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListInstanceProcessThreadsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListInstanceProcesses` + +```go +ctx := context.TODO() +id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue") + +// alternatively `client.ListInstanceProcesses(ctx, id)` can be used to do batched pagination +items, err := client.ListInstanceProcessesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListInstanceProcessesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue") + +// alternatively `client.ListInstanceProcessesSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListInstanceProcessesSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListInstanceWorkflowsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListInstanceWorkflowsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListInstanceWorkflowsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListMetadata` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListMetadata(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListMetadataSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListMetadataSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListNetworkFeatures` + +```go +ctx := context.TODO() +id := webapps.NewNetworkFeatureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "networkFeatureValue") + +read, err := client.ListNetworkFeatures(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListNetworkFeaturesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotNetworkFeatureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "networkFeatureValue") + +read, err := client.ListNetworkFeaturesSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListPerfMonCounters` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListPerfMonCounters(ctx, id, webapps.DefaultListPerfMonCountersOperationOptions())` can be used to do batched pagination +items, err := client.ListPerfMonCountersComplete(ctx, id, webapps.DefaultListPerfMonCountersOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListPerfMonCountersSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListPerfMonCountersSlot(ctx, id, webapps.DefaultListPerfMonCountersSlotOperationOptions())` can be used to do batched pagination +items, err := client.ListPerfMonCountersSlotComplete(ctx, id, webapps.DefaultListPerfMonCountersSlotOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListPremierAddOns` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListPremierAddOns(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListPremierAddOnsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListPremierAddOnsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListProcessModules` + +```go +ctx := context.TODO() +id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue") + +// alternatively `client.ListProcessModules(ctx, id)` can be used to do batched pagination +items, err := client.ListProcessModulesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListProcessModulesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue") + +// alternatively `client.ListProcessModulesSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListProcessModulesSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListProcessThreads` + +```go +ctx := context.TODO() +id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue") + +// alternatively `client.ListProcessThreads(ctx, id)` can be used to do batched pagination +items, err := client.ListProcessThreadsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListProcessThreadsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue") + +// alternatively `client.ListProcessThreadsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListProcessThreadsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListProcesses` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListProcesses(ctx, id)` can be used to do batched pagination +items, err := client.ListProcessesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListProcessesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListProcessesSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListProcessesSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListProductionSiteDeploymentStatuses` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListProductionSiteDeploymentStatuses(ctx, id)` can be used to do batched pagination +items, err := client.ListProductionSiteDeploymentStatusesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListPublicCertificates` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListPublicCertificates(ctx, id)` can be used to do batched pagination +items, err := client.ListPublicCertificatesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListPublicCertificatesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListPublicCertificatesSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListPublicCertificatesSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListPublishingCredentials` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +if err := client.ListPublishingCredentialsThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.ListPublishingCredentialsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +if err := client.ListPublishingCredentialsSlotThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.ListPublishingProfileXmlWithSecrets` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.CsmPublishingProfileOptions{ + // ... +} + + +read, err := client.ListPublishingProfileXmlWithSecrets(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListPublishingProfileXmlWithSecretsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.CsmPublishingProfileOptions{ + // ... +} + + +read, err := client.ListPublishingProfileXmlWithSecretsSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListRelayServiceConnections` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListRelayServiceConnections(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListRelayServiceConnectionsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListRelayServiceConnectionsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListSiteBackups` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListSiteBackups(ctx, id)` can be used to do batched pagination +items, err := client.ListSiteBackupsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSiteBackupsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListSiteBackupsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListSiteBackupsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSiteExtensions` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListSiteExtensions(ctx, id)` can be used to do batched pagination +items, err := client.ListSiteExtensionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSiteExtensionsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListSiteExtensionsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListSiteExtensionsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSitePushSettings` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListSitePushSettings(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListSitePushSettingsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListSitePushSettingsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListSlotConfigurationNames` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListSlotConfigurationNames(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListSlotDifferencesFromProduction` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.CsmSlotEntity{ + // ... +} + + +// alternatively `client.ListSlotDifferencesFromProduction(ctx, id, payload)` can be used to do batched pagination +items, err := client.ListSlotDifferencesFromProductionComplete(ctx, id, payload) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSlotDifferencesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.CsmSlotEntity{ + // ... +} + + +// alternatively `client.ListSlotDifferencesSlot(ctx, id, payload)` can be used to do batched pagination +items, err := client.ListSlotDifferencesSlotComplete(ctx, id, payload) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSlotSiteDeploymentStatusesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListSlotSiteDeploymentStatusesSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListSlotSiteDeploymentStatusesSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSlots` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListSlots(ctx, id)` can be used to do batched pagination +items, err := client.ListSlotsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSnapshots` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListSnapshots(ctx, id)` can be used to do batched pagination +items, err := client.ListSnapshotsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSnapshotsFromDRSecondary` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListSnapshotsFromDRSecondary(ctx, id)` can be used to do batched pagination +items, err := client.ListSnapshotsFromDRSecondaryComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSnapshotsFromDRSecondarySlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListSnapshotsFromDRSecondarySlot(ctx, id)` can be used to do batched pagination +items, err := client.ListSnapshotsFromDRSecondarySlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSnapshotsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListSnapshotsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListSnapshotsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListSyncFunctionTriggers` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListSyncFunctionTriggers(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListSyncFunctionTriggersSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListSyncFunctionTriggersSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListSyncStatus` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListSyncStatus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListSyncStatusSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListSyncStatusSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListTriggeredWebJobHistory` + +```go +ctx := context.TODO() +id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "triggeredWebJobValue") + +// alternatively `client.ListTriggeredWebJobHistory(ctx, id)` can be used to do batched pagination +items, err := client.ListTriggeredWebJobHistoryComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListTriggeredWebJobHistorySlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "triggeredWebJobValue") + +// alternatively `client.ListTriggeredWebJobHistorySlot(ctx, id)` can be used to do batched pagination +items, err := client.ListTriggeredWebJobHistorySlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListTriggeredWebJobs` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListTriggeredWebJobs(ctx, id)` can be used to do batched pagination +items, err := client.ListTriggeredWebJobsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListTriggeredWebJobsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListTriggeredWebJobsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListTriggeredWebJobsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListUsages` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListUsages(ctx, id, webapps.DefaultListUsagesOperationOptions())` can be used to do batched pagination +items, err := client.ListUsagesComplete(ctx, id, webapps.DefaultListUsagesOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListUsagesSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListUsagesSlot(ctx, id, webapps.DefaultListUsagesSlotOperationOptions())` can be used to do batched pagination +items, err := client.ListUsagesSlotComplete(ctx, id, webapps.DefaultListUsagesSlotOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListVnetConnections` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListVnetConnections(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListVnetConnectionsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListVnetConnectionsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListWebJobs` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListWebJobs(ctx, id)` can be used to do batched pagination +items, err := client.ListWebJobsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListWebJobsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +// alternatively `client.ListWebJobsSlot(ctx, id)` can be used to do batched pagination +items, err := client.ListWebJobsSlotComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListWorkflows` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +// alternatively `client.ListWorkflows(ctx, id)` can be used to do batched pagination +items, err := client.ListWorkflowsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebAppsClient.ListWorkflowsConnections` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ListWorkflowsConnections(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ListWorkflowsConnectionsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ListWorkflowsConnectionsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.MigrateMySql` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.MigrateMySqlRequest{ + // ... +} + + +if err := client.MigrateMySqlThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.MigrateStorage` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.StorageMigrationOptions{ + // ... +} + + +if err := client.MigrateStorageThenPoll(ctx, id, payload, webapps.DefaultMigrateStorageOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.PutPrivateAccessVnet` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.PrivateAccess{ + // ... +} + + +read, err := client.PutPrivateAccessVnet(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.PutPrivateAccessVnetSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.PrivateAccess{ + // ... +} + + +read, err := client.PutPrivateAccessVnetSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.RecoverSiteConfigurationSnapshot` + +```go +ctx := context.TODO() +id := webapps.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "snapshotIdValue") + +read, err := client.RecoverSiteConfigurationSnapshot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.RecoverSiteConfigurationSnapshotSlot` + +```go +ctx := context.TODO() +id := webapps.NewWebSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "snapshotIdValue") + +read, err := client.RecoverSiteConfigurationSnapshotSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ResetProductionSlotConfig` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.ResetProductionSlotConfig(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.ResetSlotConfigurationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.ResetSlotConfigurationSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.Restart` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.Restart(ctx, id, webapps.DefaultRestartOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.RestartSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.RestartSlot(ctx, id, webapps.DefaultRestartSlotOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.Restore` + +```go +ctx := context.TODO() +id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "backupIdValue") + +payload := webapps.RestoreRequest{ + // ... +} + + +if err := client.RestoreThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.RestoreFromBackupBlob` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.RestoreRequest{ + // ... +} + + +if err := client.RestoreFromBackupBlobThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.RestoreFromBackupBlobSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.RestoreRequest{ + // ... +} + + +if err := client.RestoreFromBackupBlobSlotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.RestoreFromDeletedApp` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.DeletedAppRestoreRequest{ + // ... +} + + +if err := client.RestoreFromDeletedAppThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.RestoreFromDeletedAppSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.DeletedAppRestoreRequest{ + // ... +} + + +if err := client.RestoreFromDeletedAppSlotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.RestoreSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "backupIdValue") + +payload := webapps.RestoreRequest{ + // ... +} + + +if err := client.RestoreSlotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.RestoreSnapshot` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SnapshotRestoreRequest{ + // ... +} + + +if err := client.RestoreSnapshotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.RestoreSnapshotSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.SnapshotRestoreRequest{ + // ... +} + + +if err := client.RestoreSnapshotSlotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.RunTriggeredWebJob` + +```go +ctx := context.TODO() +id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "triggeredWebJobValue") + +read, err := client.RunTriggeredWebJob(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.RunTriggeredWebJobSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "triggeredWebJobValue") + +read, err := client.RunTriggeredWebJobSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.Start` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.Start(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StartContinuousWebJob` + +```go +ctx := context.TODO() +id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "continuousWebJobValue") + +read, err := client.StartContinuousWebJob(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StartContinuousWebJobSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "continuousWebJobValue") + +read, err := client.StartContinuousWebJobSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StartNetworkTrace` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +if err := client.StartNetworkTraceThenPoll(ctx, id, webapps.DefaultStartNetworkTraceOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.StartNetworkTraceSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +if err := client.StartNetworkTraceSlotThenPoll(ctx, id, webapps.DefaultStartNetworkTraceSlotOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.StartSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.StartSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StartWebSiteNetworkTrace` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.StartWebSiteNetworkTrace(ctx, id, webapps.DefaultStartWebSiteNetworkTraceOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StartWebSiteNetworkTraceOperation` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +if err := client.StartWebSiteNetworkTraceOperationThenPoll(ctx, id, webapps.DefaultStartWebSiteNetworkTraceOperationOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.StartWebSiteNetworkTraceOperationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +if err := client.StartWebSiteNetworkTraceOperationSlotThenPoll(ctx, id, webapps.DefaultStartWebSiteNetworkTraceOperationSlotOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.StartWebSiteNetworkTraceSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.StartWebSiteNetworkTraceSlot(ctx, id, webapps.DefaultStartWebSiteNetworkTraceSlotOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.Stop` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.Stop(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StopContinuousWebJob` + +```go +ctx := context.TODO() +id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "continuousWebJobValue") + +read, err := client.StopContinuousWebJob(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StopContinuousWebJobSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "continuousWebJobValue") + +read, err := client.StopContinuousWebJobSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StopNetworkTrace` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.StopNetworkTrace(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StopNetworkTraceSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.StopNetworkTraceSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StopSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.StopSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StopWebSiteNetworkTrace` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.StopWebSiteNetworkTrace(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.StopWebSiteNetworkTraceSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.StopWebSiteNetworkTraceSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.SwapSlotSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.CsmSlotEntity{ + // ... +} + + +if err := client.SwapSlotSlotThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.SwapSlotWithProduction` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.CsmSlotEntity{ + // ... +} + + +if err := client.SwapSlotWithProductionThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebAppsClient.SyncFunctionTriggers` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.SyncFunctionTriggers(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.SyncFunctionTriggersSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.SyncFunctionTriggersSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.SyncFunctions` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.SyncFunctions(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.SyncFunctionsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.SyncFunctionsSlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.SyncRepository` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +read, err := client.SyncRepository(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.SyncRepositorySlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +read, err := client.SyncRepositorySlot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.Update` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SitePatchResource{ + // ... +} + + +read, err := client.Update(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateApplicationSettings` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.StringDictionary{ + // ... +} + + +read, err := client.UpdateApplicationSettings(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateApplicationSettingsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.StringDictionary{ + // ... +} + + +read, err := client.UpdateApplicationSettingsSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateAuthSettings` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SiteAuthSettings{ + // ... +} + + +read, err := client.UpdateAuthSettings(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateAuthSettingsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.SiteAuthSettings{ + // ... +} + + +read, err := client.UpdateAuthSettingsSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateAuthSettingsV2` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SiteAuthSettingsV2{ + // ... +} + + +read, err := client.UpdateAuthSettingsV2(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateAuthSettingsV2Slot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.SiteAuthSettingsV2{ + // ... +} + + +read, err := client.UpdateAuthSettingsV2Slot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateAzureStorageAccounts` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.AzureStoragePropertyDictionaryResource{ + // ... +} + + +read, err := client.UpdateAzureStorageAccounts(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateAzureStorageAccountsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.AzureStoragePropertyDictionaryResource{ + // ... +} + + +read, err := client.UpdateAzureStorageAccountsSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateBackupConfiguration` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.BackupRequest{ + // ... +} + + +read, err := client.UpdateBackupConfiguration(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateBackupConfigurationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.BackupRequest{ + // ... +} + + +read, err := client.UpdateBackupConfigurationSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateConfiguration` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SiteConfigResource{ + // ... +} + + +read, err := client.UpdateConfiguration(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateConfigurationSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.SiteConfigResource{ + // ... +} + + +read, err := client.UpdateConfigurationSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateConnectionStrings` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.ConnectionStringDictionary{ + // ... +} + + +read, err := client.UpdateConnectionStrings(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateConnectionStringsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.ConnectionStringDictionary{ + // ... +} + + +read, err := client.UpdateConnectionStringsSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateDiagnosticLogsConfig` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SiteLogsConfig{ + // ... +} + + +read, err := client.UpdateDiagnosticLogsConfig(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateDiagnosticLogsConfigSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.SiteLogsConfig{ + // ... +} + + +read, err := client.UpdateDiagnosticLogsConfigSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateDomainOwnershipIdentifier` + +```go +ctx := context.TODO() +id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "domainOwnershipIdentifierValue") + +payload := webapps.Identifier{ + // ... +} + + +read, err := client.UpdateDomainOwnershipIdentifier(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateDomainOwnershipIdentifierSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "domainOwnershipIdentifierValue") + +payload := webapps.Identifier{ + // ... +} + + +read, err := client.UpdateDomainOwnershipIdentifierSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateFtpAllowed` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.CsmPublishingCredentialsPoliciesEntity{ + // ... +} + + +read, err := client.UpdateFtpAllowed(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateFtpAllowedSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.CsmPublishingCredentialsPoliciesEntity{ + // ... +} + + +read, err := client.UpdateFtpAllowedSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateHybridConnection` + +```go +ctx := context.TODO() +id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionNamespaceValue", "relayValue") + +payload := webapps.HybridConnection{ + // ... +} + + +read, err := client.UpdateHybridConnection(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateHybridConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionNamespaceValue", "relayValue") + +payload := webapps.HybridConnection{ + // ... +} + + +read, err := client.UpdateHybridConnectionSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateMetadata` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.StringDictionary{ + // ... +} + + +read, err := client.UpdateMetadata(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateMetadataSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.StringDictionary{ + // ... +} + + +read, err := client.UpdateMetadataSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdatePremierAddOn` + +```go +ctx := context.TODO() +id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "premierAddonValue") + +payload := webapps.PremierAddOnPatchResource{ + // ... +} + + +read, err := client.UpdatePremierAddOn(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdatePremierAddOnSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "premierAddonValue") + +payload := webapps.PremierAddOnPatchResource{ + // ... +} + + +read, err := client.UpdatePremierAddOnSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateRelayServiceConnection` + +```go +ctx := context.TODO() +id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionValue") + +payload := webapps.RelayServiceConnectionEntity{ + // ... +} + + +read, err := client.UpdateRelayServiceConnection(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateRelayServiceConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionValue") + +payload := webapps.RelayServiceConnectionEntity{ + // ... +} + + +read, err := client.UpdateRelayServiceConnectionSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateScmAllowed` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.CsmPublishingCredentialsPoliciesEntity{ + // ... +} + + +read, err := client.UpdateScmAllowed(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateScmAllowedSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.CsmPublishingCredentialsPoliciesEntity{ + // ... +} + + +read, err := client.UpdateScmAllowedSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateSitePushSettings` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.PushSettings{ + // ... +} + + +read, err := client.UpdateSitePushSettings(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateSitePushSettingsSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.PushSettings{ + // ... +} + + +read, err := client.UpdateSitePushSettingsSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.SitePatchResource{ + // ... +} + + +read, err := client.UpdateSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateSlotConfigurationNames` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SlotConfigNamesResource{ + // ... +} + + +read, err := client.UpdateSlotConfigurationNames(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateSourceControl` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SiteSourceControl{ + // ... +} + + +read, err := client.UpdateSourceControl(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateSourceControlSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.SiteSourceControl{ + // ... +} + + +read, err := client.UpdateSourceControlSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateSwiftVirtualNetworkConnectionWithCheck` + +```go +ctx := context.TODO() +id := webapps.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") + +payload := webapps.SwiftVirtualNetwork{ + // ... +} + + +read, err := client.UpdateSwiftVirtualNetworkConnectionWithCheck(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateSwiftVirtualNetworkConnectionWithCheckSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") + +payload := webapps.SwiftVirtualNetwork{ + // ... +} + + +read, err := client.UpdateSwiftVirtualNetworkConnectionWithCheckSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateVnetConnection` + +```go +ctx := context.TODO() +id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue") + +payload := webapps.VnetInfoResource{ + // ... +} + + +read, err := client.UpdateVnetConnection(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateVnetConnectionGateway` + +```go +ctx := context.TODO() +id := webapps.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue", "gatewayValue") + +payload := webapps.VnetGateway{ + // ... +} + + +read, err := client.UpdateVnetConnectionGateway(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateVnetConnectionGatewaySlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue", "gatewayValue") + +payload := webapps.VnetGateway{ + // ... +} + + +read, err := client.UpdateVnetConnectionGatewaySlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebAppsClient.UpdateVnetConnectionSlot` + +```go +ctx := context.TODO() +id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue") + +payload := webapps.VnetInfoResource{ + // ... +} + + +read, err := client.UpdateVnetConnectionSlot(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/client.go new file mode 100644 index 000000000000..5b73caa6cf95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/client.go @@ -0,0 +1,26 @@ +package webapps + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebAppsClient struct { + Client *resourcemanager.Client +} + +func NewWebAppsClientWithBaseURI(sdkApi sdkEnv.Api) (*WebAppsClient, error) { + client, err := resourcemanager.NewResourceManagerClient(sdkApi, "webapps", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating WebAppsClient: %+v", err) + } + + return &WebAppsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/constants.go new file mode 100644 index 000000000000..ca3a1c859d09 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/constants.go @@ -0,0 +1,2496 @@ +package webapps + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoHealActionType string + +const ( + AutoHealActionTypeCustomAction AutoHealActionType = "CustomAction" + AutoHealActionTypeLogEvent AutoHealActionType = "LogEvent" + AutoHealActionTypeRecycle AutoHealActionType = "Recycle" +) + +func PossibleValuesForAutoHealActionType() []string { + return []string{ + string(AutoHealActionTypeCustomAction), + string(AutoHealActionTypeLogEvent), + string(AutoHealActionTypeRecycle), + } +} + +func (s *AutoHealActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAutoHealActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAutoHealActionType(input string) (*AutoHealActionType, error) { + vals := map[string]AutoHealActionType{ + "customaction": AutoHealActionTypeCustomAction, + "logevent": AutoHealActionTypeLogEvent, + "recycle": AutoHealActionTypeRecycle, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AutoHealActionType(input) + return &out, nil +} + +type AzureResourceType string + +const ( + AzureResourceTypeTrafficManager AzureResourceType = "TrafficManager" + AzureResourceTypeWebsite AzureResourceType = "Website" +) + +func PossibleValuesForAzureResourceType() []string { + return []string{ + string(AzureResourceTypeTrafficManager), + string(AzureResourceTypeWebsite), + } +} + +func (s *AzureResourceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureResourceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureResourceType(input string) (*AzureResourceType, error) { + vals := map[string]AzureResourceType{ + "trafficmanager": AzureResourceTypeTrafficManager, + "website": AzureResourceTypeWebsite, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureResourceType(input) + return &out, nil +} + +type AzureStorageState string + +const ( + AzureStorageStateInvalidCredentials AzureStorageState = "InvalidCredentials" + AzureStorageStateInvalidShare AzureStorageState = "InvalidShare" + AzureStorageStateNotValidated AzureStorageState = "NotValidated" + AzureStorageStateOk AzureStorageState = "Ok" +) + +func PossibleValuesForAzureStorageState() []string { + return []string{ + string(AzureStorageStateInvalidCredentials), + string(AzureStorageStateInvalidShare), + string(AzureStorageStateNotValidated), + string(AzureStorageStateOk), + } +} + +func (s *AzureStorageState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureStorageState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureStorageState(input string) (*AzureStorageState, error) { + vals := map[string]AzureStorageState{ + "invalidcredentials": AzureStorageStateInvalidCredentials, + "invalidshare": AzureStorageStateInvalidShare, + "notvalidated": AzureStorageStateNotValidated, + "ok": AzureStorageStateOk, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureStorageState(input) + return &out, nil +} + +type AzureStorageType string + +const ( + AzureStorageTypeAzureBlob AzureStorageType = "AzureBlob" + AzureStorageTypeAzureFiles AzureStorageType = "AzureFiles" +) + +func PossibleValuesForAzureStorageType() []string { + return []string{ + string(AzureStorageTypeAzureBlob), + string(AzureStorageTypeAzureFiles), + } +} + +func (s *AzureStorageType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureStorageType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureStorageType(input string) (*AzureStorageType, error) { + vals := map[string]AzureStorageType{ + "azureblob": AzureStorageTypeAzureBlob, + "azurefiles": AzureStorageTypeAzureFiles, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureStorageType(input) + return &out, nil +} + +type BackupItemStatus string + +const ( + BackupItemStatusCreated BackupItemStatus = "Created" + BackupItemStatusDeleteFailed BackupItemStatus = "DeleteFailed" + BackupItemStatusDeleteInProgress BackupItemStatus = "DeleteInProgress" + BackupItemStatusDeleted BackupItemStatus = "Deleted" + BackupItemStatusFailed BackupItemStatus = "Failed" + BackupItemStatusInProgress BackupItemStatus = "InProgress" + BackupItemStatusPartiallySucceeded BackupItemStatus = "PartiallySucceeded" + BackupItemStatusSkipped BackupItemStatus = "Skipped" + BackupItemStatusSucceeded BackupItemStatus = "Succeeded" + BackupItemStatusTimedOut BackupItemStatus = "TimedOut" +) + +func PossibleValuesForBackupItemStatus() []string { + return []string{ + string(BackupItemStatusCreated), + string(BackupItemStatusDeleteFailed), + string(BackupItemStatusDeleteInProgress), + string(BackupItemStatusDeleted), + string(BackupItemStatusFailed), + string(BackupItemStatusInProgress), + string(BackupItemStatusPartiallySucceeded), + string(BackupItemStatusSkipped), + string(BackupItemStatusSucceeded), + string(BackupItemStatusTimedOut), + } +} + +func (s *BackupItemStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBackupItemStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBackupItemStatus(input string) (*BackupItemStatus, error) { + vals := map[string]BackupItemStatus{ + "created": BackupItemStatusCreated, + "deletefailed": BackupItemStatusDeleteFailed, + "deleteinprogress": BackupItemStatusDeleteInProgress, + "deleted": BackupItemStatusDeleted, + "failed": BackupItemStatusFailed, + "inprogress": BackupItemStatusInProgress, + "partiallysucceeded": BackupItemStatusPartiallySucceeded, + "skipped": BackupItemStatusSkipped, + "succeeded": BackupItemStatusSucceeded, + "timedout": BackupItemStatusTimedOut, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BackupItemStatus(input) + return &out, nil +} + +type BackupRestoreOperationType string + +const ( + BackupRestoreOperationTypeClone BackupRestoreOperationType = "Clone" + BackupRestoreOperationTypeCloudFS BackupRestoreOperationType = "CloudFS" + BackupRestoreOperationTypeDefault BackupRestoreOperationType = "Default" + BackupRestoreOperationTypeRelocation BackupRestoreOperationType = "Relocation" + BackupRestoreOperationTypeSnapshot BackupRestoreOperationType = "Snapshot" +) + +func PossibleValuesForBackupRestoreOperationType() []string { + return []string{ + string(BackupRestoreOperationTypeClone), + string(BackupRestoreOperationTypeCloudFS), + string(BackupRestoreOperationTypeDefault), + string(BackupRestoreOperationTypeRelocation), + string(BackupRestoreOperationTypeSnapshot), + } +} + +func (s *BackupRestoreOperationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBackupRestoreOperationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBackupRestoreOperationType(input string) (*BackupRestoreOperationType, error) { + vals := map[string]BackupRestoreOperationType{ + "clone": BackupRestoreOperationTypeClone, + "cloudfs": BackupRestoreOperationTypeCloudFS, + "default": BackupRestoreOperationTypeDefault, + "relocation": BackupRestoreOperationTypeRelocation, + "snapshot": BackupRestoreOperationTypeSnapshot, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BackupRestoreOperationType(input) + return &out, nil +} + +type BuiltInAuthenticationProvider string + +const ( + BuiltInAuthenticationProviderAzureActiveDirectory BuiltInAuthenticationProvider = "AzureActiveDirectory" + BuiltInAuthenticationProviderFacebook BuiltInAuthenticationProvider = "Facebook" + BuiltInAuthenticationProviderGithub BuiltInAuthenticationProvider = "Github" + BuiltInAuthenticationProviderGoogle BuiltInAuthenticationProvider = "Google" + BuiltInAuthenticationProviderMicrosoftAccount BuiltInAuthenticationProvider = "MicrosoftAccount" + BuiltInAuthenticationProviderTwitter BuiltInAuthenticationProvider = "Twitter" +) + +func PossibleValuesForBuiltInAuthenticationProvider() []string { + return []string{ + string(BuiltInAuthenticationProviderAzureActiveDirectory), + string(BuiltInAuthenticationProviderFacebook), + string(BuiltInAuthenticationProviderGithub), + string(BuiltInAuthenticationProviderGoogle), + string(BuiltInAuthenticationProviderMicrosoftAccount), + string(BuiltInAuthenticationProviderTwitter), + } +} + +func (s *BuiltInAuthenticationProvider) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBuiltInAuthenticationProvider(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBuiltInAuthenticationProvider(input string) (*BuiltInAuthenticationProvider, error) { + vals := map[string]BuiltInAuthenticationProvider{ + "azureactivedirectory": BuiltInAuthenticationProviderAzureActiveDirectory, + "facebook": BuiltInAuthenticationProviderFacebook, + "github": BuiltInAuthenticationProviderGithub, + "google": BuiltInAuthenticationProviderGoogle, + "microsoftaccount": BuiltInAuthenticationProviderMicrosoftAccount, + "twitter": BuiltInAuthenticationProviderTwitter, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BuiltInAuthenticationProvider(input) + return &out, nil +} + +type ClientCertMode string + +const ( + ClientCertModeOptional ClientCertMode = "Optional" + ClientCertModeOptionalInteractiveUser ClientCertMode = "OptionalInteractiveUser" + ClientCertModeRequired ClientCertMode = "Required" +) + +func PossibleValuesForClientCertMode() []string { + return []string{ + string(ClientCertModeOptional), + string(ClientCertModeOptionalInteractiveUser), + string(ClientCertModeRequired), + } +} + +func (s *ClientCertMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseClientCertMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseClientCertMode(input string) (*ClientCertMode, error) { + vals := map[string]ClientCertMode{ + "optional": ClientCertModeOptional, + "optionalinteractiveuser": ClientCertModeOptionalInteractiveUser, + "required": ClientCertModeRequired, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ClientCertMode(input) + return &out, nil +} + +type ClientCredentialMethod string + +const ( + ClientCredentialMethodClientSecretPost ClientCredentialMethod = "ClientSecretPost" +) + +func PossibleValuesForClientCredentialMethod() []string { + return []string{ + string(ClientCredentialMethodClientSecretPost), + } +} + +func (s *ClientCredentialMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseClientCredentialMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseClientCredentialMethod(input string) (*ClientCredentialMethod, error) { + vals := map[string]ClientCredentialMethod{ + "clientsecretpost": ClientCredentialMethodClientSecretPost, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ClientCredentialMethod(input) + return &out, nil +} + +type CloneAbilityResult string + +const ( + CloneAbilityResultCloneable CloneAbilityResult = "Cloneable" + CloneAbilityResultNotCloneable CloneAbilityResult = "NotCloneable" + CloneAbilityResultPartiallyCloneable CloneAbilityResult = "PartiallyCloneable" +) + +func PossibleValuesForCloneAbilityResult() []string { + return []string{ + string(CloneAbilityResultCloneable), + string(CloneAbilityResultNotCloneable), + string(CloneAbilityResultPartiallyCloneable), + } +} + +func (s *CloneAbilityResult) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCloneAbilityResult(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCloneAbilityResult(input string) (*CloneAbilityResult, error) { + vals := map[string]CloneAbilityResult{ + "cloneable": CloneAbilityResultCloneable, + "notcloneable": CloneAbilityResultNotCloneable, + "partiallycloneable": CloneAbilityResultPartiallyCloneable, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CloneAbilityResult(input) + return &out, nil +} + +type ConfigReferenceSource string + +const ( + ConfigReferenceSourceKeyVault ConfigReferenceSource = "KeyVault" +) + +func PossibleValuesForConfigReferenceSource() []string { + return []string{ + string(ConfigReferenceSourceKeyVault), + } +} + +func (s *ConfigReferenceSource) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConfigReferenceSource(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConfigReferenceSource(input string) (*ConfigReferenceSource, error) { + vals := map[string]ConfigReferenceSource{ + "keyvault": ConfigReferenceSourceKeyVault, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConfigReferenceSource(input) + return &out, nil +} + +type ConnectionStringType string + +const ( + ConnectionStringTypeApiHub ConnectionStringType = "ApiHub" + ConnectionStringTypeCustom ConnectionStringType = "Custom" + ConnectionStringTypeDocDb ConnectionStringType = "DocDb" + ConnectionStringTypeEventHub ConnectionStringType = "EventHub" + ConnectionStringTypeMySql ConnectionStringType = "MySql" + ConnectionStringTypeNotificationHub ConnectionStringType = "NotificationHub" + ConnectionStringTypePostgreSQL ConnectionStringType = "PostgreSQL" + ConnectionStringTypeRedisCache ConnectionStringType = "RedisCache" + ConnectionStringTypeSQLAzure ConnectionStringType = "SQLAzure" + ConnectionStringTypeSQLServer ConnectionStringType = "SQLServer" + ConnectionStringTypeServiceBus ConnectionStringType = "ServiceBus" +) + +func PossibleValuesForConnectionStringType() []string { + return []string{ + string(ConnectionStringTypeApiHub), + string(ConnectionStringTypeCustom), + string(ConnectionStringTypeDocDb), + string(ConnectionStringTypeEventHub), + string(ConnectionStringTypeMySql), + string(ConnectionStringTypeNotificationHub), + string(ConnectionStringTypePostgreSQL), + string(ConnectionStringTypeRedisCache), + string(ConnectionStringTypeSQLAzure), + string(ConnectionStringTypeSQLServer), + string(ConnectionStringTypeServiceBus), + } +} + +func (s *ConnectionStringType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectionStringType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectionStringType(input string) (*ConnectionStringType, error) { + vals := map[string]ConnectionStringType{ + "apihub": ConnectionStringTypeApiHub, + "custom": ConnectionStringTypeCustom, + "docdb": ConnectionStringTypeDocDb, + "eventhub": ConnectionStringTypeEventHub, + "mysql": ConnectionStringTypeMySql, + "notificationhub": ConnectionStringTypeNotificationHub, + "postgresql": ConnectionStringTypePostgreSQL, + "rediscache": ConnectionStringTypeRedisCache, + "sqlazure": ConnectionStringTypeSQLAzure, + "sqlserver": ConnectionStringTypeSQLServer, + "servicebus": ConnectionStringTypeServiceBus, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectionStringType(input) + return &out, nil +} + +type ContinuousWebJobStatus string + +const ( + ContinuousWebJobStatusInitializing ContinuousWebJobStatus = "Initializing" + ContinuousWebJobStatusPendingRestart ContinuousWebJobStatus = "PendingRestart" + ContinuousWebJobStatusRunning ContinuousWebJobStatus = "Running" + ContinuousWebJobStatusStarting ContinuousWebJobStatus = "Starting" + ContinuousWebJobStatusStopped ContinuousWebJobStatus = "Stopped" +) + +func PossibleValuesForContinuousWebJobStatus() []string { + return []string{ + string(ContinuousWebJobStatusInitializing), + string(ContinuousWebJobStatusPendingRestart), + string(ContinuousWebJobStatusRunning), + string(ContinuousWebJobStatusStarting), + string(ContinuousWebJobStatusStopped), + } +} + +func (s *ContinuousWebJobStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseContinuousWebJobStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseContinuousWebJobStatus(input string) (*ContinuousWebJobStatus, error) { + vals := map[string]ContinuousWebJobStatus{ + "initializing": ContinuousWebJobStatusInitializing, + "pendingrestart": ContinuousWebJobStatusPendingRestart, + "running": ContinuousWebJobStatusRunning, + "starting": ContinuousWebJobStatusStarting, + "stopped": ContinuousWebJobStatusStopped, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ContinuousWebJobStatus(input) + return &out, nil +} + +type CookieExpirationConvention string + +const ( + CookieExpirationConventionFixedTime CookieExpirationConvention = "FixedTime" + CookieExpirationConventionIdentityProviderDerived CookieExpirationConvention = "IdentityProviderDerived" +) + +func PossibleValuesForCookieExpirationConvention() []string { + return []string{ + string(CookieExpirationConventionFixedTime), + string(CookieExpirationConventionIdentityProviderDerived), + } +} + +func (s *CookieExpirationConvention) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCookieExpirationConvention(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCookieExpirationConvention(input string) (*CookieExpirationConvention, error) { + vals := map[string]CookieExpirationConvention{ + "fixedtime": CookieExpirationConventionFixedTime, + "identityproviderderived": CookieExpirationConventionIdentityProviderDerived, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CookieExpirationConvention(input) + return &out, nil +} + +type CustomHostNameDnsRecordType string + +const ( + CustomHostNameDnsRecordTypeA CustomHostNameDnsRecordType = "A" + CustomHostNameDnsRecordTypeCName CustomHostNameDnsRecordType = "CName" +) + +func PossibleValuesForCustomHostNameDnsRecordType() []string { + return []string{ + string(CustomHostNameDnsRecordTypeA), + string(CustomHostNameDnsRecordTypeCName), + } +} + +func (s *CustomHostNameDnsRecordType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCustomHostNameDnsRecordType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCustomHostNameDnsRecordType(input string) (*CustomHostNameDnsRecordType, error) { + vals := map[string]CustomHostNameDnsRecordType{ + "a": CustomHostNameDnsRecordTypeA, + "cname": CustomHostNameDnsRecordTypeCName, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CustomHostNameDnsRecordType(input) + return &out, nil +} + +type DaprLogLevel string + +const ( + DaprLogLevelDebug DaprLogLevel = "debug" + DaprLogLevelError DaprLogLevel = "error" + DaprLogLevelInfo DaprLogLevel = "info" + DaprLogLevelWarn DaprLogLevel = "warn" +) + +func PossibleValuesForDaprLogLevel() []string { + return []string{ + string(DaprLogLevelDebug), + string(DaprLogLevelError), + string(DaprLogLevelInfo), + string(DaprLogLevelWarn), + } +} + +func (s *DaprLogLevel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDaprLogLevel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDaprLogLevel(input string) (*DaprLogLevel, error) { + vals := map[string]DaprLogLevel{ + "debug": DaprLogLevelDebug, + "error": DaprLogLevelError, + "info": DaprLogLevelInfo, + "warn": DaprLogLevelWarn, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DaprLogLevel(input) + return &out, nil +} + +type DatabaseType string + +const ( + DatabaseTypeLocalMySql DatabaseType = "LocalMySql" + DatabaseTypeMySql DatabaseType = "MySql" + DatabaseTypePostgreSql DatabaseType = "PostgreSql" + DatabaseTypeSqlAzure DatabaseType = "SqlAzure" +) + +func PossibleValuesForDatabaseType() []string { + return []string{ + string(DatabaseTypeLocalMySql), + string(DatabaseTypeMySql), + string(DatabaseTypePostgreSql), + string(DatabaseTypeSqlAzure), + } +} + +func (s *DatabaseType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDatabaseType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDatabaseType(input string) (*DatabaseType, error) { + vals := map[string]DatabaseType{ + "localmysql": DatabaseTypeLocalMySql, + "mysql": DatabaseTypeMySql, + "postgresql": DatabaseTypePostgreSql, + "sqlazure": DatabaseTypeSqlAzure, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DatabaseType(input) + return &out, nil +} + +type DefaultAction string + +const ( + DefaultActionAllow DefaultAction = "Allow" + DefaultActionDeny DefaultAction = "Deny" +) + +func PossibleValuesForDefaultAction() []string { + return []string{ + string(DefaultActionAllow), + string(DefaultActionDeny), + } +} + +func (s *DefaultAction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDefaultAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDefaultAction(input string) (*DefaultAction, error) { + vals := map[string]DefaultAction{ + "allow": DefaultActionAllow, + "deny": DefaultActionDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DefaultAction(input) + return &out, nil +} + +type DeploymentBuildStatus string + +const ( + DeploymentBuildStatusBuildAborted DeploymentBuildStatus = "BuildAborted" + DeploymentBuildStatusBuildFailed DeploymentBuildStatus = "BuildFailed" + DeploymentBuildStatusBuildInProgress DeploymentBuildStatus = "BuildInProgress" + DeploymentBuildStatusBuildPending DeploymentBuildStatus = "BuildPending" + DeploymentBuildStatusBuildRequestReceived DeploymentBuildStatus = "BuildRequestReceived" + DeploymentBuildStatusBuildSuccessful DeploymentBuildStatus = "BuildSuccessful" + DeploymentBuildStatusPostBuildRestartRequired DeploymentBuildStatus = "PostBuildRestartRequired" + DeploymentBuildStatusRuntimeFailed DeploymentBuildStatus = "RuntimeFailed" + DeploymentBuildStatusRuntimeStarting DeploymentBuildStatus = "RuntimeStarting" + DeploymentBuildStatusRuntimeSuccessful DeploymentBuildStatus = "RuntimeSuccessful" + DeploymentBuildStatusStartPolling DeploymentBuildStatus = "StartPolling" + DeploymentBuildStatusStartPollingWithRestart DeploymentBuildStatus = "StartPollingWithRestart" + DeploymentBuildStatusTimedOut DeploymentBuildStatus = "TimedOut" +) + +func PossibleValuesForDeploymentBuildStatus() []string { + return []string{ + string(DeploymentBuildStatusBuildAborted), + string(DeploymentBuildStatusBuildFailed), + string(DeploymentBuildStatusBuildInProgress), + string(DeploymentBuildStatusBuildPending), + string(DeploymentBuildStatusBuildRequestReceived), + string(DeploymentBuildStatusBuildSuccessful), + string(DeploymentBuildStatusPostBuildRestartRequired), + string(DeploymentBuildStatusRuntimeFailed), + string(DeploymentBuildStatusRuntimeStarting), + string(DeploymentBuildStatusRuntimeSuccessful), + string(DeploymentBuildStatusStartPolling), + string(DeploymentBuildStatusStartPollingWithRestart), + string(DeploymentBuildStatusTimedOut), + } +} + +func (s *DeploymentBuildStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeploymentBuildStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeploymentBuildStatus(input string) (*DeploymentBuildStatus, error) { + vals := map[string]DeploymentBuildStatus{ + "buildaborted": DeploymentBuildStatusBuildAborted, + "buildfailed": DeploymentBuildStatusBuildFailed, + "buildinprogress": DeploymentBuildStatusBuildInProgress, + "buildpending": DeploymentBuildStatusBuildPending, + "buildrequestreceived": DeploymentBuildStatusBuildRequestReceived, + "buildsuccessful": DeploymentBuildStatusBuildSuccessful, + "postbuildrestartrequired": DeploymentBuildStatusPostBuildRestartRequired, + "runtimefailed": DeploymentBuildStatusRuntimeFailed, + "runtimestarting": DeploymentBuildStatusRuntimeStarting, + "runtimesuccessful": DeploymentBuildStatusRuntimeSuccessful, + "startpolling": DeploymentBuildStatusStartPolling, + "startpollingwithrestart": DeploymentBuildStatusStartPollingWithRestart, + "timedout": DeploymentBuildStatusTimedOut, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeploymentBuildStatus(input) + return &out, nil +} + +type DnsVerificationTestResult string + +const ( + DnsVerificationTestResultFailed DnsVerificationTestResult = "Failed" + DnsVerificationTestResultPassed DnsVerificationTestResult = "Passed" + DnsVerificationTestResultSkipped DnsVerificationTestResult = "Skipped" +) + +func PossibleValuesForDnsVerificationTestResult() []string { + return []string{ + string(DnsVerificationTestResultFailed), + string(DnsVerificationTestResultPassed), + string(DnsVerificationTestResultSkipped), + } +} + +func (s *DnsVerificationTestResult) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDnsVerificationTestResult(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDnsVerificationTestResult(input string) (*DnsVerificationTestResult, error) { + vals := map[string]DnsVerificationTestResult{ + "failed": DnsVerificationTestResultFailed, + "passed": DnsVerificationTestResultPassed, + "skipped": DnsVerificationTestResultSkipped, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DnsVerificationTestResult(input) + return &out, nil +} + +type ForwardProxyConvention string + +const ( + ForwardProxyConventionCustom ForwardProxyConvention = "Custom" + ForwardProxyConventionNoProxy ForwardProxyConvention = "NoProxy" + ForwardProxyConventionStandard ForwardProxyConvention = "Standard" +) + +func PossibleValuesForForwardProxyConvention() []string { + return []string{ + string(ForwardProxyConventionCustom), + string(ForwardProxyConventionNoProxy), + string(ForwardProxyConventionStandard), + } +} + +func (s *ForwardProxyConvention) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseForwardProxyConvention(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseForwardProxyConvention(input string) (*ForwardProxyConvention, error) { + vals := map[string]ForwardProxyConvention{ + "custom": ForwardProxyConventionCustom, + "noproxy": ForwardProxyConventionNoProxy, + "standard": ForwardProxyConventionStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ForwardProxyConvention(input) + return &out, nil +} + +type FrequencyUnit string + +const ( + FrequencyUnitDay FrequencyUnit = "Day" + FrequencyUnitHour FrequencyUnit = "Hour" +) + +func PossibleValuesForFrequencyUnit() []string { + return []string{ + string(FrequencyUnitDay), + string(FrequencyUnitHour), + } +} + +func (s *FrequencyUnit) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFrequencyUnit(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFrequencyUnit(input string) (*FrequencyUnit, error) { + vals := map[string]FrequencyUnit{ + "day": FrequencyUnitDay, + "hour": FrequencyUnitHour, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FrequencyUnit(input) + return &out, nil +} + +type FtpsState string + +const ( + FtpsStateAllAllowed FtpsState = "AllAllowed" + FtpsStateDisabled FtpsState = "Disabled" + FtpsStateFtpsOnly FtpsState = "FtpsOnly" +) + +func PossibleValuesForFtpsState() []string { + return []string{ + string(FtpsStateAllAllowed), + string(FtpsStateDisabled), + string(FtpsStateFtpsOnly), + } +} + +func (s *FtpsState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFtpsState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFtpsState(input string) (*FtpsState, error) { + vals := map[string]FtpsState{ + "allallowed": FtpsStateAllAllowed, + "disabled": FtpsStateDisabled, + "ftpsonly": FtpsStateFtpsOnly, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FtpsState(input) + return &out, nil +} + +type HostNameType string + +const ( + HostNameTypeManaged HostNameType = "Managed" + HostNameTypeVerified HostNameType = "Verified" +) + +func PossibleValuesForHostNameType() []string { + return []string{ + string(HostNameTypeManaged), + string(HostNameTypeVerified), + } +} + +func (s *HostNameType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHostNameType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHostNameType(input string) (*HostNameType, error) { + vals := map[string]HostNameType{ + "managed": HostNameTypeManaged, + "verified": HostNameTypeVerified, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HostNameType(input) + return &out, nil +} + +type HostType string + +const ( + HostTypeRepository HostType = "Repository" + HostTypeStandard HostType = "Standard" +) + +func PossibleValuesForHostType() []string { + return []string{ + string(HostTypeRepository), + string(HostTypeStandard), + } +} + +func (s *HostType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHostType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHostType(input string) (*HostType, error) { + vals := map[string]HostType{ + "repository": HostTypeRepository, + "standard": HostTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HostType(input) + return &out, nil +} + +type IPFilterTag string + +const ( + IPFilterTagDefault IPFilterTag = "Default" + IPFilterTagServiceTag IPFilterTag = "ServiceTag" + IPFilterTagXffProxy IPFilterTag = "XffProxy" +) + +func PossibleValuesForIPFilterTag() []string { + return []string{ + string(IPFilterTagDefault), + string(IPFilterTagServiceTag), + string(IPFilterTagXffProxy), + } +} + +func (s *IPFilterTag) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPFilterTag(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPFilterTag(input string) (*IPFilterTag, error) { + vals := map[string]IPFilterTag{ + "default": IPFilterTagDefault, + "servicetag": IPFilterTagServiceTag, + "xffproxy": IPFilterTagXffProxy, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPFilterTag(input) + return &out, nil +} + +type LogLevel string + +const ( + LogLevelError LogLevel = "Error" + LogLevelInformation LogLevel = "Information" + LogLevelOff LogLevel = "Off" + LogLevelVerbose LogLevel = "Verbose" + LogLevelWarning LogLevel = "Warning" +) + +func PossibleValuesForLogLevel() []string { + return []string{ + string(LogLevelError), + string(LogLevelInformation), + string(LogLevelOff), + string(LogLevelVerbose), + string(LogLevelWarning), + } +} + +func (s *LogLevel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLogLevel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLogLevel(input string) (*LogLevel, error) { + vals := map[string]LogLevel{ + "error": LogLevelError, + "information": LogLevelInformation, + "off": LogLevelOff, + "verbose": LogLevelVerbose, + "warning": LogLevelWarning, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LogLevel(input) + return &out, nil +} + +type MSDeployLogEntryType string + +const ( + MSDeployLogEntryTypeError MSDeployLogEntryType = "Error" + MSDeployLogEntryTypeMessage MSDeployLogEntryType = "Message" + MSDeployLogEntryTypeWarning MSDeployLogEntryType = "Warning" +) + +func PossibleValuesForMSDeployLogEntryType() []string { + return []string{ + string(MSDeployLogEntryTypeError), + string(MSDeployLogEntryTypeMessage), + string(MSDeployLogEntryTypeWarning), + } +} + +func (s *MSDeployLogEntryType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMSDeployLogEntryType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMSDeployLogEntryType(input string) (*MSDeployLogEntryType, error) { + vals := map[string]MSDeployLogEntryType{ + "error": MSDeployLogEntryTypeError, + "message": MSDeployLogEntryTypeMessage, + "warning": MSDeployLogEntryTypeWarning, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MSDeployLogEntryType(input) + return &out, nil +} + +type MSDeployProvisioningState string + +const ( + MSDeployProvisioningStateAccepted MSDeployProvisioningState = "accepted" + MSDeployProvisioningStateCanceled MSDeployProvisioningState = "canceled" + MSDeployProvisioningStateFailed MSDeployProvisioningState = "failed" + MSDeployProvisioningStateRunning MSDeployProvisioningState = "running" + MSDeployProvisioningStateSucceeded MSDeployProvisioningState = "succeeded" +) + +func PossibleValuesForMSDeployProvisioningState() []string { + return []string{ + string(MSDeployProvisioningStateAccepted), + string(MSDeployProvisioningStateCanceled), + string(MSDeployProvisioningStateFailed), + string(MSDeployProvisioningStateRunning), + string(MSDeployProvisioningStateSucceeded), + } +} + +func (s *MSDeployProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMSDeployProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMSDeployProvisioningState(input string) (*MSDeployProvisioningState, error) { + vals := map[string]MSDeployProvisioningState{ + "accepted": MSDeployProvisioningStateAccepted, + "canceled": MSDeployProvisioningStateCanceled, + "failed": MSDeployProvisioningStateFailed, + "running": MSDeployProvisioningStateRunning, + "succeeded": MSDeployProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MSDeployProvisioningState(input) + return &out, nil +} + +type ManagedPipelineMode string + +const ( + ManagedPipelineModeClassic ManagedPipelineMode = "Classic" + ManagedPipelineModeIntegrated ManagedPipelineMode = "Integrated" +) + +func PossibleValuesForManagedPipelineMode() []string { + return []string{ + string(ManagedPipelineModeClassic), + string(ManagedPipelineModeIntegrated), + } +} + +func (s *ManagedPipelineMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseManagedPipelineMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseManagedPipelineMode(input string) (*ManagedPipelineMode, error) { + vals := map[string]ManagedPipelineMode{ + "classic": ManagedPipelineModeClassic, + "integrated": ManagedPipelineModeIntegrated, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ManagedPipelineMode(input) + return &out, nil +} + +type MySqlMigrationType string + +const ( + MySqlMigrationTypeLocalToRemote MySqlMigrationType = "LocalToRemote" + MySqlMigrationTypeRemoteToLocal MySqlMigrationType = "RemoteToLocal" +) + +func PossibleValuesForMySqlMigrationType() []string { + return []string{ + string(MySqlMigrationTypeLocalToRemote), + string(MySqlMigrationTypeRemoteToLocal), + } +} + +func (s *MySqlMigrationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMySqlMigrationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMySqlMigrationType(input string) (*MySqlMigrationType, error) { + vals := map[string]MySqlMigrationType{ + "localtoremote": MySqlMigrationTypeLocalToRemote, + "remotetolocal": MySqlMigrationTypeRemoteToLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MySqlMigrationType(input) + return &out, nil +} + +type OperationStatus string + +const ( + OperationStatusCreated OperationStatus = "Created" + OperationStatusFailed OperationStatus = "Failed" + OperationStatusInProgress OperationStatus = "InProgress" + OperationStatusSucceeded OperationStatus = "Succeeded" + OperationStatusTimedOut OperationStatus = "TimedOut" +) + +func PossibleValuesForOperationStatus() []string { + return []string{ + string(OperationStatusCreated), + string(OperationStatusFailed), + string(OperationStatusInProgress), + string(OperationStatusSucceeded), + string(OperationStatusTimedOut), + } +} + +func (s *OperationStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOperationStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOperationStatus(input string) (*OperationStatus, error) { + vals := map[string]OperationStatus{ + "created": OperationStatusCreated, + "failed": OperationStatusFailed, + "inprogress": OperationStatusInProgress, + "succeeded": OperationStatusSucceeded, + "timedout": OperationStatusTimedOut, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := OperationStatus(input) + return &out, nil +} + +type PublicCertificateLocation string + +const ( + PublicCertificateLocationCurrentUserMy PublicCertificateLocation = "CurrentUserMy" + PublicCertificateLocationLocalMachineMy PublicCertificateLocation = "LocalMachineMy" + PublicCertificateLocationUnknown PublicCertificateLocation = "Unknown" +) + +func PossibleValuesForPublicCertificateLocation() []string { + return []string{ + string(PublicCertificateLocationCurrentUserMy), + string(PublicCertificateLocationLocalMachineMy), + string(PublicCertificateLocationUnknown), + } +} + +func (s *PublicCertificateLocation) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicCertificateLocation(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicCertificateLocation(input string) (*PublicCertificateLocation, error) { + vals := map[string]PublicCertificateLocation{ + "currentusermy": PublicCertificateLocationCurrentUserMy, + "localmachinemy": PublicCertificateLocationLocalMachineMy, + "unknown": PublicCertificateLocationUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicCertificateLocation(input) + return &out, nil +} + +type PublishingProfileFormat string + +const ( + PublishingProfileFormatFileZillaThree PublishingProfileFormat = "FileZilla3" + PublishingProfileFormatFtp PublishingProfileFormat = "Ftp" + PublishingProfileFormatWebDeploy PublishingProfileFormat = "WebDeploy" +) + +func PossibleValuesForPublishingProfileFormat() []string { + return []string{ + string(PublishingProfileFormatFileZillaThree), + string(PublishingProfileFormatFtp), + string(PublishingProfileFormatWebDeploy), + } +} + +func (s *PublishingProfileFormat) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublishingProfileFormat(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublishingProfileFormat(input string) (*PublishingProfileFormat, error) { + vals := map[string]PublishingProfileFormat{ + "filezilla3": PublishingProfileFormatFileZillaThree, + "ftp": PublishingProfileFormatFtp, + "webdeploy": PublishingProfileFormatWebDeploy, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublishingProfileFormat(input) + return &out, nil +} + +type RedundancyMode string + +const ( + RedundancyModeActiveActive RedundancyMode = "ActiveActive" + RedundancyModeFailover RedundancyMode = "Failover" + RedundancyModeGeoRedundant RedundancyMode = "GeoRedundant" + RedundancyModeManual RedundancyMode = "Manual" + RedundancyModeNone RedundancyMode = "None" +) + +func PossibleValuesForRedundancyMode() []string { + return []string{ + string(RedundancyModeActiveActive), + string(RedundancyModeFailover), + string(RedundancyModeGeoRedundant), + string(RedundancyModeManual), + string(RedundancyModeNone), + } +} + +func (s *RedundancyMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRedundancyMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRedundancyMode(input string) (*RedundancyMode, error) { + vals := map[string]RedundancyMode{ + "activeactive": RedundancyModeActiveActive, + "failover": RedundancyModeFailover, + "georedundant": RedundancyModeGeoRedundant, + "manual": RedundancyModeManual, + "none": RedundancyModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RedundancyMode(input) + return &out, nil +} + +type ResolveStatus string + +const ( + ResolveStatusAccessToKeyVaultDenied ResolveStatus = "AccessToKeyVaultDenied" + ResolveStatusFetchTimedOut ResolveStatus = "FetchTimedOut" + ResolveStatusInitialized ResolveStatus = "Initialized" + ResolveStatusInvalidSyntax ResolveStatus = "InvalidSyntax" + ResolveStatusMSINotEnabled ResolveStatus = "MSINotEnabled" + ResolveStatusOtherReasons ResolveStatus = "OtherReasons" + ResolveStatusResolved ResolveStatus = "Resolved" + ResolveStatusSecretNotFound ResolveStatus = "SecretNotFound" + ResolveStatusSecretVersionNotFound ResolveStatus = "SecretVersionNotFound" + ResolveStatusUnauthorizedClient ResolveStatus = "UnauthorizedClient" + ResolveStatusVaultNotFound ResolveStatus = "VaultNotFound" +) + +func PossibleValuesForResolveStatus() []string { + return []string{ + string(ResolveStatusAccessToKeyVaultDenied), + string(ResolveStatusFetchTimedOut), + string(ResolveStatusInitialized), + string(ResolveStatusInvalidSyntax), + string(ResolveStatusMSINotEnabled), + string(ResolveStatusOtherReasons), + string(ResolveStatusResolved), + string(ResolveStatusSecretNotFound), + string(ResolveStatusSecretVersionNotFound), + string(ResolveStatusUnauthorizedClient), + string(ResolveStatusVaultNotFound), + } +} + +func (s *ResolveStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResolveStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResolveStatus(input string) (*ResolveStatus, error) { + vals := map[string]ResolveStatus{ + "accesstokeyvaultdenied": ResolveStatusAccessToKeyVaultDenied, + "fetchtimedout": ResolveStatusFetchTimedOut, + "initialized": ResolveStatusInitialized, + "invalidsyntax": ResolveStatusInvalidSyntax, + "msinotenabled": ResolveStatusMSINotEnabled, + "otherreasons": ResolveStatusOtherReasons, + "resolved": ResolveStatusResolved, + "secretnotfound": ResolveStatusSecretNotFound, + "secretversionnotfound": ResolveStatusSecretVersionNotFound, + "unauthorizedclient": ResolveStatusUnauthorizedClient, + "vaultnotfound": ResolveStatusVaultNotFound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResolveStatus(input) + return &out, nil +} + +type RouteType string + +const ( + RouteTypeDefault RouteType = "DEFAULT" + RouteTypeINHERITED RouteType = "INHERITED" + RouteTypeSTATIC RouteType = "STATIC" +) + +func PossibleValuesForRouteType() []string { + return []string{ + string(RouteTypeDefault), + string(RouteTypeINHERITED), + string(RouteTypeSTATIC), + } +} + +func (s *RouteType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteType(input string) (*RouteType, error) { + vals := map[string]RouteType{ + "default": RouteTypeDefault, + "inherited": RouteTypeINHERITED, + "static": RouteTypeSTATIC, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteType(input) + return &out, nil +} + +type ScmType string + +const ( + ScmTypeBitbucketGit ScmType = "BitbucketGit" + ScmTypeBitbucketHg ScmType = "BitbucketHg" + ScmTypeCodePlexGit ScmType = "CodePlexGit" + ScmTypeCodePlexHg ScmType = "CodePlexHg" + ScmTypeDropbox ScmType = "Dropbox" + ScmTypeExternalGit ScmType = "ExternalGit" + ScmTypeExternalHg ScmType = "ExternalHg" + ScmTypeGitHub ScmType = "GitHub" + ScmTypeLocalGit ScmType = "LocalGit" + ScmTypeNone ScmType = "None" + ScmTypeOneDrive ScmType = "OneDrive" + ScmTypeTfs ScmType = "Tfs" + ScmTypeVSO ScmType = "VSO" + ScmTypeVSTSRM ScmType = "VSTSRM" +) + +func PossibleValuesForScmType() []string { + return []string{ + string(ScmTypeBitbucketGit), + string(ScmTypeBitbucketHg), + string(ScmTypeCodePlexGit), + string(ScmTypeCodePlexHg), + string(ScmTypeDropbox), + string(ScmTypeExternalGit), + string(ScmTypeExternalHg), + string(ScmTypeGitHub), + string(ScmTypeLocalGit), + string(ScmTypeNone), + string(ScmTypeOneDrive), + string(ScmTypeTfs), + string(ScmTypeVSO), + string(ScmTypeVSTSRM), + } +} + +func (s *ScmType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseScmType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseScmType(input string) (*ScmType, error) { + vals := map[string]ScmType{ + "bitbucketgit": ScmTypeBitbucketGit, + "bitbuckethg": ScmTypeBitbucketHg, + "codeplexgit": ScmTypeCodePlexGit, + "codeplexhg": ScmTypeCodePlexHg, + "dropbox": ScmTypeDropbox, + "externalgit": ScmTypeExternalGit, + "externalhg": ScmTypeExternalHg, + "github": ScmTypeGitHub, + "localgit": ScmTypeLocalGit, + "none": ScmTypeNone, + "onedrive": ScmTypeOneDrive, + "tfs": ScmTypeTfs, + "vso": ScmTypeVSO, + "vstsrm": ScmTypeVSTSRM, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ScmType(input) + return &out, nil +} + +type SiteAvailabilityState string + +const ( + SiteAvailabilityStateDisasterRecoveryMode SiteAvailabilityState = "DisasterRecoveryMode" + SiteAvailabilityStateLimited SiteAvailabilityState = "Limited" + SiteAvailabilityStateNormal SiteAvailabilityState = "Normal" +) + +func PossibleValuesForSiteAvailabilityState() []string { + return []string{ + string(SiteAvailabilityStateDisasterRecoveryMode), + string(SiteAvailabilityStateLimited), + string(SiteAvailabilityStateNormal), + } +} + +func (s *SiteAvailabilityState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSiteAvailabilityState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSiteAvailabilityState(input string) (*SiteAvailabilityState, error) { + vals := map[string]SiteAvailabilityState{ + "disasterrecoverymode": SiteAvailabilityStateDisasterRecoveryMode, + "limited": SiteAvailabilityStateLimited, + "normal": SiteAvailabilityStateNormal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SiteAvailabilityState(input) + return &out, nil +} + +type SiteExtensionType string + +const ( + SiteExtensionTypeGallery SiteExtensionType = "Gallery" + SiteExtensionTypeWebRoot SiteExtensionType = "WebRoot" +) + +func PossibleValuesForSiteExtensionType() []string { + return []string{ + string(SiteExtensionTypeGallery), + string(SiteExtensionTypeWebRoot), + } +} + +func (s *SiteExtensionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSiteExtensionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSiteExtensionType(input string) (*SiteExtensionType, error) { + vals := map[string]SiteExtensionType{ + "gallery": SiteExtensionTypeGallery, + "webroot": SiteExtensionTypeWebRoot, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SiteExtensionType(input) + return &out, nil +} + +type SiteLoadBalancing string + +const ( + SiteLoadBalancingLeastRequests SiteLoadBalancing = "LeastRequests" + SiteLoadBalancingLeastResponseTime SiteLoadBalancing = "LeastResponseTime" + SiteLoadBalancingPerSiteRoundRobin SiteLoadBalancing = "PerSiteRoundRobin" + SiteLoadBalancingRequestHash SiteLoadBalancing = "RequestHash" + SiteLoadBalancingWeightedRoundRobin SiteLoadBalancing = "WeightedRoundRobin" + SiteLoadBalancingWeightedTotalTraffic SiteLoadBalancing = "WeightedTotalTraffic" +) + +func PossibleValuesForSiteLoadBalancing() []string { + return []string{ + string(SiteLoadBalancingLeastRequests), + string(SiteLoadBalancingLeastResponseTime), + string(SiteLoadBalancingPerSiteRoundRobin), + string(SiteLoadBalancingRequestHash), + string(SiteLoadBalancingWeightedRoundRobin), + string(SiteLoadBalancingWeightedTotalTraffic), + } +} + +func (s *SiteLoadBalancing) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSiteLoadBalancing(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSiteLoadBalancing(input string) (*SiteLoadBalancing, error) { + vals := map[string]SiteLoadBalancing{ + "leastrequests": SiteLoadBalancingLeastRequests, + "leastresponsetime": SiteLoadBalancingLeastResponseTime, + "persiteroundrobin": SiteLoadBalancingPerSiteRoundRobin, + "requesthash": SiteLoadBalancingRequestHash, + "weightedroundrobin": SiteLoadBalancingWeightedRoundRobin, + "weightedtotaltraffic": SiteLoadBalancingWeightedTotalTraffic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SiteLoadBalancing(input) + return &out, nil +} + +type SiteRuntimeState string + +const ( + SiteRuntimeStateREADY SiteRuntimeState = "READY" + SiteRuntimeStateSTOPPED SiteRuntimeState = "STOPPED" + SiteRuntimeStateUNKNOWN SiteRuntimeState = "UNKNOWN" +) + +func PossibleValuesForSiteRuntimeState() []string { + return []string{ + string(SiteRuntimeStateREADY), + string(SiteRuntimeStateSTOPPED), + string(SiteRuntimeStateUNKNOWN), + } +} + +func (s *SiteRuntimeState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSiteRuntimeState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSiteRuntimeState(input string) (*SiteRuntimeState, error) { + vals := map[string]SiteRuntimeState{ + "ready": SiteRuntimeStateREADY, + "stopped": SiteRuntimeStateSTOPPED, + "unknown": SiteRuntimeStateUNKNOWN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SiteRuntimeState(input) + return &out, nil +} + +type SslState string + +const ( + SslStateDisabled SslState = "Disabled" + SslStateIPBasedEnabled SslState = "IpBasedEnabled" + SslStateSniEnabled SslState = "SniEnabled" +) + +func PossibleValuesForSslState() []string { + return []string{ + string(SslStateDisabled), + string(SslStateIPBasedEnabled), + string(SslStateSniEnabled), + } +} + +func (s *SslState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSslState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSslState(input string) (*SslState, error) { + vals := map[string]SslState{ + "disabled": SslStateDisabled, + "ipbasedenabled": SslStateIPBasedEnabled, + "snienabled": SslStateSniEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SslState(input) + return &out, nil +} + +type SupportedTlsVersions string + +const ( + SupportedTlsVersionsOnePointOne SupportedTlsVersions = "1.1" + SupportedTlsVersionsOnePointTwo SupportedTlsVersions = "1.2" + SupportedTlsVersionsOnePointZero SupportedTlsVersions = "1.0" +) + +func PossibleValuesForSupportedTlsVersions() []string { + return []string{ + string(SupportedTlsVersionsOnePointOne), + string(SupportedTlsVersionsOnePointTwo), + string(SupportedTlsVersionsOnePointZero), + } +} + +func (s *SupportedTlsVersions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSupportedTlsVersions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSupportedTlsVersions(input string) (*SupportedTlsVersions, error) { + vals := map[string]SupportedTlsVersions{ + "1.1": SupportedTlsVersionsOnePointOne, + "1.2": SupportedTlsVersionsOnePointTwo, + "1.0": SupportedTlsVersionsOnePointZero, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SupportedTlsVersions(input) + return &out, nil +} + +type TlsCipherSuites string + +const ( + TlsCipherSuitesTLSAESOneTwoEightGCMSHATwoFiveSix TlsCipherSuites = "TLS_AES_128_GCM_SHA256" + TlsCipherSuitesTLSAESTwoFiveSixGCMSHAThreeEightFour TlsCipherSuites = "TLS_AES_256_GCM_SHA384" + TlsCipherSuitesTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix TlsCipherSuites = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" + TlsCipherSuitesTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix TlsCipherSuites = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" + TlsCipherSuitesTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour TlsCipherSuites = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" + TlsCipherSuitesTLSECDHERSAWITHAESOneTwoEightCBCSHA TlsCipherSuites = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" + TlsCipherSuitesTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix TlsCipherSuites = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" + TlsCipherSuitesTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix TlsCipherSuites = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" + TlsCipherSuitesTLSECDHERSAWITHAESTwoFiveSixCBCSHA TlsCipherSuites = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" + TlsCipherSuitesTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour TlsCipherSuites = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" + TlsCipherSuitesTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour TlsCipherSuites = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" + TlsCipherSuitesTLSRSAWITHAESOneTwoEightCBCSHA TlsCipherSuites = "TLS_RSA_WITH_AES_128_CBC_SHA" + TlsCipherSuitesTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix TlsCipherSuites = "TLS_RSA_WITH_AES_128_CBC_SHA256" + TlsCipherSuitesTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix TlsCipherSuites = "TLS_RSA_WITH_AES_128_GCM_SHA256" + TlsCipherSuitesTLSRSAWITHAESTwoFiveSixCBCSHA TlsCipherSuites = "TLS_RSA_WITH_AES_256_CBC_SHA" + TlsCipherSuitesTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix TlsCipherSuites = "TLS_RSA_WITH_AES_256_CBC_SHA256" + TlsCipherSuitesTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour TlsCipherSuites = "TLS_RSA_WITH_AES_256_GCM_SHA384" +) + +func PossibleValuesForTlsCipherSuites() []string { + return []string{ + string(TlsCipherSuitesTLSAESOneTwoEightGCMSHATwoFiveSix), + string(TlsCipherSuitesTLSAESTwoFiveSixGCMSHAThreeEightFour), + string(TlsCipherSuitesTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(TlsCipherSuitesTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(TlsCipherSuitesTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(TlsCipherSuitesTLSECDHERSAWITHAESOneTwoEightCBCSHA), + string(TlsCipherSuitesTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(TlsCipherSuitesTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(TlsCipherSuitesTLSECDHERSAWITHAESTwoFiveSixCBCSHA), + string(TlsCipherSuitesTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour), + string(TlsCipherSuitesTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(TlsCipherSuitesTLSRSAWITHAESOneTwoEightCBCSHA), + string(TlsCipherSuitesTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(TlsCipherSuitesTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(TlsCipherSuitesTLSRSAWITHAESTwoFiveSixCBCSHA), + string(TlsCipherSuitesTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix), + string(TlsCipherSuitesTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + } +} + +func (s *TlsCipherSuites) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTlsCipherSuites(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTlsCipherSuites(input string) (*TlsCipherSuites, error) { + vals := map[string]TlsCipherSuites{ + "tls_aes_128_gcm_sha256": TlsCipherSuitesTLSAESOneTwoEightGCMSHATwoFiveSix, + "tls_aes_256_gcm_sha384": TlsCipherSuitesTLSAESTwoFiveSixGCMSHAThreeEightFour, + "tls_ecdhe_ecdsa_with_aes_128_cbc_sha256": TlsCipherSuitesTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_ecdhe_ecdsa_with_aes_128_gcm_sha256": TlsCipherSuitesTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_ecdhe_ecdsa_with_aes_256_gcm_sha384": TlsCipherSuitesTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_ecdhe_rsa_with_aes_128_cbc_sha": TlsCipherSuitesTLSECDHERSAWITHAESOneTwoEightCBCSHA, + "tls_ecdhe_rsa_with_aes_128_cbc_sha256": TlsCipherSuitesTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_ecdhe_rsa_with_aes_128_gcm_sha256": TlsCipherSuitesTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_ecdhe_rsa_with_aes_256_cbc_sha": TlsCipherSuitesTLSECDHERSAWITHAESTwoFiveSixCBCSHA, + "tls_ecdhe_rsa_with_aes_256_cbc_sha384": TlsCipherSuitesTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour, + "tls_ecdhe_rsa_with_aes_256_gcm_sha384": TlsCipherSuitesTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_rsa_with_aes_128_cbc_sha": TlsCipherSuitesTLSRSAWITHAESOneTwoEightCBCSHA, + "tls_rsa_with_aes_128_cbc_sha256": TlsCipherSuitesTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_rsa_with_aes_128_gcm_sha256": TlsCipherSuitesTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_rsa_with_aes_256_cbc_sha": TlsCipherSuitesTLSRSAWITHAESTwoFiveSixCBCSHA, + "tls_rsa_with_aes_256_cbc_sha256": TlsCipherSuitesTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix, + "tls_rsa_with_aes_256_gcm_sha384": TlsCipherSuitesTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TlsCipherSuites(input) + return &out, nil +} + +type TriggeredWebJobStatus string + +const ( + TriggeredWebJobStatusError TriggeredWebJobStatus = "Error" + TriggeredWebJobStatusFailed TriggeredWebJobStatus = "Failed" + TriggeredWebJobStatusSuccess TriggeredWebJobStatus = "Success" +) + +func PossibleValuesForTriggeredWebJobStatus() []string { + return []string{ + string(TriggeredWebJobStatusError), + string(TriggeredWebJobStatusFailed), + string(TriggeredWebJobStatusSuccess), + } +} + +func (s *TriggeredWebJobStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTriggeredWebJobStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTriggeredWebJobStatus(input string) (*TriggeredWebJobStatus, error) { + vals := map[string]TriggeredWebJobStatus{ + "error": TriggeredWebJobStatusError, + "failed": TriggeredWebJobStatusFailed, + "success": TriggeredWebJobStatusSuccess, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TriggeredWebJobStatus(input) + return &out, nil +} + +type UnauthenticatedClientAction string + +const ( + UnauthenticatedClientActionAllowAnonymous UnauthenticatedClientAction = "AllowAnonymous" + UnauthenticatedClientActionRedirectToLoginPage UnauthenticatedClientAction = "RedirectToLoginPage" +) + +func PossibleValuesForUnauthenticatedClientAction() []string { + return []string{ + string(UnauthenticatedClientActionAllowAnonymous), + string(UnauthenticatedClientActionRedirectToLoginPage), + } +} + +func (s *UnauthenticatedClientAction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUnauthenticatedClientAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUnauthenticatedClientAction(input string) (*UnauthenticatedClientAction, error) { + vals := map[string]UnauthenticatedClientAction{ + "allowanonymous": UnauthenticatedClientActionAllowAnonymous, + "redirecttologinpage": UnauthenticatedClientActionRedirectToLoginPage, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UnauthenticatedClientAction(input) + return &out, nil +} + +type UnauthenticatedClientActionV2 string + +const ( + UnauthenticatedClientActionV2AllowAnonymous UnauthenticatedClientActionV2 = "AllowAnonymous" + UnauthenticatedClientActionV2RedirectToLoginPage UnauthenticatedClientActionV2 = "RedirectToLoginPage" + UnauthenticatedClientActionV2ReturnFourZeroOne UnauthenticatedClientActionV2 = "Return401" + UnauthenticatedClientActionV2ReturnFourZeroThree UnauthenticatedClientActionV2 = "Return403" +) + +func PossibleValuesForUnauthenticatedClientActionV2() []string { + return []string{ + string(UnauthenticatedClientActionV2AllowAnonymous), + string(UnauthenticatedClientActionV2RedirectToLoginPage), + string(UnauthenticatedClientActionV2ReturnFourZeroOne), + string(UnauthenticatedClientActionV2ReturnFourZeroThree), + } +} + +func (s *UnauthenticatedClientActionV2) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUnauthenticatedClientActionV2(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUnauthenticatedClientActionV2(input string) (*UnauthenticatedClientActionV2, error) { + vals := map[string]UnauthenticatedClientActionV2{ + "allowanonymous": UnauthenticatedClientActionV2AllowAnonymous, + "redirecttologinpage": UnauthenticatedClientActionV2RedirectToLoginPage, + "return401": UnauthenticatedClientActionV2ReturnFourZeroOne, + "return403": UnauthenticatedClientActionV2ReturnFourZeroThree, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UnauthenticatedClientActionV2(input) + return &out, nil +} + +type UsageState string + +const ( + UsageStateExceeded UsageState = "Exceeded" + UsageStateNormal UsageState = "Normal" +) + +func PossibleValuesForUsageState() []string { + return []string{ + string(UsageStateExceeded), + string(UsageStateNormal), + } +} + +func (s *UsageState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUsageState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUsageState(input string) (*UsageState, error) { + vals := map[string]UsageState{ + "exceeded": UsageStateExceeded, + "normal": UsageStateNormal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UsageState(input) + return &out, nil +} + +type WebJobType string + +const ( + WebJobTypeContinuous WebJobType = "Continuous" + WebJobTypeTriggered WebJobType = "Triggered" +) + +func PossibleValuesForWebJobType() []string { + return []string{ + string(WebJobTypeContinuous), + string(WebJobTypeTriggered), + } +} + +func (s *WebJobType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebJobType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebJobType(input string) (*WebJobType, error) { + vals := map[string]WebJobType{ + "continuous": WebJobTypeContinuous, + "triggered": WebJobTypeTriggered, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebJobType(input) + return &out, nil +} + +type WorkflowHealthState string + +const ( + WorkflowHealthStateHealthy WorkflowHealthState = "Healthy" + WorkflowHealthStateNotSpecified WorkflowHealthState = "NotSpecified" + WorkflowHealthStateUnhealthy WorkflowHealthState = "Unhealthy" + WorkflowHealthStateUnknown WorkflowHealthState = "Unknown" +) + +func PossibleValuesForWorkflowHealthState() []string { + return []string{ + string(WorkflowHealthStateHealthy), + string(WorkflowHealthStateNotSpecified), + string(WorkflowHealthStateUnhealthy), + string(WorkflowHealthStateUnknown), + } +} + +func (s *WorkflowHealthState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWorkflowHealthState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWorkflowHealthState(input string) (*WorkflowHealthState, error) { + vals := map[string]WorkflowHealthState{ + "healthy": WorkflowHealthStateHealthy, + "notspecified": WorkflowHealthStateNotSpecified, + "unhealthy": WorkflowHealthStateUnhealthy, + "unknown": WorkflowHealthStateUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WorkflowHealthState(input) + return &out, nil +} + +type WorkflowState string + +const ( + WorkflowStateCompleted WorkflowState = "Completed" + WorkflowStateDeleted WorkflowState = "Deleted" + WorkflowStateDisabled WorkflowState = "Disabled" + WorkflowStateEnabled WorkflowState = "Enabled" + WorkflowStateNotSpecified WorkflowState = "NotSpecified" + WorkflowStateSuspended WorkflowState = "Suspended" +) + +func PossibleValuesForWorkflowState() []string { + return []string{ + string(WorkflowStateCompleted), + string(WorkflowStateDeleted), + string(WorkflowStateDisabled), + string(WorkflowStateEnabled), + string(WorkflowStateNotSpecified), + string(WorkflowStateSuspended), + } +} + +func (s *WorkflowState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWorkflowState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWorkflowState(input string) (*WorkflowState, error) { + vals := map[string]WorkflowState{ + "completed": WorkflowStateCompleted, + "deleted": WorkflowStateDeleted, + "disabled": WorkflowStateDisabled, + "enabled": WorkflowStateEnabled, + "notspecified": WorkflowStateNotSpecified, + "suspended": WorkflowStateSuspended, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WorkflowState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_appsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_appsetting.go new file mode 100644 index 000000000000..8bbf3e816c3e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_appsetting.go @@ -0,0 +1,136 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = AppSettingId{} + +// AppSettingId is a struct representing the Resource ID for a App Setting +type AppSettingId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + AppSettingKey string +} + +// NewAppSettingID returns a new AppSettingId struct +func NewAppSettingID(subscriptionId string, resourceGroupName string, siteName string, appSettingKey string) AppSettingId { + return AppSettingId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + AppSettingKey: appSettingKey, + } +} + +// ParseAppSettingID parses 'input' into a AppSettingId +func ParseAppSettingID(input string) (*AppSettingId, error) { + parser := resourceids.NewParserFromResourceIdType(AppSettingId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := AppSettingId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseAppSettingIDInsensitively parses 'input' case-insensitively into a AppSettingId +// note: this method should only be used for API response data and not user input +func ParseAppSettingIDInsensitively(input string) (*AppSettingId, error) { + parser := resourceids.NewParserFromResourceIdType(AppSettingId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := AppSettingId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *AppSettingId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.AppSettingKey, ok = input.Parsed["appSettingKey"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "appSettingKey", input) + } + + return nil +} + +// ValidateAppSettingID checks that 'input' can be parsed as a App Setting ID +func ValidateAppSettingID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseAppSettingID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted App Setting ID +func (id AppSettingId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/config/configReferences/appSettings/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.AppSettingKey) +} + +// Segments returns a slice of Resource ID Segments which comprise this App Setting ID +func (id AppSettingId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticConfig", "config", "config"), + resourceids.StaticSegment("staticConfigReferences", "configReferences", "configReferences"), + resourceids.StaticSegment("staticAppSettings", "appSettings", "appSettings"), + resourceids.UserSpecifiedSegment("appSettingKey", "appSettingKeyValue"), + } +} + +// String returns a human-readable description of this App Setting ID +func (id AppSettingId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("App Setting Key: %q", id.AppSettingKey), + } + return fmt.Sprintf("App Setting (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_backup.go new file mode 100644 index 000000000000..5eb75e41c8a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_backup.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = BackupId{} + +// BackupId is a struct representing the Resource ID for a Backup +type BackupId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + BackupId string +} + +// NewBackupID returns a new BackupId struct +func NewBackupID(subscriptionId string, resourceGroupName string, siteName string, backupId string) BackupId { + return BackupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + BackupId: backupId, + } +} + +// ParseBackupID parses 'input' into a BackupId +func ParseBackupID(input string) (*BackupId, error) { + parser := resourceids.NewParserFromResourceIdType(BackupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseBackupIDInsensitively parses 'input' case-insensitively into a BackupId +// note: this method should only be used for API response data and not user input +func ParseBackupIDInsensitively(input string) (*BackupId, error) { + parser := resourceids.NewParserFromResourceIdType(BackupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *BackupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.BackupId, ok = input.Parsed["backupId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "backupId", input) + } + + return nil +} + +// ValidateBackupID checks that 'input' can be parsed as a Backup ID +func ValidateBackupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseBackupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Backup ID +func (id BackupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/backups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.BackupId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Backup ID +func (id BackupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticBackups", "backups", "backups"), + resourceids.UserSpecifiedSegment("backupId", "backupIdValue"), + } +} + +// String returns a human-readable description of this Backup ID +func (id BackupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Backup: %q", id.BackupId), + } + return fmt.Sprintf("Backup (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceappsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceappsetting.go new file mode 100644 index 000000000000..2464de4561fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceappsetting.go @@ -0,0 +1,145 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = ConfigReferenceAppSettingId{} + +// ConfigReferenceAppSettingId is a struct representing the Resource ID for a Config Reference App Setting +type ConfigReferenceAppSettingId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + AppSettingKey string +} + +// NewConfigReferenceAppSettingID returns a new ConfigReferenceAppSettingId struct +func NewConfigReferenceAppSettingID(subscriptionId string, resourceGroupName string, siteName string, slotName string, appSettingKey string) ConfigReferenceAppSettingId { + return ConfigReferenceAppSettingId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + AppSettingKey: appSettingKey, + } +} + +// ParseConfigReferenceAppSettingID parses 'input' into a ConfigReferenceAppSettingId +func ParseConfigReferenceAppSettingID(input string) (*ConfigReferenceAppSettingId, error) { + parser := resourceids.NewParserFromResourceIdType(ConfigReferenceAppSettingId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConfigReferenceAppSettingId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseConfigReferenceAppSettingIDInsensitively parses 'input' case-insensitively into a ConfigReferenceAppSettingId +// note: this method should only be used for API response data and not user input +func ParseConfigReferenceAppSettingIDInsensitively(input string) (*ConfigReferenceAppSettingId, error) { + parser := resourceids.NewParserFromResourceIdType(ConfigReferenceAppSettingId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConfigReferenceAppSettingId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ConfigReferenceAppSettingId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.AppSettingKey, ok = input.Parsed["appSettingKey"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "appSettingKey", input) + } + + return nil +} + +// ValidateConfigReferenceAppSettingID checks that 'input' can be parsed as a Config Reference App Setting ID +func ValidateConfigReferenceAppSettingID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseConfigReferenceAppSettingID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Config Reference App Setting ID +func (id ConfigReferenceAppSettingId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/config/configReferences/appSettings/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.AppSettingKey) +} + +// Segments returns a slice of Resource ID Segments which comprise this Config Reference App Setting ID +func (id ConfigReferenceAppSettingId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticConfig", "config", "config"), + resourceids.StaticSegment("staticConfigReferences", "configReferences", "configReferences"), + resourceids.StaticSegment("staticAppSettings", "appSettings", "appSettings"), + resourceids.UserSpecifiedSegment("appSettingKey", "appSettingKeyValue"), + } +} + +// String returns a human-readable description of this Config Reference App Setting ID +func (id ConfigReferenceAppSettingId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("App Setting Key: %q", id.AppSettingKey), + } + return fmt.Sprintf("Config Reference App Setting (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceconnectionstring.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceconnectionstring.go new file mode 100644 index 000000000000..1b238cdc1a50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceconnectionstring.go @@ -0,0 +1,145 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = ConfigReferenceConnectionStringId{} + +// ConfigReferenceConnectionStringId is a struct representing the Resource ID for a Config Reference Connection String +type ConfigReferenceConnectionStringId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + ConnectionStringKey string +} + +// NewConfigReferenceConnectionStringID returns a new ConfigReferenceConnectionStringId struct +func NewConfigReferenceConnectionStringID(subscriptionId string, resourceGroupName string, siteName string, slotName string, connectionStringKey string) ConfigReferenceConnectionStringId { + return ConfigReferenceConnectionStringId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + ConnectionStringKey: connectionStringKey, + } +} + +// ParseConfigReferenceConnectionStringID parses 'input' into a ConfigReferenceConnectionStringId +func ParseConfigReferenceConnectionStringID(input string) (*ConfigReferenceConnectionStringId, error) { + parser := resourceids.NewParserFromResourceIdType(ConfigReferenceConnectionStringId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConfigReferenceConnectionStringId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseConfigReferenceConnectionStringIDInsensitively parses 'input' case-insensitively into a ConfigReferenceConnectionStringId +// note: this method should only be used for API response data and not user input +func ParseConfigReferenceConnectionStringIDInsensitively(input string) (*ConfigReferenceConnectionStringId, error) { + parser := resourceids.NewParserFromResourceIdType(ConfigReferenceConnectionStringId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConfigReferenceConnectionStringId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ConfigReferenceConnectionStringId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.ConnectionStringKey, ok = input.Parsed["connectionStringKey"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "connectionStringKey", input) + } + + return nil +} + +// ValidateConfigReferenceConnectionStringID checks that 'input' can be parsed as a Config Reference Connection String ID +func ValidateConfigReferenceConnectionStringID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseConfigReferenceConnectionStringID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Config Reference Connection String ID +func (id ConfigReferenceConnectionStringId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/config/configReferences/connectionStrings/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.ConnectionStringKey) +} + +// Segments returns a slice of Resource ID Segments which comprise this Config Reference Connection String ID +func (id ConfigReferenceConnectionStringId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticConfig", "config", "config"), + resourceids.StaticSegment("staticConfigReferences", "configReferences", "configReferences"), + resourceids.StaticSegment("staticConnectionStrings", "connectionStrings", "connectionStrings"), + resourceids.UserSpecifiedSegment("connectionStringKey", "connectionStringKeyValue"), + } +} + +// String returns a human-readable description of this Config Reference Connection String ID +func (id ConfigReferenceConnectionStringId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Connection String Key: %q", id.ConnectionStringKey), + } + return fmt.Sprintf("Config Reference Connection String (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_connectionstring.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_connectionstring.go new file mode 100644 index 000000000000..0026da1c832a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_connectionstring.go @@ -0,0 +1,136 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = ConnectionStringId{} + +// ConnectionStringId is a struct representing the Resource ID for a Connection String +type ConnectionStringId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + ConnectionStringKey string +} + +// NewConnectionStringID returns a new ConnectionStringId struct +func NewConnectionStringID(subscriptionId string, resourceGroupName string, siteName string, connectionStringKey string) ConnectionStringId { + return ConnectionStringId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + ConnectionStringKey: connectionStringKey, + } +} + +// ParseConnectionStringID parses 'input' into a ConnectionStringId +func ParseConnectionStringID(input string) (*ConnectionStringId, error) { + parser := resourceids.NewParserFromResourceIdType(ConnectionStringId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectionStringId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseConnectionStringIDInsensitively parses 'input' case-insensitively into a ConnectionStringId +// note: this method should only be used for API response data and not user input +func ParseConnectionStringIDInsensitively(input string) (*ConnectionStringId, error) { + parser := resourceids.NewParserFromResourceIdType(ConnectionStringId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectionStringId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ConnectionStringId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.ConnectionStringKey, ok = input.Parsed["connectionStringKey"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "connectionStringKey", input) + } + + return nil +} + +// ValidateConnectionStringID checks that 'input' can be parsed as a Connection String ID +func ValidateConnectionStringID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseConnectionStringID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Connection String ID +func (id ConnectionStringId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/config/configReferences/connectionStrings/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.ConnectionStringKey) +} + +// Segments returns a slice of Resource ID Segments which comprise this Connection String ID +func (id ConnectionStringId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticConfig", "config", "config"), + resourceids.StaticSegment("staticConfigReferences", "configReferences", "configReferences"), + resourceids.StaticSegment("staticConnectionStrings", "connectionStrings", "connectionStrings"), + resourceids.UserSpecifiedSegment("connectionStringKey", "connectionStringKeyValue"), + } +} + +// String returns a human-readable description of this Connection String ID +func (id ConnectionStringId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Connection String Key: %q", id.ConnectionStringKey), + } + return fmt.Sprintf("Connection String (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_continuouswebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_continuouswebjob.go new file mode 100644 index 000000000000..db74d01b1ae1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_continuouswebjob.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = ContinuousWebJobId{} + +// ContinuousWebJobId is a struct representing the Resource ID for a Continuous Web Job +type ContinuousWebJobId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + ContinuousWebJobName string +} + +// NewContinuousWebJobID returns a new ContinuousWebJobId struct +func NewContinuousWebJobID(subscriptionId string, resourceGroupName string, siteName string, continuousWebJobName string) ContinuousWebJobId { + return ContinuousWebJobId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + ContinuousWebJobName: continuousWebJobName, + } +} + +// ParseContinuousWebJobID parses 'input' into a ContinuousWebJobId +func ParseContinuousWebJobID(input string) (*ContinuousWebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(ContinuousWebJobId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ContinuousWebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseContinuousWebJobIDInsensitively parses 'input' case-insensitively into a ContinuousWebJobId +// note: this method should only be used for API response data and not user input +func ParseContinuousWebJobIDInsensitively(input string) (*ContinuousWebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(ContinuousWebJobId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ContinuousWebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ContinuousWebJobId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.ContinuousWebJobName, ok = input.Parsed["continuousWebJobName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "continuousWebJobName", input) + } + + return nil +} + +// ValidateContinuousWebJobID checks that 'input' can be parsed as a Continuous Web Job ID +func ValidateContinuousWebJobID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseContinuousWebJobID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Continuous Web Job ID +func (id ContinuousWebJobId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/continuousWebJobs/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.ContinuousWebJobName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Continuous Web Job ID +func (id ContinuousWebJobId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticContinuousWebJobs", "continuousWebJobs", "continuousWebJobs"), + resourceids.UserSpecifiedSegment("continuousWebJobName", "continuousWebJobValue"), + } +} + +// String returns a human-readable description of this Continuous Web Job ID +func (id ContinuousWebJobId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Continuous Web Job Name: %q", id.ContinuousWebJobName), + } + return fmt.Sprintf("Continuous Web Job (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_default.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_default.go new file mode 100644 index 000000000000..2504429e1f3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_default.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = DefaultId{} + +// DefaultId is a struct representing the Resource ID for a Default +type DefaultId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + DefaultName string + KeyName string +} + +// NewDefaultID returns a new DefaultId struct +func NewDefaultID(subscriptionId string, resourceGroupName string, siteName string, defaultName string, keyName string) DefaultId { + return DefaultId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + DefaultName: defaultName, + KeyName: keyName, + } +} + +// ParseDefaultID parses 'input' into a DefaultId +func ParseDefaultID(input string) (*DefaultId, error) { + parser := resourceids.NewParserFromResourceIdType(DefaultId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DefaultId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseDefaultIDInsensitively parses 'input' case-insensitively into a DefaultId +// note: this method should only be used for API response data and not user input +func ParseDefaultIDInsensitively(input string) (*DefaultId, error) { + parser := resourceids.NewParserFromResourceIdType(DefaultId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DefaultId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *DefaultId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.DefaultName, ok = input.Parsed["defaultName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "defaultName", input) + } + + if id.KeyName, ok = input.Parsed["keyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "keyName", input) + } + + return nil +} + +// ValidateDefaultID checks that 'input' can be parsed as a Default ID +func ValidateDefaultID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseDefaultID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Default ID +func (id DefaultId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/host/default/%s/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.DefaultName, id.KeyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Default ID +func (id DefaultId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticHost", "host", "host"), + resourceids.StaticSegment("staticDefault", "default", "default"), + resourceids.UserSpecifiedSegment("defaultName", "defaultValue"), + resourceids.UserSpecifiedSegment("keyName", "keyValue"), + } +} + +// String returns a human-readable description of this Default ID +func (id DefaultId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Default Name: %q", id.DefaultName), + fmt.Sprintf("Key Name: %q", id.KeyName), + } + return fmt.Sprintf("Default (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_deployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_deployment.go new file mode 100644 index 000000000000..b04a811e64df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_deployment.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = DeploymentId{} + +// DeploymentId is a struct representing the Resource ID for a Deployment +type DeploymentId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + DeploymentName string +} + +// NewDeploymentID returns a new DeploymentId struct +func NewDeploymentID(subscriptionId string, resourceGroupName string, siteName string, deploymentName string) DeploymentId { + return DeploymentId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + DeploymentName: deploymentName, + } +} + +// ParseDeploymentID parses 'input' into a DeploymentId +func ParseDeploymentID(input string) (*DeploymentId, error) { + parser := resourceids.NewParserFromResourceIdType(DeploymentId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DeploymentId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseDeploymentIDInsensitively parses 'input' case-insensitively into a DeploymentId +// note: this method should only be used for API response data and not user input +func ParseDeploymentIDInsensitively(input string) (*DeploymentId, error) { + parser := resourceids.NewParserFromResourceIdType(DeploymentId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DeploymentId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *DeploymentId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.DeploymentName, ok = input.Parsed["deploymentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "deploymentName", input) + } + + return nil +} + +// ValidateDeploymentID checks that 'input' can be parsed as a Deployment ID +func ValidateDeploymentID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseDeploymentID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Deployment ID +func (id DeploymentId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/deployments/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.DeploymentName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Deployment ID +func (id DeploymentId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticDeployments", "deployments", "deployments"), + resourceids.UserSpecifiedSegment("deploymentName", "deploymentValue"), + } +} + +// String returns a human-readable description of this Deployment ID +func (id DeploymentId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Deployment Name: %q", id.DeploymentName), + } + return fmt.Sprintf("Deployment (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_domainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_domainownershipidentifier.go new file mode 100644 index 000000000000..4cb36ffe991d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_domainownershipidentifier.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = DomainOwnershipIdentifierId{} + +// DomainOwnershipIdentifierId is a struct representing the Resource ID for a Domain Ownership Identifier +type DomainOwnershipIdentifierId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + DomainOwnershipIdentifierName string +} + +// NewDomainOwnershipIdentifierID returns a new DomainOwnershipIdentifierId struct +func NewDomainOwnershipIdentifierID(subscriptionId string, resourceGroupName string, siteName string, domainOwnershipIdentifierName string) DomainOwnershipIdentifierId { + return DomainOwnershipIdentifierId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + DomainOwnershipIdentifierName: domainOwnershipIdentifierName, + } +} + +// ParseDomainOwnershipIdentifierID parses 'input' into a DomainOwnershipIdentifierId +func ParseDomainOwnershipIdentifierID(input string) (*DomainOwnershipIdentifierId, error) { + parser := resourceids.NewParserFromResourceIdType(DomainOwnershipIdentifierId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DomainOwnershipIdentifierId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseDomainOwnershipIdentifierIDInsensitively parses 'input' case-insensitively into a DomainOwnershipIdentifierId +// note: this method should only be used for API response data and not user input +func ParseDomainOwnershipIdentifierIDInsensitively(input string) (*DomainOwnershipIdentifierId, error) { + parser := resourceids.NewParserFromResourceIdType(DomainOwnershipIdentifierId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DomainOwnershipIdentifierId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *DomainOwnershipIdentifierId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.DomainOwnershipIdentifierName, ok = input.Parsed["domainOwnershipIdentifierName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "domainOwnershipIdentifierName", input) + } + + return nil +} + +// ValidateDomainOwnershipIdentifierID checks that 'input' can be parsed as a Domain Ownership Identifier ID +func ValidateDomainOwnershipIdentifierID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseDomainOwnershipIdentifierID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Domain Ownership Identifier ID +func (id DomainOwnershipIdentifierId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/domainOwnershipIdentifiers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.DomainOwnershipIdentifierName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Domain Ownership Identifier ID +func (id DomainOwnershipIdentifierId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticDomainOwnershipIdentifiers", "domainOwnershipIdentifiers", "domainOwnershipIdentifiers"), + resourceids.UserSpecifiedSegment("domainOwnershipIdentifierName", "domainOwnershipIdentifierValue"), + } +} + +// String returns a human-readable description of this Domain Ownership Identifier ID +func (id DomainOwnershipIdentifierId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Domain Ownership Identifier Name: %q", id.DomainOwnershipIdentifierName), + } + return fmt.Sprintf("Domain Ownership Identifier (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_function.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_function.go new file mode 100644 index 000000000000..50ec22415e9e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_function.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = FunctionId{} + +// FunctionId is a struct representing the Resource ID for a Function +type FunctionId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + FunctionName string +} + +// NewFunctionID returns a new FunctionId struct +func NewFunctionID(subscriptionId string, resourceGroupName string, siteName string, functionName string) FunctionId { + return FunctionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + FunctionName: functionName, + } +} + +// ParseFunctionID parses 'input' into a FunctionId +func ParseFunctionID(input string) (*FunctionId, error) { + parser := resourceids.NewParserFromResourceIdType(FunctionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FunctionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFunctionIDInsensitively parses 'input' case-insensitively into a FunctionId +// note: this method should only be used for API response data and not user input +func ParseFunctionIDInsensitively(input string) (*FunctionId, error) { + parser := resourceids.NewParserFromResourceIdType(FunctionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FunctionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FunctionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.FunctionName, ok = input.Parsed["functionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "functionName", input) + } + + return nil +} + +// ValidateFunctionID checks that 'input' can be parsed as a Function ID +func ValidateFunctionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFunctionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Function ID +func (id FunctionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/functions/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.FunctionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Function ID +func (id FunctionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticFunctions", "functions", "functions"), + resourceids.UserSpecifiedSegment("functionName", "functionValue"), + } +} + +// String returns a human-readable description of this Function ID +func (id FunctionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Function Name: %q", id.FunctionName), + } + return fmt.Sprintf("Function (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_functionkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_functionkey.go new file mode 100644 index 000000000000..8bde4cda1478 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_functionkey.go @@ -0,0 +1,152 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = FunctionKeyId{} + +// FunctionKeyId is a struct representing the Resource ID for a Function Key +type FunctionKeyId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + FunctionName string + KeyName string +} + +// NewFunctionKeyID returns a new FunctionKeyId struct +func NewFunctionKeyID(subscriptionId string, resourceGroupName string, siteName string, slotName string, functionName string, keyName string) FunctionKeyId { + return FunctionKeyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + FunctionName: functionName, + KeyName: keyName, + } +} + +// ParseFunctionKeyID parses 'input' into a FunctionKeyId +func ParseFunctionKeyID(input string) (*FunctionKeyId, error) { + parser := resourceids.NewParserFromResourceIdType(FunctionKeyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FunctionKeyId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFunctionKeyIDInsensitively parses 'input' case-insensitively into a FunctionKeyId +// note: this method should only be used for API response data and not user input +func ParseFunctionKeyIDInsensitively(input string) (*FunctionKeyId, error) { + parser := resourceids.NewParserFromResourceIdType(FunctionKeyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FunctionKeyId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FunctionKeyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.FunctionName, ok = input.Parsed["functionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "functionName", input) + } + + if id.KeyName, ok = input.Parsed["keyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "keyName", input) + } + + return nil +} + +// ValidateFunctionKeyID checks that 'input' can be parsed as a Function Key ID +func ValidateFunctionKeyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFunctionKeyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Function Key ID +func (id FunctionKeyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/functions/%s/keys/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.FunctionName, id.KeyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Function Key ID +func (id FunctionKeyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticFunctions", "functions", "functions"), + resourceids.UserSpecifiedSegment("functionName", "functionValue"), + resourceids.StaticSegment("staticKeys", "keys", "keys"), + resourceids.UserSpecifiedSegment("keyName", "keyValue"), + } +} + +// String returns a human-readable description of this Function Key ID +func (id FunctionKeyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Function Name: %q", id.FunctionName), + fmt.Sprintf("Key Name: %q", id.KeyName), + } + return fmt.Sprintf("Function Key (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_gateway.go new file mode 100644 index 000000000000..89657833244b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_gateway.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = GatewayId{} + +// GatewayId is a struct representing the Resource ID for a Gateway +type GatewayId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + VirtualNetworkConnectionName string + GatewayName string +} + +// NewGatewayID returns a new GatewayId struct +func NewGatewayID(subscriptionId string, resourceGroupName string, siteName string, virtualNetworkConnectionName string, gatewayName string) GatewayId { + return GatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + VirtualNetworkConnectionName: virtualNetworkConnectionName, + GatewayName: gatewayName, + } +} + +// ParseGatewayID parses 'input' into a GatewayId +func ParseGatewayID(input string) (*GatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(GatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := GatewayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseGatewayIDInsensitively parses 'input' case-insensitively into a GatewayId +// note: this method should only be used for API response data and not user input +func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(GatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := GatewayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *GatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.VirtualNetworkConnectionName, ok = input.Parsed["virtualNetworkConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkConnectionName", input) + } + + if id.GatewayName, ok = input.Parsed["gatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "gatewayName", input) + } + + return nil +} + +// ValidateGatewayID checks that 'input' can be parsed as a Gateway ID +func ValidateGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Gateway ID +func (id GatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/virtualNetworkConnections/%s/gateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.VirtualNetworkConnectionName, id.GatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Gateway ID +func (id GatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + resourceids.StaticSegment("staticGateways", "gateways", "gateways"), + resourceids.UserSpecifiedSegment("gatewayName", "gatewayValue"), + } +} + +// String returns a human-readable description of this Gateway ID +func (id GatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Virtual Network Connection Name: %q", id.VirtualNetworkConnectionName), + fmt.Sprintf("Gateway Name: %q", id.GatewayName), + } + return fmt.Sprintf("Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_history.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_history.go new file mode 100644 index 000000000000..1c0ca4de4d61 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_history.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = HistoryId{} + +// HistoryId is a struct representing the Resource ID for a History +type HistoryId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + TriggeredWebJobName string + HistoryName string +} + +// NewHistoryID returns a new HistoryId struct +func NewHistoryID(subscriptionId string, resourceGroupName string, siteName string, triggeredWebJobName string, historyName string) HistoryId { + return HistoryId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + TriggeredWebJobName: triggeredWebJobName, + HistoryName: historyName, + } +} + +// ParseHistoryID parses 'input' into a HistoryId +func ParseHistoryID(input string) (*HistoryId, error) { + parser := resourceids.NewParserFromResourceIdType(HistoryId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HistoryId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseHistoryIDInsensitively parses 'input' case-insensitively into a HistoryId +// note: this method should only be used for API response data and not user input +func ParseHistoryIDInsensitively(input string) (*HistoryId, error) { + parser := resourceids.NewParserFromResourceIdType(HistoryId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HistoryId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *HistoryId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.TriggeredWebJobName, ok = input.Parsed["triggeredWebJobName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "triggeredWebJobName", input) + } + + if id.HistoryName, ok = input.Parsed["historyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "historyName", input) + } + + return nil +} + +// ValidateHistoryID checks that 'input' can be parsed as a History ID +func ValidateHistoryID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseHistoryID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted History ID +func (id HistoryId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/triggeredWebJobs/%s/history/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.TriggeredWebJobName, id.HistoryName) +} + +// Segments returns a slice of Resource ID Segments which comprise this History ID +func (id HistoryId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticTriggeredWebJobs", "triggeredWebJobs", "triggeredWebJobs"), + resourceids.UserSpecifiedSegment("triggeredWebJobName", "triggeredWebJobValue"), + resourceids.StaticSegment("staticHistory", "history", "history"), + resourceids.UserSpecifiedSegment("historyName", "historyValue"), + } +} + +// String returns a human-readable description of this History ID +func (id HistoryId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Triggered Web Job Name: %q", id.TriggeredWebJobName), + fmt.Sprintf("History Name: %q", id.HistoryName), + } + return fmt.Sprintf("History (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostdefault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostdefault.go new file mode 100644 index 000000000000..8786787ad054 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostdefault.go @@ -0,0 +1,152 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = HostDefaultId{} + +// HostDefaultId is a struct representing the Resource ID for a Host Default +type HostDefaultId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + DefaultName string + KeyName string +} + +// NewHostDefaultID returns a new HostDefaultId struct +func NewHostDefaultID(subscriptionId string, resourceGroupName string, siteName string, slotName string, defaultName string, keyName string) HostDefaultId { + return HostDefaultId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + DefaultName: defaultName, + KeyName: keyName, + } +} + +// ParseHostDefaultID parses 'input' into a HostDefaultId +func ParseHostDefaultID(input string) (*HostDefaultId, error) { + parser := resourceids.NewParserFromResourceIdType(HostDefaultId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HostDefaultId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseHostDefaultIDInsensitively parses 'input' case-insensitively into a HostDefaultId +// note: this method should only be used for API response data and not user input +func ParseHostDefaultIDInsensitively(input string) (*HostDefaultId, error) { + parser := resourceids.NewParserFromResourceIdType(HostDefaultId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HostDefaultId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *HostDefaultId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.DefaultName, ok = input.Parsed["defaultName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "defaultName", input) + } + + if id.KeyName, ok = input.Parsed["keyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "keyName", input) + } + + return nil +} + +// ValidateHostDefaultID checks that 'input' can be parsed as a Host Default ID +func ValidateHostDefaultID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseHostDefaultID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Host Default ID +func (id HostDefaultId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/host/default/%s/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.DefaultName, id.KeyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Host Default ID +func (id HostDefaultId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticHost", "host", "host"), + resourceids.StaticSegment("staticDefault", "default", "default"), + resourceids.UserSpecifiedSegment("defaultName", "defaultValue"), + resourceids.UserSpecifiedSegment("keyName", "keyValue"), + } +} + +// String returns a human-readable description of this Host Default ID +func (id HostDefaultId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Default Name: %q", id.DefaultName), + fmt.Sprintf("Key Name: %q", id.KeyName), + } + return fmt.Sprintf("Host Default (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostnamebinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostnamebinding.go new file mode 100644 index 000000000000..445cdd8c1f4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostnamebinding.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = HostNameBindingId{} + +// HostNameBindingId is a struct representing the Resource ID for a Host Name Binding +type HostNameBindingId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + HostNameBindingName string +} + +// NewHostNameBindingID returns a new HostNameBindingId struct +func NewHostNameBindingID(subscriptionId string, resourceGroupName string, siteName string, hostNameBindingName string) HostNameBindingId { + return HostNameBindingId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + HostNameBindingName: hostNameBindingName, + } +} + +// ParseHostNameBindingID parses 'input' into a HostNameBindingId +func ParseHostNameBindingID(input string) (*HostNameBindingId, error) { + parser := resourceids.NewParserFromResourceIdType(HostNameBindingId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HostNameBindingId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseHostNameBindingIDInsensitively parses 'input' case-insensitively into a HostNameBindingId +// note: this method should only be used for API response data and not user input +func ParseHostNameBindingIDInsensitively(input string) (*HostNameBindingId, error) { + parser := resourceids.NewParserFromResourceIdType(HostNameBindingId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HostNameBindingId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *HostNameBindingId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.HostNameBindingName, ok = input.Parsed["hostNameBindingName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hostNameBindingName", input) + } + + return nil +} + +// ValidateHostNameBindingID checks that 'input' can be parsed as a Host Name Binding ID +func ValidateHostNameBindingID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseHostNameBindingID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Host Name Binding ID +func (id HostNameBindingId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/hostNameBindings/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.HostNameBindingName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Host Name Binding ID +func (id HostNameBindingId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticHostNameBindings", "hostNameBindings", "hostNameBindings"), + resourceids.UserSpecifiedSegment("hostNameBindingName", "hostNameBindingValue"), + } +} + +// String returns a human-readable description of this Host Name Binding ID +func (id HostNameBindingId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Host Name Binding Name: %q", id.HostNameBindingName), + } + return fmt.Sprintf("Host Name Binding (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hybridconnection.go new file mode 100644 index 000000000000..05a52ef303ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hybridconnection.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = HybridConnectionId{} + +// HybridConnectionId is a struct representing the Resource ID for a Hybrid Connection +type HybridConnectionId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + HybridConnectionName string +} + +// NewHybridConnectionID returns a new HybridConnectionId struct +func NewHybridConnectionID(subscriptionId string, resourceGroupName string, siteName string, hybridConnectionName string) HybridConnectionId { + return HybridConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + HybridConnectionName: hybridConnectionName, + } +} + +// ParseHybridConnectionID parses 'input' into a HybridConnectionId +func ParseHybridConnectionID(input string) (*HybridConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(HybridConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HybridConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseHybridConnectionIDInsensitively parses 'input' case-insensitively into a HybridConnectionId +// note: this method should only be used for API response data and not user input +func ParseHybridConnectionIDInsensitively(input string) (*HybridConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(HybridConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HybridConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *HybridConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.HybridConnectionName, ok = input.Parsed["hybridConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hybridConnectionName", input) + } + + return nil +} + +// ValidateHybridConnectionID checks that 'input' can be parsed as a Hybrid Connection ID +func ValidateHybridConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseHybridConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Hybrid Connection ID +func (id HybridConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/hybridConnection/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.HybridConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Hybrid Connection ID +func (id HybridConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticHybridConnection", "hybridConnection", "hybridConnection"), + resourceids.UserSpecifiedSegment("hybridConnectionName", "hybridConnectionValue"), + } +} + +// String returns a human-readable description of this Hybrid Connection ID +func (id HybridConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Hybrid Connection Name: %q", id.HybridConnectionName), + } + return fmt.Sprintf("Hybrid Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instance.go new file mode 100644 index 000000000000..b71b552f4a3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instance.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = InstanceId{} + +// InstanceId is a struct representing the Resource ID for a Instance +type InstanceId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + InstanceId string +} + +// NewInstanceID returns a new InstanceId struct +func NewInstanceID(subscriptionId string, resourceGroupName string, siteName string, instanceId string) InstanceId { + return InstanceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + InstanceId: instanceId, + } +} + +// ParseInstanceID parses 'input' into a InstanceId +func ParseInstanceID(input string) (*InstanceId, error) { + parser := resourceids.NewParserFromResourceIdType(InstanceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := InstanceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseInstanceIDInsensitively parses 'input' case-insensitively into a InstanceId +// note: this method should only be used for API response data and not user input +func ParseInstanceIDInsensitively(input string) (*InstanceId, error) { + parser := resourceids.NewParserFromResourceIdType(InstanceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := InstanceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *InstanceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.InstanceId, ok = input.Parsed["instanceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "instanceId", input) + } + + return nil +} + +// ValidateInstanceID checks that 'input' can be parsed as a Instance ID +func ValidateInstanceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseInstanceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Instance ID +func (id InstanceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/instances/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.InstanceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Instance ID +func (id InstanceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticInstances", "instances", "instances"), + resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + } +} + +// String returns a human-readable description of this Instance ID +func (id InstanceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Instance: %q", id.InstanceId), + } + return fmt.Sprintf("Instance (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocess.go new file mode 100644 index 000000000000..d63ca842bbe6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocess.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = InstanceProcessId{} + +// InstanceProcessId is a struct representing the Resource ID for a Instance Process +type InstanceProcessId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + InstanceId string + ProcessId string +} + +// NewInstanceProcessID returns a new InstanceProcessId struct +func NewInstanceProcessID(subscriptionId string, resourceGroupName string, siteName string, instanceId string, processId string) InstanceProcessId { + return InstanceProcessId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + InstanceId: instanceId, + ProcessId: processId, + } +} + +// ParseInstanceProcessID parses 'input' into a InstanceProcessId +func ParseInstanceProcessID(input string) (*InstanceProcessId, error) { + parser := resourceids.NewParserFromResourceIdType(InstanceProcessId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := InstanceProcessId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseInstanceProcessIDInsensitively parses 'input' case-insensitively into a InstanceProcessId +// note: this method should only be used for API response data and not user input +func ParseInstanceProcessIDInsensitively(input string) (*InstanceProcessId, error) { + parser := resourceids.NewParserFromResourceIdType(InstanceProcessId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := InstanceProcessId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *InstanceProcessId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.InstanceId, ok = input.Parsed["instanceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "instanceId", input) + } + + if id.ProcessId, ok = input.Parsed["processId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "processId", input) + } + + return nil +} + +// ValidateInstanceProcessID checks that 'input' can be parsed as a Instance Process ID +func ValidateInstanceProcessID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseInstanceProcessID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Instance Process ID +func (id InstanceProcessId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/instances/%s/processes/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.InstanceId, id.ProcessId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Instance Process ID +func (id InstanceProcessId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticInstances", "instances", "instances"), + resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + resourceids.StaticSegment("staticProcesses", "processes", "processes"), + resourceids.UserSpecifiedSegment("processId", "processIdValue"), + } +} + +// String returns a human-readable description of this Instance Process ID +func (id InstanceProcessId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Instance: %q", id.InstanceId), + fmt.Sprintf("Process: %q", id.ProcessId), + } + return fmt.Sprintf("Instance Process (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocessmodule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocessmodule.go new file mode 100644 index 000000000000..f05e0fc2d205 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocessmodule.go @@ -0,0 +1,152 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = InstanceProcessModuleId{} + +// InstanceProcessModuleId is a struct representing the Resource ID for a Instance Process Module +type InstanceProcessModuleId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + InstanceId string + ProcessId string + ModuleName string +} + +// NewInstanceProcessModuleID returns a new InstanceProcessModuleId struct +func NewInstanceProcessModuleID(subscriptionId string, resourceGroupName string, siteName string, instanceId string, processId string, moduleName string) InstanceProcessModuleId { + return InstanceProcessModuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + InstanceId: instanceId, + ProcessId: processId, + ModuleName: moduleName, + } +} + +// ParseInstanceProcessModuleID parses 'input' into a InstanceProcessModuleId +func ParseInstanceProcessModuleID(input string) (*InstanceProcessModuleId, error) { + parser := resourceids.NewParserFromResourceIdType(InstanceProcessModuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := InstanceProcessModuleId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseInstanceProcessModuleIDInsensitively parses 'input' case-insensitively into a InstanceProcessModuleId +// note: this method should only be used for API response data and not user input +func ParseInstanceProcessModuleIDInsensitively(input string) (*InstanceProcessModuleId, error) { + parser := resourceids.NewParserFromResourceIdType(InstanceProcessModuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := InstanceProcessModuleId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *InstanceProcessModuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.InstanceId, ok = input.Parsed["instanceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "instanceId", input) + } + + if id.ProcessId, ok = input.Parsed["processId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "processId", input) + } + + if id.ModuleName, ok = input.Parsed["moduleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "moduleName", input) + } + + return nil +} + +// ValidateInstanceProcessModuleID checks that 'input' can be parsed as a Instance Process Module ID +func ValidateInstanceProcessModuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseInstanceProcessModuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Instance Process Module ID +func (id InstanceProcessModuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/instances/%s/processes/%s/modules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.InstanceId, id.ProcessId, id.ModuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Instance Process Module ID +func (id InstanceProcessModuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticInstances", "instances", "instances"), + resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + resourceids.StaticSegment("staticProcesses", "processes", "processes"), + resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.StaticSegment("staticModules", "modules", "modules"), + resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + } +} + +// String returns a human-readable description of this Instance Process Module ID +func (id InstanceProcessModuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Instance: %q", id.InstanceId), + fmt.Sprintf("Process: %q", id.ProcessId), + fmt.Sprintf("Module Name: %q", id.ModuleName), + } + return fmt.Sprintf("Instance Process Module (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_key.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_key.go new file mode 100644 index 000000000000..c24d2c752743 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_key.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = KeyId{} + +// KeyId is a struct representing the Resource ID for a Key +type KeyId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + FunctionName string + KeyName string +} + +// NewKeyID returns a new KeyId struct +func NewKeyID(subscriptionId string, resourceGroupName string, siteName string, functionName string, keyName string) KeyId { + return KeyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + FunctionName: functionName, + KeyName: keyName, + } +} + +// ParseKeyID parses 'input' into a KeyId +func ParseKeyID(input string) (*KeyId, error) { + parser := resourceids.NewParserFromResourceIdType(KeyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := KeyId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseKeyIDInsensitively parses 'input' case-insensitively into a KeyId +// note: this method should only be used for API response data and not user input +func ParseKeyIDInsensitively(input string) (*KeyId, error) { + parser := resourceids.NewParserFromResourceIdType(KeyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := KeyId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *KeyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.FunctionName, ok = input.Parsed["functionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "functionName", input) + } + + if id.KeyName, ok = input.Parsed["keyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "keyName", input) + } + + return nil +} + +// ValidateKeyID checks that 'input' can be parsed as a Key ID +func ValidateKeyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseKeyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Key ID +func (id KeyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/functions/%s/keys/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.FunctionName, id.KeyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Key ID +func (id KeyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticFunctions", "functions", "functions"), + resourceids.UserSpecifiedSegment("functionName", "functionValue"), + resourceids.StaticSegment("staticKeys", "keys", "keys"), + resourceids.UserSpecifiedSegment("keyName", "keyValue"), + } +} + +// String returns a human-readable description of this Key ID +func (id KeyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Function Name: %q", id.FunctionName), + fmt.Sprintf("Key Name: %q", id.KeyName), + } + return fmt.Sprintf("Key (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_module.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_module.go new file mode 100644 index 000000000000..4992de297558 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_module.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = ModuleId{} + +// ModuleId is a struct representing the Resource ID for a Module +type ModuleId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + ProcessId string + ModuleName string +} + +// NewModuleID returns a new ModuleId struct +func NewModuleID(subscriptionId string, resourceGroupName string, siteName string, processId string, moduleName string) ModuleId { + return ModuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + ProcessId: processId, + ModuleName: moduleName, + } +} + +// ParseModuleID parses 'input' into a ModuleId +func ParseModuleID(input string) (*ModuleId, error) { + parser := resourceids.NewParserFromResourceIdType(ModuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ModuleId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseModuleIDInsensitively parses 'input' case-insensitively into a ModuleId +// note: this method should only be used for API response data and not user input +func ParseModuleIDInsensitively(input string) (*ModuleId, error) { + parser := resourceids.NewParserFromResourceIdType(ModuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ModuleId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ModuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.ProcessId, ok = input.Parsed["processId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "processId", input) + } + + if id.ModuleName, ok = input.Parsed["moduleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "moduleName", input) + } + + return nil +} + +// ValidateModuleID checks that 'input' can be parsed as a Module ID +func ValidateModuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseModuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Module ID +func (id ModuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/processes/%s/modules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.ProcessId, id.ModuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Module ID +func (id ModuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticProcesses", "processes", "processes"), + resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.StaticSegment("staticModules", "modules", "modules"), + resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + } +} + +// String returns a human-readable description of this Module ID +func (id ModuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Process: %q", id.ProcessId), + fmt.Sprintf("Module Name: %q", id.ModuleName), + } + return fmt.Sprintf("Module (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networkfeature.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networkfeature.go new file mode 100644 index 000000000000..39aca6abdad4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networkfeature.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = NetworkFeatureId{} + +// NetworkFeatureId is a struct representing the Resource ID for a Network Feature +type NetworkFeatureId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + NetworkFeatureName string +} + +// NewNetworkFeatureID returns a new NetworkFeatureId struct +func NewNetworkFeatureID(subscriptionId string, resourceGroupName string, siteName string, networkFeatureName string) NetworkFeatureId { + return NetworkFeatureId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + NetworkFeatureName: networkFeatureName, + } +} + +// ParseNetworkFeatureID parses 'input' into a NetworkFeatureId +func ParseNetworkFeatureID(input string) (*NetworkFeatureId, error) { + parser := resourceids.NewParserFromResourceIdType(NetworkFeatureId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkFeatureId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkFeatureIDInsensitively parses 'input' case-insensitively into a NetworkFeatureId +// note: this method should only be used for API response data and not user input +func ParseNetworkFeatureIDInsensitively(input string) (*NetworkFeatureId, error) { + parser := resourceids.NewParserFromResourceIdType(NetworkFeatureId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkFeatureId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkFeatureId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.NetworkFeatureName, ok = input.Parsed["networkFeatureName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkFeatureName", input) + } + + return nil +} + +// ValidateNetworkFeatureID checks that 'input' can be parsed as a Network Feature ID +func ValidateNetworkFeatureID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkFeatureID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Feature ID +func (id NetworkFeatureId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/networkFeatures/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.NetworkFeatureName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Feature ID +func (id NetworkFeatureId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticNetworkFeatures", "networkFeatures", "networkFeatures"), + resourceids.UserSpecifiedSegment("networkFeatureName", "networkFeatureValue"), + } +} + +// String returns a human-readable description of this Network Feature ID +func (id NetworkFeatureId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Network Feature Name: %q", id.NetworkFeatureName), + } + return fmt.Sprintf("Network Feature (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networktrace.go new file mode 100644 index 000000000000..2649b121ba4a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networktrace.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = NetworkTraceId{} + +// NetworkTraceId is a struct representing the Resource ID for a Network Trace +type NetworkTraceId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + OperationId string +} + +// NewNetworkTraceID returns a new NetworkTraceId struct +func NewNetworkTraceID(subscriptionId string, resourceGroupName string, siteName string, operationId string) NetworkTraceId { + return NetworkTraceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + OperationId: operationId, + } +} + +// ParseNetworkTraceID parses 'input' into a NetworkTraceId +func ParseNetworkTraceID(input string) (*NetworkTraceId, error) { + parser := resourceids.NewParserFromResourceIdType(NetworkTraceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkTraceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkTraceIDInsensitively parses 'input' case-insensitively into a NetworkTraceId +// note: this method should only be used for API response data and not user input +func ParseNetworkTraceIDInsensitively(input string) (*NetworkTraceId, error) { + parser := resourceids.NewParserFromResourceIdType(NetworkTraceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkTraceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkTraceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.OperationId, ok = input.Parsed["operationId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "operationId", input) + } + + return nil +} + +// ValidateNetworkTraceID checks that 'input' can be parsed as a Network Trace ID +func ValidateNetworkTraceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkTraceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Trace ID +func (id NetworkTraceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/networkTrace/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.OperationId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Trace ID +func (id NetworkTraceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticNetworkTrace", "networkTrace", "networkTrace"), + resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + } +} + +// String returns a human-readable description of this Network Trace ID +func (id NetworkTraceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Operation: %q", id.OperationId), + } + return fmt.Sprintf("Network Trace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_premieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_premieraddon.go new file mode 100644 index 000000000000..2d423b516ecd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_premieraddon.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = PremierAddonId{} + +// PremierAddonId is a struct representing the Resource ID for a Premier Addon +type PremierAddonId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + PremierAddonName string +} + +// NewPremierAddonID returns a new PremierAddonId struct +func NewPremierAddonID(subscriptionId string, resourceGroupName string, siteName string, premierAddonName string) PremierAddonId { + return PremierAddonId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + PremierAddonName: premierAddonName, + } +} + +// ParsePremierAddonID parses 'input' into a PremierAddonId +func ParsePremierAddonID(input string) (*PremierAddonId, error) { + parser := resourceids.NewParserFromResourceIdType(PremierAddonId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PremierAddonId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePremierAddonIDInsensitively parses 'input' case-insensitively into a PremierAddonId +// note: this method should only be used for API response data and not user input +func ParsePremierAddonIDInsensitively(input string) (*PremierAddonId, error) { + parser := resourceids.NewParserFromResourceIdType(PremierAddonId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PremierAddonId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PremierAddonId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.PremierAddonName, ok = input.Parsed["premierAddonName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "premierAddonName", input) + } + + return nil +} + +// ValidatePremierAddonID checks that 'input' can be parsed as a Premier Addon ID +func ValidatePremierAddonID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePremierAddonID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Premier Addon ID +func (id PremierAddonId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/premierAddons/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.PremierAddonName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Premier Addon ID +func (id PremierAddonId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticPremierAddons", "premierAddons", "premierAddons"), + resourceids.UserSpecifiedSegment("premierAddonName", "premierAddonValue"), + } +} + +// String returns a human-readable description of this Premier Addon ID +func (id PremierAddonId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Premier Addon Name: %q", id.PremierAddonName), + } + return fmt.Sprintf("Premier Addon (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_privateendpointconnection.go new file mode 100644 index 000000000000..3295084d8a68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_privateendpointconnection.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = PrivateEndpointConnectionId{} + +// PrivateEndpointConnectionId is a struct representing the Resource ID for a Private Endpoint Connection +type PrivateEndpointConnectionId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + PrivateEndpointConnectionName string +} + +// NewPrivateEndpointConnectionID returns a new PrivateEndpointConnectionId struct +func NewPrivateEndpointConnectionID(subscriptionId string, resourceGroupName string, siteName string, privateEndpointConnectionName string) PrivateEndpointConnectionId { + return PrivateEndpointConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + PrivateEndpointConnectionName: privateEndpointConnectionName, + } +} + +// ParsePrivateEndpointConnectionID parses 'input' into a PrivateEndpointConnectionId +func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(PrivateEndpointConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateEndpointConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePrivateEndpointConnectionIDInsensitively parses 'input' case-insensitively into a PrivateEndpointConnectionId +// note: this method should only be used for API response data and not user input +func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpointConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(PrivateEndpointConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateEndpointConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PrivateEndpointConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.PrivateEndpointConnectionName, ok = input.Parsed["privateEndpointConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointConnectionName", input) + } + + return nil +} + +// ValidatePrivateEndpointConnectionID checks that 'input' can be parsed as a Private Endpoint Connection ID +func ValidatePrivateEndpointConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePrivateEndpointConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Private Endpoint Connection ID +func (id PrivateEndpointConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/privateEndpointConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.PrivateEndpointConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Private Endpoint Connection ID +func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + } +} + +// String returns a human-readable description of this Private Endpoint Connection ID +func (id PrivateEndpointConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Private Endpoint Connection Name: %q", id.PrivateEndpointConnectionName), + } + return fmt.Sprintf("Private Endpoint Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_process.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_process.go new file mode 100644 index 000000000000..8bad3c8ed487 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_process.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = ProcessId{} + +// ProcessId is a struct representing the Resource ID for a Process +type ProcessId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + ProcessId string +} + +// NewProcessID returns a new ProcessId struct +func NewProcessID(subscriptionId string, resourceGroupName string, siteName string, processId string) ProcessId { + return ProcessId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + ProcessId: processId, + } +} + +// ParseProcessID parses 'input' into a ProcessId +func ParseProcessID(input string) (*ProcessId, error) { + parser := resourceids.NewParserFromResourceIdType(ProcessId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProcessId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseProcessIDInsensitively parses 'input' case-insensitively into a ProcessId +// note: this method should only be used for API response data and not user input +func ParseProcessIDInsensitively(input string) (*ProcessId, error) { + parser := resourceids.NewParserFromResourceIdType(ProcessId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProcessId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ProcessId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.ProcessId, ok = input.Parsed["processId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "processId", input) + } + + return nil +} + +// ValidateProcessID checks that 'input' can be parsed as a Process ID +func ValidateProcessID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseProcessID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Process ID +func (id ProcessId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/processes/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.ProcessId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Process ID +func (id ProcessId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticProcesses", "processes", "processes"), + resourceids.UserSpecifiedSegment("processId", "processIdValue"), + } +} + +// String returns a human-readable description of this Process ID +func (id ProcessId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Process: %q", id.ProcessId), + } + return fmt.Sprintf("Process (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_processmodule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_processmodule.go new file mode 100644 index 000000000000..b4c90cb7011c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_processmodule.go @@ -0,0 +1,152 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = ProcessModuleId{} + +// ProcessModuleId is a struct representing the Resource ID for a Process Module +type ProcessModuleId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + ProcessId string + ModuleName string +} + +// NewProcessModuleID returns a new ProcessModuleId struct +func NewProcessModuleID(subscriptionId string, resourceGroupName string, siteName string, slotName string, processId string, moduleName string) ProcessModuleId { + return ProcessModuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + ProcessId: processId, + ModuleName: moduleName, + } +} + +// ParseProcessModuleID parses 'input' into a ProcessModuleId +func ParseProcessModuleID(input string) (*ProcessModuleId, error) { + parser := resourceids.NewParserFromResourceIdType(ProcessModuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProcessModuleId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseProcessModuleIDInsensitively parses 'input' case-insensitively into a ProcessModuleId +// note: this method should only be used for API response data and not user input +func ParseProcessModuleIDInsensitively(input string) (*ProcessModuleId, error) { + parser := resourceids.NewParserFromResourceIdType(ProcessModuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProcessModuleId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ProcessModuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.ProcessId, ok = input.Parsed["processId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "processId", input) + } + + if id.ModuleName, ok = input.Parsed["moduleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "moduleName", input) + } + + return nil +} + +// ValidateProcessModuleID checks that 'input' can be parsed as a Process Module ID +func ValidateProcessModuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseProcessModuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Process Module ID +func (id ProcessModuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/processes/%s/modules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.ProcessId, id.ModuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Process Module ID +func (id ProcessModuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticProcesses", "processes", "processes"), + resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.StaticSegment("staticModules", "modules", "modules"), + resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + } +} + +// String returns a human-readable description of this Process Module ID +func (id ProcessModuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Process: %q", id.ProcessId), + fmt.Sprintf("Module Name: %q", id.ModuleName), + } + return fmt.Sprintf("Process Module (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_publiccertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_publiccertificate.go new file mode 100644 index 000000000000..5af96c29d89f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_publiccertificate.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = PublicCertificateId{} + +// PublicCertificateId is a struct representing the Resource ID for a Public Certificate +type PublicCertificateId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + PublicCertificateName string +} + +// NewPublicCertificateID returns a new PublicCertificateId struct +func NewPublicCertificateID(subscriptionId string, resourceGroupName string, siteName string, publicCertificateName string) PublicCertificateId { + return PublicCertificateId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + PublicCertificateName: publicCertificateName, + } +} + +// ParsePublicCertificateID parses 'input' into a PublicCertificateId +func ParsePublicCertificateID(input string) (*PublicCertificateId, error) { + parser := resourceids.NewParserFromResourceIdType(PublicCertificateId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PublicCertificateId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePublicCertificateIDInsensitively parses 'input' case-insensitively into a PublicCertificateId +// note: this method should only be used for API response data and not user input +func ParsePublicCertificateIDInsensitively(input string) (*PublicCertificateId, error) { + parser := resourceids.NewParserFromResourceIdType(PublicCertificateId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PublicCertificateId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PublicCertificateId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.PublicCertificateName, ok = input.Parsed["publicCertificateName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "publicCertificateName", input) + } + + return nil +} + +// ValidatePublicCertificateID checks that 'input' can be parsed as a Public Certificate ID +func ValidatePublicCertificateID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePublicCertificateID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Public Certificate ID +func (id PublicCertificateId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/publicCertificates/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.PublicCertificateName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Public Certificate ID +func (id PublicCertificateId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticPublicCertificates", "publicCertificates", "publicCertificates"), + resourceids.UserSpecifiedSegment("publicCertificateName", "publicCertificateValue"), + } +} + +// String returns a human-readable description of this Public Certificate ID +func (id PublicCertificateId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Public Certificate Name: %q", id.PublicCertificateName), + } + return fmt.Sprintf("Public Certificate (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_relay.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_relay.go new file mode 100644 index 000000000000..b7ef581f1587 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_relay.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = RelayId{} + +// RelayId is a struct representing the Resource ID for a Relay +type RelayId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + HybridConnectionNamespaceName string + RelayName string +} + +// NewRelayID returns a new RelayId struct +func NewRelayID(subscriptionId string, resourceGroupName string, siteName string, hybridConnectionNamespaceName string, relayName string) RelayId { + return RelayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + HybridConnectionNamespaceName: hybridConnectionNamespaceName, + RelayName: relayName, + } +} + +// ParseRelayID parses 'input' into a RelayId +func ParseRelayID(input string) (*RelayId, error) { + parser := resourceids.NewParserFromResourceIdType(RelayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RelayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRelayIDInsensitively parses 'input' case-insensitively into a RelayId +// note: this method should only be used for API response data and not user input +func ParseRelayIDInsensitively(input string) (*RelayId, error) { + parser := resourceids.NewParserFromResourceIdType(RelayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RelayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RelayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.HybridConnectionNamespaceName, ok = input.Parsed["hybridConnectionNamespaceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hybridConnectionNamespaceName", input) + } + + if id.RelayName, ok = input.Parsed["relayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "relayName", input) + } + + return nil +} + +// ValidateRelayID checks that 'input' can be parsed as a Relay ID +func ValidateRelayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRelayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Relay ID +func (id RelayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/hybridConnectionNamespaces/%s/relays/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.HybridConnectionNamespaceName, id.RelayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Relay ID +func (id RelayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticHybridConnectionNamespaces", "hybridConnectionNamespaces", "hybridConnectionNamespaces"), + resourceids.UserSpecifiedSegment("hybridConnectionNamespaceName", "hybridConnectionNamespaceValue"), + resourceids.StaticSegment("staticRelays", "relays", "relays"), + resourceids.UserSpecifiedSegment("relayName", "relayValue"), + } +} + +// String returns a human-readable description of this Relay ID +func (id RelayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Hybrid Connection Namespace Name: %q", id.HybridConnectionNamespaceName), + fmt.Sprintf("Relay Name: %q", id.RelayName), + } + return fmt.Sprintf("Relay (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteextension.go new file mode 100644 index 000000000000..24bc8cfac4ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteextension.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SiteExtensionId{} + +// SiteExtensionId is a struct representing the Resource ID for a Site Extension +type SiteExtensionId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SiteExtensionId string +} + +// NewSiteExtensionID returns a new SiteExtensionId struct +func NewSiteExtensionID(subscriptionId string, resourceGroupName string, siteName string, siteExtensionId string) SiteExtensionId { + return SiteExtensionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SiteExtensionId: siteExtensionId, + } +} + +// ParseSiteExtensionID parses 'input' into a SiteExtensionId +func ParseSiteExtensionID(input string) (*SiteExtensionId, error) { + parser := resourceids.NewParserFromResourceIdType(SiteExtensionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SiteExtensionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSiteExtensionIDInsensitively parses 'input' case-insensitively into a SiteExtensionId +// note: this method should only be used for API response data and not user input +func ParseSiteExtensionIDInsensitively(input string) (*SiteExtensionId, error) { + parser := resourceids.NewParserFromResourceIdType(SiteExtensionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SiteExtensionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SiteExtensionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SiteExtensionId, ok = input.Parsed["siteExtensionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteExtensionId", input) + } + + return nil +} + +// ValidateSiteExtensionID checks that 'input' can be parsed as a Site Extension ID +func ValidateSiteExtensionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSiteExtensionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Site Extension ID +func (id SiteExtensionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/siteExtensions/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SiteExtensionId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Site Extension ID +func (id SiteExtensionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSiteExtensions", "siteExtensions", "siteExtensions"), + resourceids.UserSpecifiedSegment("siteExtensionId", "siteExtensionIdValue"), + } +} + +// String returns a human-readable description of this Site Extension ID +func (id SiteExtensionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Site Extension: %q", id.SiteExtensionId), + } + return fmt.Sprintf("Site Extension (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_sitenetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_sitenetworktrace.go new file mode 100644 index 000000000000..5e6ddf37b2f3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_sitenetworktrace.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SiteNetworkTraceId{} + +// SiteNetworkTraceId is a struct representing the Resource ID for a Site Network Trace +type SiteNetworkTraceId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + OperationId string +} + +// NewSiteNetworkTraceID returns a new SiteNetworkTraceId struct +func NewSiteNetworkTraceID(subscriptionId string, resourceGroupName string, siteName string, operationId string) SiteNetworkTraceId { + return SiteNetworkTraceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + OperationId: operationId, + } +} + +// ParseSiteNetworkTraceID parses 'input' into a SiteNetworkTraceId +func ParseSiteNetworkTraceID(input string) (*SiteNetworkTraceId, error) { + parser := resourceids.NewParserFromResourceIdType(SiteNetworkTraceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SiteNetworkTraceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSiteNetworkTraceIDInsensitively parses 'input' case-insensitively into a SiteNetworkTraceId +// note: this method should only be used for API response data and not user input +func ParseSiteNetworkTraceIDInsensitively(input string) (*SiteNetworkTraceId, error) { + parser := resourceids.NewParserFromResourceIdType(SiteNetworkTraceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SiteNetworkTraceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SiteNetworkTraceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.OperationId, ok = input.Parsed["operationId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "operationId", input) + } + + return nil +} + +// ValidateSiteNetworkTraceID checks that 'input' can be parsed as a Site Network Trace ID +func ValidateSiteNetworkTraceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSiteNetworkTraceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Site Network Trace ID +func (id SiteNetworkTraceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/networkTraces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.OperationId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Site Network Trace ID +func (id SiteNetworkTraceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticNetworkTraces", "networkTraces", "networkTraces"), + resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + } +} + +// String returns a human-readable description of this Site Network Trace ID +func (id SiteNetworkTraceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Operation: %q", id.OperationId), + } + return fmt.Sprintf("Site Network Trace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteslotnetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteslotnetworktrace.go new file mode 100644 index 000000000000..5c23156040b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteslotnetworktrace.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SiteSlotNetworkTraceId{} + +// SiteSlotNetworkTraceId is a struct representing the Resource ID for a Site Slot Network Trace +type SiteSlotNetworkTraceId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + OperationId string +} + +// NewSiteSlotNetworkTraceID returns a new SiteSlotNetworkTraceId struct +func NewSiteSlotNetworkTraceID(subscriptionId string, resourceGroupName string, siteName string, slotName string, operationId string) SiteSlotNetworkTraceId { + return SiteSlotNetworkTraceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + OperationId: operationId, + } +} + +// ParseSiteSlotNetworkTraceID parses 'input' into a SiteSlotNetworkTraceId +func ParseSiteSlotNetworkTraceID(input string) (*SiteSlotNetworkTraceId, error) { + parser := resourceids.NewParserFromResourceIdType(SiteSlotNetworkTraceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SiteSlotNetworkTraceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSiteSlotNetworkTraceIDInsensitively parses 'input' case-insensitively into a SiteSlotNetworkTraceId +// note: this method should only be used for API response data and not user input +func ParseSiteSlotNetworkTraceIDInsensitively(input string) (*SiteSlotNetworkTraceId, error) { + parser := resourceids.NewParserFromResourceIdType(SiteSlotNetworkTraceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SiteSlotNetworkTraceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SiteSlotNetworkTraceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.OperationId, ok = input.Parsed["operationId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "operationId", input) + } + + return nil +} + +// ValidateSiteSlotNetworkTraceID checks that 'input' can be parsed as a Site Slot Network Trace ID +func ValidateSiteSlotNetworkTraceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSiteSlotNetworkTraceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Site Slot Network Trace ID +func (id SiteSlotNetworkTraceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/networkTraces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.OperationId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Site Slot Network Trace ID +func (id SiteSlotNetworkTraceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticNetworkTraces", "networkTraces", "networkTraces"), + resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + } +} + +// String returns a human-readable description of this Site Slot Network Trace ID +func (id SiteSlotNetworkTraceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Operation: %q", id.OperationId), + } + return fmt.Sprintf("Site Slot Network Trace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slot.go new file mode 100644 index 000000000000..e15a92882f12 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slot.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotId{} + +// SlotId is a struct representing the Resource ID for a Slot +type SlotId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string +} + +// NewSlotID returns a new SlotId struct +func NewSlotID(subscriptionId string, resourceGroupName string, siteName string, slotName string) SlotId { + return SlotId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + } +} + +// ParseSlotID parses 'input' into a SlotId +func ParseSlotID(input string) (*SlotId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotIDInsensitively parses 'input' case-insensitively into a SlotId +// note: this method should only be used for API response data and not user input +func ParseSlotIDInsensitively(input string) (*SlotId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + return nil +} + +// ValidateSlotID checks that 'input' can be parsed as a Slot ID +func ValidateSlotID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot ID +func (id SlotId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot ID +func (id SlotId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + } +} + +// String returns a human-readable description of this Slot ID +func (id SlotId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + } + return fmt.Sprintf("Slot (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotbackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotbackup.go new file mode 100644 index 000000000000..196d2ef77990 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotbackup.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotBackupId{} + +// SlotBackupId is a struct representing the Resource ID for a Slot Backup +type SlotBackupId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + BackupId string +} + +// NewSlotBackupID returns a new SlotBackupId struct +func NewSlotBackupID(subscriptionId string, resourceGroupName string, siteName string, slotName string, backupId string) SlotBackupId { + return SlotBackupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + BackupId: backupId, + } +} + +// ParseSlotBackupID parses 'input' into a SlotBackupId +func ParseSlotBackupID(input string) (*SlotBackupId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotBackupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotBackupId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotBackupIDInsensitively parses 'input' case-insensitively into a SlotBackupId +// note: this method should only be used for API response data and not user input +func ParseSlotBackupIDInsensitively(input string) (*SlotBackupId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotBackupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotBackupId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotBackupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.BackupId, ok = input.Parsed["backupId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "backupId", input) + } + + return nil +} + +// ValidateSlotBackupID checks that 'input' can be parsed as a Slot Backup ID +func ValidateSlotBackupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotBackupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Backup ID +func (id SlotBackupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/backups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.BackupId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Backup ID +func (id SlotBackupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticBackups", "backups", "backups"), + resourceids.UserSpecifiedSegment("backupId", "backupIdValue"), + } +} + +// String returns a human-readable description of this Slot Backup ID +func (id SlotBackupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Backup: %q", id.BackupId), + } + return fmt.Sprintf("Slot Backup (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotcontinuouswebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotcontinuouswebjob.go new file mode 100644 index 000000000000..fdacebe446ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotcontinuouswebjob.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotContinuousWebJobId{} + +// SlotContinuousWebJobId is a struct representing the Resource ID for a Slot Continuous Web Job +type SlotContinuousWebJobId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + ContinuousWebJobName string +} + +// NewSlotContinuousWebJobID returns a new SlotContinuousWebJobId struct +func NewSlotContinuousWebJobID(subscriptionId string, resourceGroupName string, siteName string, slotName string, continuousWebJobName string) SlotContinuousWebJobId { + return SlotContinuousWebJobId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + ContinuousWebJobName: continuousWebJobName, + } +} + +// ParseSlotContinuousWebJobID parses 'input' into a SlotContinuousWebJobId +func ParseSlotContinuousWebJobID(input string) (*SlotContinuousWebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotContinuousWebJobId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotContinuousWebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotContinuousWebJobIDInsensitively parses 'input' case-insensitively into a SlotContinuousWebJobId +// note: this method should only be used for API response data and not user input +func ParseSlotContinuousWebJobIDInsensitively(input string) (*SlotContinuousWebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotContinuousWebJobId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotContinuousWebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotContinuousWebJobId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.ContinuousWebJobName, ok = input.Parsed["continuousWebJobName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "continuousWebJobName", input) + } + + return nil +} + +// ValidateSlotContinuousWebJobID checks that 'input' can be parsed as a Slot Continuous Web Job ID +func ValidateSlotContinuousWebJobID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotContinuousWebJobID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Continuous Web Job ID +func (id SlotContinuousWebJobId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/continuousWebJobs/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.ContinuousWebJobName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Continuous Web Job ID +func (id SlotContinuousWebJobId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticContinuousWebJobs", "continuousWebJobs", "continuousWebJobs"), + resourceids.UserSpecifiedSegment("continuousWebJobName", "continuousWebJobValue"), + } +} + +// String returns a human-readable description of this Slot Continuous Web Job ID +func (id SlotContinuousWebJobId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Continuous Web Job Name: %q", id.ContinuousWebJobName), + } + return fmt.Sprintf("Slot Continuous Web Job (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdeployment.go new file mode 100644 index 000000000000..1c06c19237bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdeployment.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotDeploymentId{} + +// SlotDeploymentId is a struct representing the Resource ID for a Slot Deployment +type SlotDeploymentId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + DeploymentName string +} + +// NewSlotDeploymentID returns a new SlotDeploymentId struct +func NewSlotDeploymentID(subscriptionId string, resourceGroupName string, siteName string, slotName string, deploymentName string) SlotDeploymentId { + return SlotDeploymentId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + DeploymentName: deploymentName, + } +} + +// ParseSlotDeploymentID parses 'input' into a SlotDeploymentId +func ParseSlotDeploymentID(input string) (*SlotDeploymentId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotDeploymentId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotDeploymentId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotDeploymentIDInsensitively parses 'input' case-insensitively into a SlotDeploymentId +// note: this method should only be used for API response data and not user input +func ParseSlotDeploymentIDInsensitively(input string) (*SlotDeploymentId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotDeploymentId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotDeploymentId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotDeploymentId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.DeploymentName, ok = input.Parsed["deploymentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "deploymentName", input) + } + + return nil +} + +// ValidateSlotDeploymentID checks that 'input' can be parsed as a Slot Deployment ID +func ValidateSlotDeploymentID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotDeploymentID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Deployment ID +func (id SlotDeploymentId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/deployments/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.DeploymentName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Deployment ID +func (id SlotDeploymentId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticDeployments", "deployments", "deployments"), + resourceids.UserSpecifiedSegment("deploymentName", "deploymentValue"), + } +} + +// String returns a human-readable description of this Slot Deployment ID +func (id SlotDeploymentId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Deployment Name: %q", id.DeploymentName), + } + return fmt.Sprintf("Slot Deployment (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdomainownershipidentifier.go new file mode 100644 index 000000000000..a204baad7348 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdomainownershipidentifier.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotDomainOwnershipIdentifierId{} + +// SlotDomainOwnershipIdentifierId is a struct representing the Resource ID for a Slot Domain Ownership Identifier +type SlotDomainOwnershipIdentifierId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + DomainOwnershipIdentifierName string +} + +// NewSlotDomainOwnershipIdentifierID returns a new SlotDomainOwnershipIdentifierId struct +func NewSlotDomainOwnershipIdentifierID(subscriptionId string, resourceGroupName string, siteName string, slotName string, domainOwnershipIdentifierName string) SlotDomainOwnershipIdentifierId { + return SlotDomainOwnershipIdentifierId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + DomainOwnershipIdentifierName: domainOwnershipIdentifierName, + } +} + +// ParseSlotDomainOwnershipIdentifierID parses 'input' into a SlotDomainOwnershipIdentifierId +func ParseSlotDomainOwnershipIdentifierID(input string) (*SlotDomainOwnershipIdentifierId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotDomainOwnershipIdentifierId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotDomainOwnershipIdentifierId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotDomainOwnershipIdentifierIDInsensitively parses 'input' case-insensitively into a SlotDomainOwnershipIdentifierId +// note: this method should only be used for API response data and not user input +func ParseSlotDomainOwnershipIdentifierIDInsensitively(input string) (*SlotDomainOwnershipIdentifierId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotDomainOwnershipIdentifierId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotDomainOwnershipIdentifierId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotDomainOwnershipIdentifierId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.DomainOwnershipIdentifierName, ok = input.Parsed["domainOwnershipIdentifierName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "domainOwnershipIdentifierName", input) + } + + return nil +} + +// ValidateSlotDomainOwnershipIdentifierID checks that 'input' can be parsed as a Slot Domain Ownership Identifier ID +func ValidateSlotDomainOwnershipIdentifierID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotDomainOwnershipIdentifierID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Domain Ownership Identifier ID +func (id SlotDomainOwnershipIdentifierId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/domainOwnershipIdentifiers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.DomainOwnershipIdentifierName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Domain Ownership Identifier ID +func (id SlotDomainOwnershipIdentifierId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticDomainOwnershipIdentifiers", "domainOwnershipIdentifiers", "domainOwnershipIdentifiers"), + resourceids.UserSpecifiedSegment("domainOwnershipIdentifierName", "domainOwnershipIdentifierValue"), + } +} + +// String returns a human-readable description of this Slot Domain Ownership Identifier ID +func (id SlotDomainOwnershipIdentifierId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Domain Ownership Identifier Name: %q", id.DomainOwnershipIdentifierName), + } + return fmt.Sprintf("Slot Domain Ownership Identifier (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotfunction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotfunction.go new file mode 100644 index 000000000000..47101ae28cb8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotfunction.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotFunctionId{} + +// SlotFunctionId is a struct representing the Resource ID for a Slot Function +type SlotFunctionId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + FunctionName string +} + +// NewSlotFunctionID returns a new SlotFunctionId struct +func NewSlotFunctionID(subscriptionId string, resourceGroupName string, siteName string, slotName string, functionName string) SlotFunctionId { + return SlotFunctionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + FunctionName: functionName, + } +} + +// ParseSlotFunctionID parses 'input' into a SlotFunctionId +func ParseSlotFunctionID(input string) (*SlotFunctionId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotFunctionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotFunctionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotFunctionIDInsensitively parses 'input' case-insensitively into a SlotFunctionId +// note: this method should only be used for API response data and not user input +func ParseSlotFunctionIDInsensitively(input string) (*SlotFunctionId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotFunctionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotFunctionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotFunctionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.FunctionName, ok = input.Parsed["functionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "functionName", input) + } + + return nil +} + +// ValidateSlotFunctionID checks that 'input' can be parsed as a Slot Function ID +func ValidateSlotFunctionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotFunctionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Function ID +func (id SlotFunctionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/functions/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.FunctionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Function ID +func (id SlotFunctionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticFunctions", "functions", "functions"), + resourceids.UserSpecifiedSegment("functionName", "functionValue"), + } +} + +// String returns a human-readable description of this Slot Function ID +func (id SlotFunctionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Function Name: %q", id.FunctionName), + } + return fmt.Sprintf("Slot Function (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothostnamebinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothostnamebinding.go new file mode 100644 index 000000000000..9b914c92db9a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothostnamebinding.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotHostNameBindingId{} + +// SlotHostNameBindingId is a struct representing the Resource ID for a Slot Host Name Binding +type SlotHostNameBindingId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + HostNameBindingName string +} + +// NewSlotHostNameBindingID returns a new SlotHostNameBindingId struct +func NewSlotHostNameBindingID(subscriptionId string, resourceGroupName string, siteName string, slotName string, hostNameBindingName string) SlotHostNameBindingId { + return SlotHostNameBindingId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + HostNameBindingName: hostNameBindingName, + } +} + +// ParseSlotHostNameBindingID parses 'input' into a SlotHostNameBindingId +func ParseSlotHostNameBindingID(input string) (*SlotHostNameBindingId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotHostNameBindingId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotHostNameBindingId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotHostNameBindingIDInsensitively parses 'input' case-insensitively into a SlotHostNameBindingId +// note: this method should only be used for API response data and not user input +func ParseSlotHostNameBindingIDInsensitively(input string) (*SlotHostNameBindingId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotHostNameBindingId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotHostNameBindingId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotHostNameBindingId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.HostNameBindingName, ok = input.Parsed["hostNameBindingName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hostNameBindingName", input) + } + + return nil +} + +// ValidateSlotHostNameBindingID checks that 'input' can be parsed as a Slot Host Name Binding ID +func ValidateSlotHostNameBindingID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotHostNameBindingID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Host Name Binding ID +func (id SlotHostNameBindingId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/hostNameBindings/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.HostNameBindingName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Host Name Binding ID +func (id SlotHostNameBindingId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticHostNameBindings", "hostNameBindings", "hostNameBindings"), + resourceids.UserSpecifiedSegment("hostNameBindingName", "hostNameBindingValue"), + } +} + +// String returns a human-readable description of this Slot Host Name Binding ID +func (id SlotHostNameBindingId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Host Name Binding Name: %q", id.HostNameBindingName), + } + return fmt.Sprintf("Slot Host Name Binding (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnection.go new file mode 100644 index 000000000000..6d48ba38f6c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnection.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotHybridConnectionId{} + +// SlotHybridConnectionId is a struct representing the Resource ID for a Slot Hybrid Connection +type SlotHybridConnectionId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + HybridConnectionName string +} + +// NewSlotHybridConnectionID returns a new SlotHybridConnectionId struct +func NewSlotHybridConnectionID(subscriptionId string, resourceGroupName string, siteName string, slotName string, hybridConnectionName string) SlotHybridConnectionId { + return SlotHybridConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + HybridConnectionName: hybridConnectionName, + } +} + +// ParseSlotHybridConnectionID parses 'input' into a SlotHybridConnectionId +func ParseSlotHybridConnectionID(input string) (*SlotHybridConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotHybridConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotHybridConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotHybridConnectionIDInsensitively parses 'input' case-insensitively into a SlotHybridConnectionId +// note: this method should only be used for API response data and not user input +func ParseSlotHybridConnectionIDInsensitively(input string) (*SlotHybridConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotHybridConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotHybridConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotHybridConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.HybridConnectionName, ok = input.Parsed["hybridConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hybridConnectionName", input) + } + + return nil +} + +// ValidateSlotHybridConnectionID checks that 'input' can be parsed as a Slot Hybrid Connection ID +func ValidateSlotHybridConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotHybridConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Hybrid Connection ID +func (id SlotHybridConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/hybridConnection/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.HybridConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Hybrid Connection ID +func (id SlotHybridConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticHybridConnection", "hybridConnection", "hybridConnection"), + resourceids.UserSpecifiedSegment("hybridConnectionName", "hybridConnectionValue"), + } +} + +// String returns a human-readable description of this Slot Hybrid Connection ID +func (id SlotHybridConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Hybrid Connection Name: %q", id.HybridConnectionName), + } + return fmt.Sprintf("Slot Hybrid Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnectionnamespacerelay.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnectionnamespacerelay.go new file mode 100644 index 000000000000..3822d459f6a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnectionnamespacerelay.go @@ -0,0 +1,152 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotHybridConnectionNamespaceRelayId{} + +// SlotHybridConnectionNamespaceRelayId is a struct representing the Resource ID for a Slot Hybrid Connection Namespace Relay +type SlotHybridConnectionNamespaceRelayId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + HybridConnectionNamespaceName string + RelayName string +} + +// NewSlotHybridConnectionNamespaceRelayID returns a new SlotHybridConnectionNamespaceRelayId struct +func NewSlotHybridConnectionNamespaceRelayID(subscriptionId string, resourceGroupName string, siteName string, slotName string, hybridConnectionNamespaceName string, relayName string) SlotHybridConnectionNamespaceRelayId { + return SlotHybridConnectionNamespaceRelayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + HybridConnectionNamespaceName: hybridConnectionNamespaceName, + RelayName: relayName, + } +} + +// ParseSlotHybridConnectionNamespaceRelayID parses 'input' into a SlotHybridConnectionNamespaceRelayId +func ParseSlotHybridConnectionNamespaceRelayID(input string) (*SlotHybridConnectionNamespaceRelayId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotHybridConnectionNamespaceRelayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotHybridConnectionNamespaceRelayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotHybridConnectionNamespaceRelayIDInsensitively parses 'input' case-insensitively into a SlotHybridConnectionNamespaceRelayId +// note: this method should only be used for API response data and not user input +func ParseSlotHybridConnectionNamespaceRelayIDInsensitively(input string) (*SlotHybridConnectionNamespaceRelayId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotHybridConnectionNamespaceRelayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotHybridConnectionNamespaceRelayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotHybridConnectionNamespaceRelayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.HybridConnectionNamespaceName, ok = input.Parsed["hybridConnectionNamespaceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hybridConnectionNamespaceName", input) + } + + if id.RelayName, ok = input.Parsed["relayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "relayName", input) + } + + return nil +} + +// ValidateSlotHybridConnectionNamespaceRelayID checks that 'input' can be parsed as a Slot Hybrid Connection Namespace Relay ID +func ValidateSlotHybridConnectionNamespaceRelayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotHybridConnectionNamespaceRelayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Hybrid Connection Namespace Relay ID +func (id SlotHybridConnectionNamespaceRelayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/hybridConnectionNamespaces/%s/relays/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.HybridConnectionNamespaceName, id.RelayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Hybrid Connection Namespace Relay ID +func (id SlotHybridConnectionNamespaceRelayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticHybridConnectionNamespaces", "hybridConnectionNamespaces", "hybridConnectionNamespaces"), + resourceids.UserSpecifiedSegment("hybridConnectionNamespaceName", "hybridConnectionNamespaceValue"), + resourceids.StaticSegment("staticRelays", "relays", "relays"), + resourceids.UserSpecifiedSegment("relayName", "relayValue"), + } +} + +// String returns a human-readable description of this Slot Hybrid Connection Namespace Relay ID +func (id SlotHybridConnectionNamespaceRelayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Hybrid Connection Namespace Name: %q", id.HybridConnectionNamespaceName), + fmt.Sprintf("Relay Name: %q", id.RelayName), + } + return fmt.Sprintf("Slot Hybrid Connection Namespace Relay (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstance.go new file mode 100644 index 000000000000..009666c7f05f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstance.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotInstanceId{} + +// SlotInstanceId is a struct representing the Resource ID for a Slot Instance +type SlotInstanceId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + InstanceId string +} + +// NewSlotInstanceID returns a new SlotInstanceId struct +func NewSlotInstanceID(subscriptionId string, resourceGroupName string, siteName string, slotName string, instanceId string) SlotInstanceId { + return SlotInstanceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + InstanceId: instanceId, + } +} + +// ParseSlotInstanceID parses 'input' into a SlotInstanceId +func ParseSlotInstanceID(input string) (*SlotInstanceId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotInstanceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotInstanceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotInstanceIDInsensitively parses 'input' case-insensitively into a SlotInstanceId +// note: this method should only be used for API response data and not user input +func ParseSlotInstanceIDInsensitively(input string) (*SlotInstanceId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotInstanceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotInstanceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotInstanceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.InstanceId, ok = input.Parsed["instanceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "instanceId", input) + } + + return nil +} + +// ValidateSlotInstanceID checks that 'input' can be parsed as a Slot Instance ID +func ValidateSlotInstanceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotInstanceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Instance ID +func (id SlotInstanceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/instances/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.InstanceId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Instance ID +func (id SlotInstanceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticInstances", "instances", "instances"), + resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + } +} + +// String returns a human-readable description of this Slot Instance ID +func (id SlotInstanceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Instance: %q", id.InstanceId), + } + return fmt.Sprintf("Slot Instance (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocess.go new file mode 100644 index 000000000000..796e2dc30aa9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocess.go @@ -0,0 +1,152 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotInstanceProcessId{} + +// SlotInstanceProcessId is a struct representing the Resource ID for a Slot Instance Process +type SlotInstanceProcessId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + InstanceId string + ProcessId string +} + +// NewSlotInstanceProcessID returns a new SlotInstanceProcessId struct +func NewSlotInstanceProcessID(subscriptionId string, resourceGroupName string, siteName string, slotName string, instanceId string, processId string) SlotInstanceProcessId { + return SlotInstanceProcessId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + InstanceId: instanceId, + ProcessId: processId, + } +} + +// ParseSlotInstanceProcessID parses 'input' into a SlotInstanceProcessId +func ParseSlotInstanceProcessID(input string) (*SlotInstanceProcessId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotInstanceProcessId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotInstanceProcessId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotInstanceProcessIDInsensitively parses 'input' case-insensitively into a SlotInstanceProcessId +// note: this method should only be used for API response data and not user input +func ParseSlotInstanceProcessIDInsensitively(input string) (*SlotInstanceProcessId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotInstanceProcessId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotInstanceProcessId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotInstanceProcessId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.InstanceId, ok = input.Parsed["instanceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "instanceId", input) + } + + if id.ProcessId, ok = input.Parsed["processId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "processId", input) + } + + return nil +} + +// ValidateSlotInstanceProcessID checks that 'input' can be parsed as a Slot Instance Process ID +func ValidateSlotInstanceProcessID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotInstanceProcessID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Instance Process ID +func (id SlotInstanceProcessId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/instances/%s/processes/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.InstanceId, id.ProcessId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Instance Process ID +func (id SlotInstanceProcessId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticInstances", "instances", "instances"), + resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + resourceids.StaticSegment("staticProcesses", "processes", "processes"), + resourceids.UserSpecifiedSegment("processId", "processIdValue"), + } +} + +// String returns a human-readable description of this Slot Instance Process ID +func (id SlotInstanceProcessId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Instance: %q", id.InstanceId), + fmt.Sprintf("Process: %q", id.ProcessId), + } + return fmt.Sprintf("Slot Instance Process (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocessmodule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocessmodule.go new file mode 100644 index 000000000000..423930cd9de7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocessmodule.go @@ -0,0 +1,161 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotInstanceProcessModuleId{} + +// SlotInstanceProcessModuleId is a struct representing the Resource ID for a Slot Instance Process Module +type SlotInstanceProcessModuleId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + InstanceId string + ProcessId string + ModuleName string +} + +// NewSlotInstanceProcessModuleID returns a new SlotInstanceProcessModuleId struct +func NewSlotInstanceProcessModuleID(subscriptionId string, resourceGroupName string, siteName string, slotName string, instanceId string, processId string, moduleName string) SlotInstanceProcessModuleId { + return SlotInstanceProcessModuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + InstanceId: instanceId, + ProcessId: processId, + ModuleName: moduleName, + } +} + +// ParseSlotInstanceProcessModuleID parses 'input' into a SlotInstanceProcessModuleId +func ParseSlotInstanceProcessModuleID(input string) (*SlotInstanceProcessModuleId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotInstanceProcessModuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotInstanceProcessModuleId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotInstanceProcessModuleIDInsensitively parses 'input' case-insensitively into a SlotInstanceProcessModuleId +// note: this method should only be used for API response data and not user input +func ParseSlotInstanceProcessModuleIDInsensitively(input string) (*SlotInstanceProcessModuleId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotInstanceProcessModuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotInstanceProcessModuleId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotInstanceProcessModuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.InstanceId, ok = input.Parsed["instanceId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "instanceId", input) + } + + if id.ProcessId, ok = input.Parsed["processId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "processId", input) + } + + if id.ModuleName, ok = input.Parsed["moduleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "moduleName", input) + } + + return nil +} + +// ValidateSlotInstanceProcessModuleID checks that 'input' can be parsed as a Slot Instance Process Module ID +func ValidateSlotInstanceProcessModuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotInstanceProcessModuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Instance Process Module ID +func (id SlotInstanceProcessModuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/instances/%s/processes/%s/modules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.InstanceId, id.ProcessId, id.ModuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Instance Process Module ID +func (id SlotInstanceProcessModuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticInstances", "instances", "instances"), + resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + resourceids.StaticSegment("staticProcesses", "processes", "processes"), + resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.StaticSegment("staticModules", "modules", "modules"), + resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + } +} + +// String returns a human-readable description of this Slot Instance Process Module ID +func (id SlotInstanceProcessModuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Instance: %q", id.InstanceId), + fmt.Sprintf("Process: %q", id.ProcessId), + fmt.Sprintf("Module Name: %q", id.ModuleName), + } + return fmt.Sprintf("Slot Instance Process Module (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworkfeature.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworkfeature.go new file mode 100644 index 000000000000..37161d178ca4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworkfeature.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotNetworkFeatureId{} + +// SlotNetworkFeatureId is a struct representing the Resource ID for a Slot Network Feature +type SlotNetworkFeatureId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + NetworkFeatureName string +} + +// NewSlotNetworkFeatureID returns a new SlotNetworkFeatureId struct +func NewSlotNetworkFeatureID(subscriptionId string, resourceGroupName string, siteName string, slotName string, networkFeatureName string) SlotNetworkFeatureId { + return SlotNetworkFeatureId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + NetworkFeatureName: networkFeatureName, + } +} + +// ParseSlotNetworkFeatureID parses 'input' into a SlotNetworkFeatureId +func ParseSlotNetworkFeatureID(input string) (*SlotNetworkFeatureId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotNetworkFeatureId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotNetworkFeatureId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotNetworkFeatureIDInsensitively parses 'input' case-insensitively into a SlotNetworkFeatureId +// note: this method should only be used for API response data and not user input +func ParseSlotNetworkFeatureIDInsensitively(input string) (*SlotNetworkFeatureId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotNetworkFeatureId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotNetworkFeatureId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotNetworkFeatureId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.NetworkFeatureName, ok = input.Parsed["networkFeatureName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkFeatureName", input) + } + + return nil +} + +// ValidateSlotNetworkFeatureID checks that 'input' can be parsed as a Slot Network Feature ID +func ValidateSlotNetworkFeatureID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotNetworkFeatureID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Network Feature ID +func (id SlotNetworkFeatureId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/networkFeatures/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.NetworkFeatureName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Network Feature ID +func (id SlotNetworkFeatureId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticNetworkFeatures", "networkFeatures", "networkFeatures"), + resourceids.UserSpecifiedSegment("networkFeatureName", "networkFeatureValue"), + } +} + +// String returns a human-readable description of this Slot Network Feature ID +func (id SlotNetworkFeatureId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Network Feature Name: %q", id.NetworkFeatureName), + } + return fmt.Sprintf("Slot Network Feature (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworktrace.go new file mode 100644 index 000000000000..66c083ff8e85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworktrace.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotNetworkTraceId{} + +// SlotNetworkTraceId is a struct representing the Resource ID for a Slot Network Trace +type SlotNetworkTraceId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + OperationId string +} + +// NewSlotNetworkTraceID returns a new SlotNetworkTraceId struct +func NewSlotNetworkTraceID(subscriptionId string, resourceGroupName string, siteName string, slotName string, operationId string) SlotNetworkTraceId { + return SlotNetworkTraceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + OperationId: operationId, + } +} + +// ParseSlotNetworkTraceID parses 'input' into a SlotNetworkTraceId +func ParseSlotNetworkTraceID(input string) (*SlotNetworkTraceId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotNetworkTraceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotNetworkTraceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotNetworkTraceIDInsensitively parses 'input' case-insensitively into a SlotNetworkTraceId +// note: this method should only be used for API response data and not user input +func ParseSlotNetworkTraceIDInsensitively(input string) (*SlotNetworkTraceId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotNetworkTraceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotNetworkTraceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotNetworkTraceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.OperationId, ok = input.Parsed["operationId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "operationId", input) + } + + return nil +} + +// ValidateSlotNetworkTraceID checks that 'input' can be parsed as a Slot Network Trace ID +func ValidateSlotNetworkTraceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotNetworkTraceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Network Trace ID +func (id SlotNetworkTraceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/networkTrace/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.OperationId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Network Trace ID +func (id SlotNetworkTraceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticNetworkTrace", "networkTrace", "networkTrace"), + resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + } +} + +// String returns a human-readable description of this Slot Network Trace ID +func (id SlotNetworkTraceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Operation: %q", id.OperationId), + } + return fmt.Sprintf("Slot Network Trace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpremieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpremieraddon.go new file mode 100644 index 000000000000..e83e02065eb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpremieraddon.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotPremierAddonId{} + +// SlotPremierAddonId is a struct representing the Resource ID for a Slot Premier Addon +type SlotPremierAddonId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + PremierAddonName string +} + +// NewSlotPremierAddonID returns a new SlotPremierAddonId struct +func NewSlotPremierAddonID(subscriptionId string, resourceGroupName string, siteName string, slotName string, premierAddonName string) SlotPremierAddonId { + return SlotPremierAddonId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + PremierAddonName: premierAddonName, + } +} + +// ParseSlotPremierAddonID parses 'input' into a SlotPremierAddonId +func ParseSlotPremierAddonID(input string) (*SlotPremierAddonId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotPremierAddonId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotPremierAddonId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotPremierAddonIDInsensitively parses 'input' case-insensitively into a SlotPremierAddonId +// note: this method should only be used for API response data and not user input +func ParseSlotPremierAddonIDInsensitively(input string) (*SlotPremierAddonId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotPremierAddonId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotPremierAddonId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotPremierAddonId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.PremierAddonName, ok = input.Parsed["premierAddonName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "premierAddonName", input) + } + + return nil +} + +// ValidateSlotPremierAddonID checks that 'input' can be parsed as a Slot Premier Addon ID +func ValidateSlotPremierAddonID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotPremierAddonID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Premier Addon ID +func (id SlotPremierAddonId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/premierAddons/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.PremierAddonName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Premier Addon ID +func (id SlotPremierAddonId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticPremierAddons", "premierAddons", "premierAddons"), + resourceids.UserSpecifiedSegment("premierAddonName", "premierAddonValue"), + } +} + +// String returns a human-readable description of this Slot Premier Addon ID +func (id SlotPremierAddonId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Premier Addon Name: %q", id.PremierAddonName), + } + return fmt.Sprintf("Slot Premier Addon (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprivateendpointconnection.go new file mode 100644 index 000000000000..3c2041e97906 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprivateendpointconnection.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotPrivateEndpointConnectionId{} + +// SlotPrivateEndpointConnectionId is a struct representing the Resource ID for a Slot Private Endpoint Connection +type SlotPrivateEndpointConnectionId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + PrivateEndpointConnectionName string +} + +// NewSlotPrivateEndpointConnectionID returns a new SlotPrivateEndpointConnectionId struct +func NewSlotPrivateEndpointConnectionID(subscriptionId string, resourceGroupName string, siteName string, slotName string, privateEndpointConnectionName string) SlotPrivateEndpointConnectionId { + return SlotPrivateEndpointConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + PrivateEndpointConnectionName: privateEndpointConnectionName, + } +} + +// ParseSlotPrivateEndpointConnectionID parses 'input' into a SlotPrivateEndpointConnectionId +func ParseSlotPrivateEndpointConnectionID(input string) (*SlotPrivateEndpointConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotPrivateEndpointConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotPrivateEndpointConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotPrivateEndpointConnectionIDInsensitively parses 'input' case-insensitively into a SlotPrivateEndpointConnectionId +// note: this method should only be used for API response data and not user input +func ParseSlotPrivateEndpointConnectionIDInsensitively(input string) (*SlotPrivateEndpointConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotPrivateEndpointConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotPrivateEndpointConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotPrivateEndpointConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.PrivateEndpointConnectionName, ok = input.Parsed["privateEndpointConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointConnectionName", input) + } + + return nil +} + +// ValidateSlotPrivateEndpointConnectionID checks that 'input' can be parsed as a Slot Private Endpoint Connection ID +func ValidateSlotPrivateEndpointConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotPrivateEndpointConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Private Endpoint Connection ID +func (id SlotPrivateEndpointConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/privateEndpointConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.PrivateEndpointConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Private Endpoint Connection ID +func (id SlotPrivateEndpointConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + } +} + +// String returns a human-readable description of this Slot Private Endpoint Connection ID +func (id SlotPrivateEndpointConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Private Endpoint Connection Name: %q", id.PrivateEndpointConnectionName), + } + return fmt.Sprintf("Slot Private Endpoint Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprocess.go new file mode 100644 index 000000000000..1bacecea3c5c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprocess.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotProcessId{} + +// SlotProcessId is a struct representing the Resource ID for a Slot Process +type SlotProcessId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + ProcessId string +} + +// NewSlotProcessID returns a new SlotProcessId struct +func NewSlotProcessID(subscriptionId string, resourceGroupName string, siteName string, slotName string, processId string) SlotProcessId { + return SlotProcessId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + ProcessId: processId, + } +} + +// ParseSlotProcessID parses 'input' into a SlotProcessId +func ParseSlotProcessID(input string) (*SlotProcessId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotProcessId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotProcessId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotProcessIDInsensitively parses 'input' case-insensitively into a SlotProcessId +// note: this method should only be used for API response data and not user input +func ParseSlotProcessIDInsensitively(input string) (*SlotProcessId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotProcessId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotProcessId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotProcessId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.ProcessId, ok = input.Parsed["processId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "processId", input) + } + + return nil +} + +// ValidateSlotProcessID checks that 'input' can be parsed as a Slot Process ID +func ValidateSlotProcessID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotProcessID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Process ID +func (id SlotProcessId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/processes/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.ProcessId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Process ID +func (id SlotProcessId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticProcesses", "processes", "processes"), + resourceids.UserSpecifiedSegment("processId", "processIdValue"), + } +} + +// String returns a human-readable description of this Slot Process ID +func (id SlotProcessId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Process: %q", id.ProcessId), + } + return fmt.Sprintf("Slot Process (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpubliccertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpubliccertificate.go new file mode 100644 index 000000000000..5dc24ba58ca9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpubliccertificate.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotPublicCertificateId{} + +// SlotPublicCertificateId is a struct representing the Resource ID for a Slot Public Certificate +type SlotPublicCertificateId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + PublicCertificateName string +} + +// NewSlotPublicCertificateID returns a new SlotPublicCertificateId struct +func NewSlotPublicCertificateID(subscriptionId string, resourceGroupName string, siteName string, slotName string, publicCertificateName string) SlotPublicCertificateId { + return SlotPublicCertificateId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + PublicCertificateName: publicCertificateName, + } +} + +// ParseSlotPublicCertificateID parses 'input' into a SlotPublicCertificateId +func ParseSlotPublicCertificateID(input string) (*SlotPublicCertificateId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotPublicCertificateId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotPublicCertificateId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotPublicCertificateIDInsensitively parses 'input' case-insensitively into a SlotPublicCertificateId +// note: this method should only be used for API response data and not user input +func ParseSlotPublicCertificateIDInsensitively(input string) (*SlotPublicCertificateId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotPublicCertificateId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotPublicCertificateId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotPublicCertificateId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.PublicCertificateName, ok = input.Parsed["publicCertificateName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "publicCertificateName", input) + } + + return nil +} + +// ValidateSlotPublicCertificateID checks that 'input' can be parsed as a Slot Public Certificate ID +func ValidateSlotPublicCertificateID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotPublicCertificateID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Public Certificate ID +func (id SlotPublicCertificateId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/publicCertificates/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.PublicCertificateName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Public Certificate ID +func (id SlotPublicCertificateId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticPublicCertificates", "publicCertificates", "publicCertificates"), + resourceids.UserSpecifiedSegment("publicCertificateName", "publicCertificateValue"), + } +} + +// String returns a human-readable description of this Slot Public Certificate ID +func (id SlotPublicCertificateId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Public Certificate Name: %q", id.PublicCertificateName), + } + return fmt.Sprintf("Slot Public Certificate (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotsiteextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotsiteextension.go new file mode 100644 index 000000000000..794884bacc83 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotsiteextension.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotSiteExtensionId{} + +// SlotSiteExtensionId is a struct representing the Resource ID for a Slot Site Extension +type SlotSiteExtensionId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + SiteExtensionId string +} + +// NewSlotSiteExtensionID returns a new SlotSiteExtensionId struct +func NewSlotSiteExtensionID(subscriptionId string, resourceGroupName string, siteName string, slotName string, siteExtensionId string) SlotSiteExtensionId { + return SlotSiteExtensionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + SiteExtensionId: siteExtensionId, + } +} + +// ParseSlotSiteExtensionID parses 'input' into a SlotSiteExtensionId +func ParseSlotSiteExtensionID(input string) (*SlotSiteExtensionId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotSiteExtensionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotSiteExtensionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotSiteExtensionIDInsensitively parses 'input' case-insensitively into a SlotSiteExtensionId +// note: this method should only be used for API response data and not user input +func ParseSlotSiteExtensionIDInsensitively(input string) (*SlotSiteExtensionId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotSiteExtensionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotSiteExtensionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotSiteExtensionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.SiteExtensionId, ok = input.Parsed["siteExtensionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteExtensionId", input) + } + + return nil +} + +// ValidateSlotSiteExtensionID checks that 'input' can be parsed as a Slot Site Extension ID +func ValidateSlotSiteExtensionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotSiteExtensionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Site Extension ID +func (id SlotSiteExtensionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/siteExtensions/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.SiteExtensionId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Site Extension ID +func (id SlotSiteExtensionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticSiteExtensions", "siteExtensions", "siteExtensions"), + resourceids.UserSpecifiedSegment("siteExtensionId", "siteExtensionIdValue"), + } +} + +// String returns a human-readable description of this Slot Site Extension ID +func (id SlotSiteExtensionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Site Extension: %q", id.SiteExtensionId), + } + return fmt.Sprintf("Slot Site Extension (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slottriggeredwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slottriggeredwebjob.go new file mode 100644 index 000000000000..6f7295755e66 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slottriggeredwebjob.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotTriggeredWebJobId{} + +// SlotTriggeredWebJobId is a struct representing the Resource ID for a Slot Triggered Web Job +type SlotTriggeredWebJobId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + TriggeredWebJobName string +} + +// NewSlotTriggeredWebJobID returns a new SlotTriggeredWebJobId struct +func NewSlotTriggeredWebJobID(subscriptionId string, resourceGroupName string, siteName string, slotName string, triggeredWebJobName string) SlotTriggeredWebJobId { + return SlotTriggeredWebJobId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + TriggeredWebJobName: triggeredWebJobName, + } +} + +// ParseSlotTriggeredWebJobID parses 'input' into a SlotTriggeredWebJobId +func ParseSlotTriggeredWebJobID(input string) (*SlotTriggeredWebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotTriggeredWebJobId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotTriggeredWebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotTriggeredWebJobIDInsensitively parses 'input' case-insensitively into a SlotTriggeredWebJobId +// note: this method should only be used for API response data and not user input +func ParseSlotTriggeredWebJobIDInsensitively(input string) (*SlotTriggeredWebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotTriggeredWebJobId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotTriggeredWebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotTriggeredWebJobId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.TriggeredWebJobName, ok = input.Parsed["triggeredWebJobName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "triggeredWebJobName", input) + } + + return nil +} + +// ValidateSlotTriggeredWebJobID checks that 'input' can be parsed as a Slot Triggered Web Job ID +func ValidateSlotTriggeredWebJobID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotTriggeredWebJobID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Triggered Web Job ID +func (id SlotTriggeredWebJobId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/triggeredWebJobs/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.TriggeredWebJobName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Triggered Web Job ID +func (id SlotTriggeredWebJobId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticTriggeredWebJobs", "triggeredWebJobs", "triggeredWebJobs"), + resourceids.UserSpecifiedSegment("triggeredWebJobName", "triggeredWebJobValue"), + } +} + +// String returns a human-readable description of this Slot Triggered Web Job ID +func (id SlotTriggeredWebJobId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Triggered Web Job Name: %q", id.TriggeredWebJobName), + } + return fmt.Sprintf("Slot Triggered Web Job (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnection.go new file mode 100644 index 000000000000..76bafab7b898 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnection.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotVirtualNetworkConnectionId{} + +// SlotVirtualNetworkConnectionId is a struct representing the Resource ID for a Slot Virtual Network Connection +type SlotVirtualNetworkConnectionId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + VirtualNetworkConnectionName string +} + +// NewSlotVirtualNetworkConnectionID returns a new SlotVirtualNetworkConnectionId struct +func NewSlotVirtualNetworkConnectionID(subscriptionId string, resourceGroupName string, siteName string, slotName string, virtualNetworkConnectionName string) SlotVirtualNetworkConnectionId { + return SlotVirtualNetworkConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + VirtualNetworkConnectionName: virtualNetworkConnectionName, + } +} + +// ParseSlotVirtualNetworkConnectionID parses 'input' into a SlotVirtualNetworkConnectionId +func ParseSlotVirtualNetworkConnectionID(input string) (*SlotVirtualNetworkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotVirtualNetworkConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotVirtualNetworkConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotVirtualNetworkConnectionIDInsensitively parses 'input' case-insensitively into a SlotVirtualNetworkConnectionId +// note: this method should only be used for API response data and not user input +func ParseSlotVirtualNetworkConnectionIDInsensitively(input string) (*SlotVirtualNetworkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotVirtualNetworkConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotVirtualNetworkConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotVirtualNetworkConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.VirtualNetworkConnectionName, ok = input.Parsed["virtualNetworkConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkConnectionName", input) + } + + return nil +} + +// ValidateSlotVirtualNetworkConnectionID checks that 'input' can be parsed as a Slot Virtual Network Connection ID +func ValidateSlotVirtualNetworkConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotVirtualNetworkConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Virtual Network Connection ID +func (id SlotVirtualNetworkConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/virtualNetworkConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.VirtualNetworkConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Virtual Network Connection ID +func (id SlotVirtualNetworkConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + } +} + +// String returns a human-readable description of this Slot Virtual Network Connection ID +func (id SlotVirtualNetworkConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Virtual Network Connection Name: %q", id.VirtualNetworkConnectionName), + } + return fmt.Sprintf("Slot Virtual Network Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnectiongateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnectiongateway.go new file mode 100644 index 000000000000..6ce53651da12 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnectiongateway.go @@ -0,0 +1,152 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotVirtualNetworkConnectionGatewayId{} + +// SlotVirtualNetworkConnectionGatewayId is a struct representing the Resource ID for a Slot Virtual Network Connection Gateway +type SlotVirtualNetworkConnectionGatewayId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + VirtualNetworkConnectionName string + GatewayName string +} + +// NewSlotVirtualNetworkConnectionGatewayID returns a new SlotVirtualNetworkConnectionGatewayId struct +func NewSlotVirtualNetworkConnectionGatewayID(subscriptionId string, resourceGroupName string, siteName string, slotName string, virtualNetworkConnectionName string, gatewayName string) SlotVirtualNetworkConnectionGatewayId { + return SlotVirtualNetworkConnectionGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + VirtualNetworkConnectionName: virtualNetworkConnectionName, + GatewayName: gatewayName, + } +} + +// ParseSlotVirtualNetworkConnectionGatewayID parses 'input' into a SlotVirtualNetworkConnectionGatewayId +func ParseSlotVirtualNetworkConnectionGatewayID(input string) (*SlotVirtualNetworkConnectionGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotVirtualNetworkConnectionGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotVirtualNetworkConnectionGatewayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotVirtualNetworkConnectionGatewayIDInsensitively parses 'input' case-insensitively into a SlotVirtualNetworkConnectionGatewayId +// note: this method should only be used for API response data and not user input +func ParseSlotVirtualNetworkConnectionGatewayIDInsensitively(input string) (*SlotVirtualNetworkConnectionGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotVirtualNetworkConnectionGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotVirtualNetworkConnectionGatewayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotVirtualNetworkConnectionGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.VirtualNetworkConnectionName, ok = input.Parsed["virtualNetworkConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkConnectionName", input) + } + + if id.GatewayName, ok = input.Parsed["gatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "gatewayName", input) + } + + return nil +} + +// ValidateSlotVirtualNetworkConnectionGatewayID checks that 'input' can be parsed as a Slot Virtual Network Connection Gateway ID +func ValidateSlotVirtualNetworkConnectionGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotVirtualNetworkConnectionGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Virtual Network Connection Gateway ID +func (id SlotVirtualNetworkConnectionGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/virtualNetworkConnections/%s/gateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.VirtualNetworkConnectionName, id.GatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Virtual Network Connection Gateway ID +func (id SlotVirtualNetworkConnectionGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + resourceids.StaticSegment("staticGateways", "gateways", "gateways"), + resourceids.UserSpecifiedSegment("gatewayName", "gatewayValue"), + } +} + +// String returns a human-readable description of this Slot Virtual Network Connection Gateway ID +func (id SlotVirtualNetworkConnectionGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Virtual Network Connection Name: %q", id.VirtualNetworkConnectionName), + fmt.Sprintf("Gateway Name: %q", id.GatewayName), + } + return fmt.Sprintf("Slot Virtual Network Connection Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotwebjob.go new file mode 100644 index 000000000000..eb825ed34743 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotwebjob.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotWebJobId{} + +// SlotWebJobId is a struct representing the Resource ID for a Slot Web Job +type SlotWebJobId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + WebJobName string +} + +// NewSlotWebJobID returns a new SlotWebJobId struct +func NewSlotWebJobID(subscriptionId string, resourceGroupName string, siteName string, slotName string, webJobName string) SlotWebJobId { + return SlotWebJobId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + WebJobName: webJobName, + } +} + +// ParseSlotWebJobID parses 'input' into a SlotWebJobId +func ParseSlotWebJobID(input string) (*SlotWebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotWebJobId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotWebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotWebJobIDInsensitively parses 'input' case-insensitively into a SlotWebJobId +// note: this method should only be used for API response data and not user input +func ParseSlotWebJobIDInsensitively(input string) (*SlotWebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotWebJobId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotWebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotWebJobId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.WebJobName, ok = input.Parsed["webJobName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "webJobName", input) + } + + return nil +} + +// ValidateSlotWebJobID checks that 'input' can be parsed as a Slot Web Job ID +func ValidateSlotWebJobID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotWebJobID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Web Job ID +func (id SlotWebJobId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/webJobs/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.WebJobName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Web Job ID +func (id SlotWebJobId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticWebJobs", "webJobs", "webJobs"), + resourceids.UserSpecifiedSegment("webJobName", "webJobValue"), + } +} + +// String returns a human-readable description of this Slot Web Job ID +func (id SlotWebJobId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Web Job Name: %q", id.WebJobName), + } + return fmt.Sprintf("Slot Web Job (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotworkflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotworkflow.go new file mode 100644 index 000000000000..c143535e7c4a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotworkflow.go @@ -0,0 +1,143 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SlotWorkflowId{} + +// SlotWorkflowId is a struct representing the Resource ID for a Slot Workflow +type SlotWorkflowId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + WorkflowName string +} + +// NewSlotWorkflowID returns a new SlotWorkflowId struct +func NewSlotWorkflowID(subscriptionId string, resourceGroupName string, siteName string, slotName string, workflowName string) SlotWorkflowId { + return SlotWorkflowId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + WorkflowName: workflowName, + } +} + +// ParseSlotWorkflowID parses 'input' into a SlotWorkflowId +func ParseSlotWorkflowID(input string) (*SlotWorkflowId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotWorkflowId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotWorkflowId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSlotWorkflowIDInsensitively parses 'input' case-insensitively into a SlotWorkflowId +// note: this method should only be used for API response data and not user input +func ParseSlotWorkflowIDInsensitively(input string) (*SlotWorkflowId, error) { + parser := resourceids.NewParserFromResourceIdType(SlotWorkflowId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SlotWorkflowId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SlotWorkflowId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.WorkflowName, ok = input.Parsed["workflowName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workflowName", input) + } + + return nil +} + +// ValidateSlotWorkflowID checks that 'input' can be parsed as a Slot Workflow ID +func ValidateSlotWorkflowID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSlotWorkflowID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Slot Workflow ID +func (id SlotWorkflowId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/workflows/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.WorkflowName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Slot Workflow ID +func (id SlotWorkflowId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), + resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + } +} + +// String returns a human-readable description of this Slot Workflow ID +func (id SlotWorkflowId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Workflow Name: %q", id.WorkflowName), + } + return fmt.Sprintf("Slot Workflow (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_snapshot.go new file mode 100644 index 000000000000..c7b5a80078ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_snapshot.go @@ -0,0 +1,136 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = SnapshotId{} + +// SnapshotId is a struct representing the Resource ID for a Snapshot +type SnapshotId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SnapshotId string +} + +// NewSnapshotID returns a new SnapshotId struct +func NewSnapshotID(subscriptionId string, resourceGroupName string, siteName string, snapshotId string) SnapshotId { + return SnapshotId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SnapshotId: snapshotId, + } +} + +// ParseSnapshotID parses 'input' into a SnapshotId +func ParseSnapshotID(input string) (*SnapshotId, error) { + parser := resourceids.NewParserFromResourceIdType(SnapshotId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SnapshotId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSnapshotIDInsensitively parses 'input' case-insensitively into a SnapshotId +// note: this method should only be used for API response data and not user input +func ParseSnapshotIDInsensitively(input string) (*SnapshotId, error) { + parser := resourceids.NewParserFromResourceIdType(SnapshotId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SnapshotId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SnapshotId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SnapshotId, ok = input.Parsed["snapshotId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "snapshotId", input) + } + + return nil +} + +// ValidateSnapshotID checks that 'input' can be parsed as a Snapshot ID +func ValidateSnapshotID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSnapshotID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Snapshot ID +func (id SnapshotId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/config/web/snapshots/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SnapshotId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Snapshot ID +func (id SnapshotId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticConfig", "config", "config"), + resourceids.StaticSegment("staticWeb", "web", "web"), + resourceids.StaticSegment("staticSnapshots", "snapshots", "snapshots"), + resourceids.UserSpecifiedSegment("snapshotId", "snapshotIdValue"), + } +} + +// String returns a human-readable description of this Snapshot ID +func (id SnapshotId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Snapshot: %q", id.SnapshotId), + } + return fmt.Sprintf("Snapshot (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjob.go new file mode 100644 index 000000000000..8e62aa483da7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjob.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = TriggeredWebJobId{} + +// TriggeredWebJobId is a struct representing the Resource ID for a Triggered Web Job +type TriggeredWebJobId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + TriggeredWebJobName string +} + +// NewTriggeredWebJobID returns a new TriggeredWebJobId struct +func NewTriggeredWebJobID(subscriptionId string, resourceGroupName string, siteName string, triggeredWebJobName string) TriggeredWebJobId { + return TriggeredWebJobId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + TriggeredWebJobName: triggeredWebJobName, + } +} + +// ParseTriggeredWebJobID parses 'input' into a TriggeredWebJobId +func ParseTriggeredWebJobID(input string) (*TriggeredWebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(TriggeredWebJobId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := TriggeredWebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseTriggeredWebJobIDInsensitively parses 'input' case-insensitively into a TriggeredWebJobId +// note: this method should only be used for API response data and not user input +func ParseTriggeredWebJobIDInsensitively(input string) (*TriggeredWebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(TriggeredWebJobId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := TriggeredWebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *TriggeredWebJobId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.TriggeredWebJobName, ok = input.Parsed["triggeredWebJobName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "triggeredWebJobName", input) + } + + return nil +} + +// ValidateTriggeredWebJobID checks that 'input' can be parsed as a Triggered Web Job ID +func ValidateTriggeredWebJobID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseTriggeredWebJobID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Triggered Web Job ID +func (id TriggeredWebJobId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/triggeredWebJobs/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.TriggeredWebJobName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Triggered Web Job ID +func (id TriggeredWebJobId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticTriggeredWebJobs", "triggeredWebJobs", "triggeredWebJobs"), + resourceids.UserSpecifiedSegment("triggeredWebJobName", "triggeredWebJobValue"), + } +} + +// String returns a human-readable description of this Triggered Web Job ID +func (id TriggeredWebJobId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Triggered Web Job Name: %q", id.TriggeredWebJobName), + } + return fmt.Sprintf("Triggered Web Job (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjobhistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjobhistory.go new file mode 100644 index 000000000000..cb4ec930b86b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjobhistory.go @@ -0,0 +1,152 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = TriggeredWebJobHistoryId{} + +// TriggeredWebJobHistoryId is a struct representing the Resource ID for a Triggered Web Job History +type TriggeredWebJobHistoryId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + TriggeredWebJobName string + HistoryName string +} + +// NewTriggeredWebJobHistoryID returns a new TriggeredWebJobHistoryId struct +func NewTriggeredWebJobHistoryID(subscriptionId string, resourceGroupName string, siteName string, slotName string, triggeredWebJobName string, historyName string) TriggeredWebJobHistoryId { + return TriggeredWebJobHistoryId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + TriggeredWebJobName: triggeredWebJobName, + HistoryName: historyName, + } +} + +// ParseTriggeredWebJobHistoryID parses 'input' into a TriggeredWebJobHistoryId +func ParseTriggeredWebJobHistoryID(input string) (*TriggeredWebJobHistoryId, error) { + parser := resourceids.NewParserFromResourceIdType(TriggeredWebJobHistoryId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := TriggeredWebJobHistoryId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseTriggeredWebJobHistoryIDInsensitively parses 'input' case-insensitively into a TriggeredWebJobHistoryId +// note: this method should only be used for API response data and not user input +func ParseTriggeredWebJobHistoryIDInsensitively(input string) (*TriggeredWebJobHistoryId, error) { + parser := resourceids.NewParserFromResourceIdType(TriggeredWebJobHistoryId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := TriggeredWebJobHistoryId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *TriggeredWebJobHistoryId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.TriggeredWebJobName, ok = input.Parsed["triggeredWebJobName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "triggeredWebJobName", input) + } + + if id.HistoryName, ok = input.Parsed["historyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "historyName", input) + } + + return nil +} + +// ValidateTriggeredWebJobHistoryID checks that 'input' can be parsed as a Triggered Web Job History ID +func ValidateTriggeredWebJobHistoryID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseTriggeredWebJobHistoryID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Triggered Web Job History ID +func (id TriggeredWebJobHistoryId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/triggeredWebJobs/%s/history/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.TriggeredWebJobName, id.HistoryName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Triggered Web Job History ID +func (id TriggeredWebJobHistoryId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticTriggeredWebJobs", "triggeredWebJobs", "triggeredWebJobs"), + resourceids.UserSpecifiedSegment("triggeredWebJobName", "triggeredWebJobValue"), + resourceids.StaticSegment("staticHistory", "history", "history"), + resourceids.UserSpecifiedSegment("historyName", "historyValue"), + } +} + +// String returns a human-readable description of this Triggered Web Job History ID +func (id TriggeredWebJobHistoryId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Triggered Web Job Name: %q", id.TriggeredWebJobName), + fmt.Sprintf("History Name: %q", id.HistoryName), + } + return fmt.Sprintf("Triggered Web Job History (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_virtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_virtualnetworkconnection.go new file mode 100644 index 000000000000..b6deb7ee4c8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_virtualnetworkconnection.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = VirtualNetworkConnectionId{} + +// VirtualNetworkConnectionId is a struct representing the Resource ID for a Virtual Network Connection +type VirtualNetworkConnectionId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + VirtualNetworkConnectionName string +} + +// NewVirtualNetworkConnectionID returns a new VirtualNetworkConnectionId struct +func NewVirtualNetworkConnectionID(subscriptionId string, resourceGroupName string, siteName string, virtualNetworkConnectionName string) VirtualNetworkConnectionId { + return VirtualNetworkConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + VirtualNetworkConnectionName: virtualNetworkConnectionName, + } +} + +// ParseVirtualNetworkConnectionID parses 'input' into a VirtualNetworkConnectionId +func ParseVirtualNetworkConnectionID(input string) (*VirtualNetworkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(VirtualNetworkConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualNetworkConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualNetworkConnectionIDInsensitively parses 'input' case-insensitively into a VirtualNetworkConnectionId +// note: this method should only be used for API response data and not user input +func ParseVirtualNetworkConnectionIDInsensitively(input string) (*VirtualNetworkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(VirtualNetworkConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualNetworkConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualNetworkConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.VirtualNetworkConnectionName, ok = input.Parsed["virtualNetworkConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkConnectionName", input) + } + + return nil +} + +// ValidateVirtualNetworkConnectionID checks that 'input' can be parsed as a Virtual Network Connection ID +func ValidateVirtualNetworkConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualNetworkConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual Network Connection ID +func (id VirtualNetworkConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/virtualNetworkConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.VirtualNetworkConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual Network Connection ID +func (id VirtualNetworkConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + } +} + +// String returns a human-readable description of this Virtual Network Connection ID +func (id VirtualNetworkConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Virtual Network Connection Name: %q", id.VirtualNetworkConnectionName), + } + return fmt.Sprintf("Virtual Network Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_webjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_webjob.go new file mode 100644 index 000000000000..700fb470cddf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_webjob.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = WebJobId{} + +// WebJobId is a struct representing the Resource ID for a Web Job +type WebJobId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + WebJobName string +} + +// NewWebJobID returns a new WebJobId struct +func NewWebJobID(subscriptionId string, resourceGroupName string, siteName string, webJobName string) WebJobId { + return WebJobId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + WebJobName: webJobName, + } +} + +// ParseWebJobID parses 'input' into a WebJobId +func ParseWebJobID(input string) (*WebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(WebJobId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWebJobIDInsensitively parses 'input' case-insensitively into a WebJobId +// note: this method should only be used for API response data and not user input +func ParseWebJobIDInsensitively(input string) (*WebJobId, error) { + parser := resourceids.NewParserFromResourceIdType(WebJobId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WebJobId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WebJobId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.WebJobName, ok = input.Parsed["webJobName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "webJobName", input) + } + + return nil +} + +// ValidateWebJobID checks that 'input' can be parsed as a Web Job ID +func ValidateWebJobID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseWebJobID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Web Job ID +func (id WebJobId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/webJobs/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.WebJobName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Web Job ID +func (id WebJobId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticWebJobs", "webJobs", "webJobs"), + resourceids.UserSpecifiedSegment("webJobName", "webJobValue"), + } +} + +// String returns a human-readable description of this Web Job ID +func (id WebJobId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Web Job Name: %q", id.WebJobName), + } + return fmt.Sprintf("Web Job (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_websnapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_websnapshot.go new file mode 100644 index 000000000000..0f21c69e8095 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_websnapshot.go @@ -0,0 +1,145 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = WebSnapshotId{} + +// WebSnapshotId is a struct representing the Resource ID for a Web Snapshot +type WebSnapshotId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + SlotName string + SnapshotId string +} + +// NewWebSnapshotID returns a new WebSnapshotId struct +func NewWebSnapshotID(subscriptionId string, resourceGroupName string, siteName string, slotName string, snapshotId string) WebSnapshotId { + return WebSnapshotId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + SlotName: slotName, + SnapshotId: snapshotId, + } +} + +// ParseWebSnapshotID parses 'input' into a WebSnapshotId +func ParseWebSnapshotID(input string) (*WebSnapshotId, error) { + parser := resourceids.NewParserFromResourceIdType(WebSnapshotId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WebSnapshotId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWebSnapshotIDInsensitively parses 'input' case-insensitively into a WebSnapshotId +// note: this method should only be used for API response data and not user input +func ParseWebSnapshotIDInsensitively(input string) (*WebSnapshotId, error) { + parser := resourceids.NewParserFromResourceIdType(WebSnapshotId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WebSnapshotId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WebSnapshotId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.SlotName, ok = input.Parsed["slotName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "slotName", input) + } + + if id.SnapshotId, ok = input.Parsed["snapshotId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "snapshotId", input) + } + + return nil +} + +// ValidateWebSnapshotID checks that 'input' can be parsed as a Web Snapshot ID +func ValidateWebSnapshotID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseWebSnapshotID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Web Snapshot ID +func (id WebSnapshotId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/slots/%s/config/web/snapshots/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.SlotName, id.SnapshotId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Web Snapshot ID +func (id WebSnapshotId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticSlots", "slots", "slots"), + resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.StaticSegment("staticConfig", "config", "config"), + resourceids.StaticSegment("staticWeb", "web", "web"), + resourceids.StaticSegment("staticSnapshots", "snapshots", "snapshots"), + resourceids.UserSpecifiedSegment("snapshotId", "snapshotIdValue"), + } +} + +// String returns a human-readable description of this Web Snapshot ID +func (id WebSnapshotId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Slot Name: %q", id.SlotName), + fmt.Sprintf("Snapshot: %q", id.SnapshotId), + } + return fmt.Sprintf("Web Snapshot (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_workflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_workflow.go new file mode 100644 index 000000000000..ed14199a96cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_workflow.go @@ -0,0 +1,134 @@ +package webapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = WorkflowId{} + +// WorkflowId is a struct representing the Resource ID for a Workflow +type WorkflowId struct { + SubscriptionId string + ResourceGroupName string + SiteName string + WorkflowName string +} + +// NewWorkflowID returns a new WorkflowId struct +func NewWorkflowID(subscriptionId string, resourceGroupName string, siteName string, workflowName string) WorkflowId { + return WorkflowId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SiteName: siteName, + WorkflowName: workflowName, + } +} + +// ParseWorkflowID parses 'input' into a WorkflowId +func ParseWorkflowID(input string) (*WorkflowId, error) { + parser := resourceids.NewParserFromResourceIdType(WorkflowId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkflowId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkflowIDInsensitively parses 'input' case-insensitively into a WorkflowId +// note: this method should only be used for API response data and not user input +func ParseWorkflowIDInsensitively(input string) (*WorkflowId, error) { + parser := resourceids.NewParserFromResourceIdType(WorkflowId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkflowId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkflowId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SiteName, ok = input.Parsed["siteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "siteName", input) + } + + if id.WorkflowName, ok = input.Parsed["workflowName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workflowName", input) + } + + return nil +} + +// ValidateWorkflowID checks that 'input' can be parsed as a Workflow ID +func ValidateWorkflowID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseWorkflowID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workflow ID +func (id WorkflowId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/sites/%s/workflows/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SiteName, id.WorkflowName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workflow ID +func (id WorkflowId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), + resourceids.StaticSegment("staticSites", "sites", "sites"), + resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), + resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + } +} + +// String returns a human-readable description of this Workflow ID +func (id WorkflowId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Site Name: %q", id.SiteName), + fmt.Sprintf("Workflow Name: %q", id.WorkflowName), + } + return fmt.Sprintf("Workflow (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddon.go new file mode 100644 index 000000000000..174dcc8e0bc4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddon.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddPremierAddOnOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PremierAddOn +} + +// AddPremierAddOn ... +func (c WebAppsClient) AddPremierAddOn(ctx context.Context, id PremierAddonId, input PremierAddOn) (result AddPremierAddOnOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddonslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddonslot.go new file mode 100644 index 000000000000..c99ceffc6b0e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddonslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddPremierAddOnSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PremierAddOn +} + +// AddPremierAddOnSlot ... +func (c WebAppsClient) AddPremierAddOnSlot(ctx context.Context, id SlotPremierAddonId, input PremierAddOn) (result AddPremierAddOnSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostname.go new file mode 100644 index 000000000000..90adfdd91792 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostname.go @@ -0,0 +1,81 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AnalyzeCustomHostnameOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CustomHostnameAnalysisResult +} + +type AnalyzeCustomHostnameOperationOptions struct { + HostName *string +} + +func DefaultAnalyzeCustomHostnameOperationOptions() AnalyzeCustomHostnameOperationOptions { + return AnalyzeCustomHostnameOperationOptions{} +} + +func (o AnalyzeCustomHostnameOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o AnalyzeCustomHostnameOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o AnalyzeCustomHostnameOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.HostName != nil { + out.Append("hostName", fmt.Sprintf("%v", *o.HostName)) + } + return &out +} + +// AnalyzeCustomHostname ... +func (c WebAppsClient) AnalyzeCustomHostname(ctx context.Context, id commonids.AppServiceId, options AnalyzeCustomHostnameOperationOptions) (result AnalyzeCustomHostnameOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostnameslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostnameslot.go new file mode 100644 index 000000000000..72cc649bc9b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostnameslot.go @@ -0,0 +1,80 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AnalyzeCustomHostnameSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CustomHostnameAnalysisResult +} + +type AnalyzeCustomHostnameSlotOperationOptions struct { + HostName *string +} + +func DefaultAnalyzeCustomHostnameSlotOperationOptions() AnalyzeCustomHostnameSlotOperationOptions { + return AnalyzeCustomHostnameSlotOperationOptions{} +} + +func (o AnalyzeCustomHostnameSlotOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o AnalyzeCustomHostnameSlotOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o AnalyzeCustomHostnameSlotOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.HostName != nil { + out.Append("hostName", fmt.Sprintf("%v", *o.HostName)) + } + return &out +} + +// AnalyzeCustomHostnameSlot ... +func (c WebAppsClient) AnalyzeCustomHostnameSlot(ctx context.Context, id SlotId, options AnalyzeCustomHostnameSlotOperationOptions) (result AnalyzeCustomHostnameSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigtoproduction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigtoproduction.go new file mode 100644 index 000000000000..8a4030be7ce5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigtoproduction.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplySlotConfigToProductionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// ApplySlotConfigToProduction ... +func (c WebAppsClient) ApplySlotConfigToProduction(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity) (result ApplySlotConfigToProductionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/applySlotConfig", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigurationslot.go new file mode 100644 index 000000000000..a17a32e4ddbb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigurationslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplySlotConfigurationSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// ApplySlotConfigurationSlot ... +func (c WebAppsClient) ApplySlotConfigurationSlot(ctx context.Context, id SlotId, input CsmSlotEntity) (result ApplySlotConfigurationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/applySlotConfig", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnection.go new file mode 100644 index 000000000000..5dd13ac36084 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnection.go @@ -0,0 +1,74 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApproveOrRejectPrivateEndpointConnectionOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ApproveOrRejectPrivateEndpointConnection ... +func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnection(ctx context.Context, id PrivateEndpointConnectionId, input PrivateLinkConnectionApprovalRequestResource) (result ApproveOrRejectPrivateEndpointConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ApproveOrRejectPrivateEndpointConnectionThenPoll performs ApproveOrRejectPrivateEndpointConnection then polls until it's completed +func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx context.Context, id PrivateEndpointConnectionId, input PrivateLinkConnectionApprovalRequestResource) error { + result, err := c.ApproveOrRejectPrivateEndpointConnection(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ApproveOrRejectPrivateEndpointConnection: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ApproveOrRejectPrivateEndpointConnection: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnectionslot.go new file mode 100644 index 000000000000..5bf1549dbedb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnectionslot.go @@ -0,0 +1,74 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApproveOrRejectPrivateEndpointConnectionSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ApproveOrRejectPrivateEndpointConnectionSlot ... +func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnectionSlot(ctx context.Context, id SlotPrivateEndpointConnectionId, input PrivateLinkConnectionApprovalRequestResource) (result ApproveOrRejectPrivateEndpointConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ApproveOrRejectPrivateEndpointConnectionSlotThenPoll performs ApproveOrRejectPrivateEndpointConnectionSlot then polls until it's completed +func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnectionSlotThenPoll(ctx context.Context, id SlotPrivateEndpointConnectionId, input PrivateLinkConnectionApprovalRequestResource) error { + result, err := c.ApproveOrRejectPrivateEndpointConnectionSlot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ApproveOrRejectPrivateEndpointConnectionSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ApproveOrRejectPrivateEndpointConnectionSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backup.go new file mode 100644 index 000000000000..448eff5d555d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backup.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupItem +} + +// Backup ... +func (c WebAppsClient) Backup(ctx context.Context, id commonids.AppServiceId, input BackupRequest) (result BackupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/backup", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backupslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backupslot.go new file mode 100644 index 000000000000..159cbf8625b7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backupslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupItem +} + +// BackupSlot ... +func (c WebAppsClient) BackupSlot(ctx context.Context, id SlotId, input BackupRequest) (result BackupSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/backup", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeployment.go new file mode 100644 index 000000000000..b3e13b790925 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeployment.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateDeploymentOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Deployment +} + +// CreateDeployment ... +func (c WebAppsClient) CreateDeployment(ctx context.Context, id DeploymentId, input Deployment) (result CreateDeploymentOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeploymentslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeploymentslot.go new file mode 100644 index 000000000000..55d9a8beaad0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeploymentslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateDeploymentSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Deployment +} + +// CreateDeploymentSlot ... +func (c WebAppsClient) CreateDeploymentSlot(ctx context.Context, id SlotDeploymentId, input Deployment) (result CreateDeploymentSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createfunction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createfunction.go new file mode 100644 index 000000000000..c65bae71dba6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createfunction.go @@ -0,0 +1,73 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateFunctionOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateFunction ... +func (c WebAppsClient) CreateFunction(ctx context.Context, id FunctionId, input FunctionEnvelope) (result CreateFunctionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateFunctionThenPoll performs CreateFunction then polls until it's completed +func (c WebAppsClient) CreateFunctionThenPoll(ctx context.Context, id FunctionId, input FunctionEnvelope) error { + result, err := c.CreateFunction(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateFunction: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateFunction: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancefunctionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancefunctionslot.go new file mode 100644 index 000000000000..03ac6a0c191f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancefunctionslot.go @@ -0,0 +1,73 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateInstanceFunctionSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateInstanceFunctionSlot ... +func (c WebAppsClient) CreateInstanceFunctionSlot(ctx context.Context, id SlotFunctionId, input FunctionEnvelope) (result CreateInstanceFunctionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateInstanceFunctionSlotThenPoll performs CreateInstanceFunctionSlot then polls until it's completed +func (c WebAppsClient) CreateInstanceFunctionSlotThenPoll(ctx context.Context, id SlotFunctionId, input FunctionEnvelope) error { + result, err := c.CreateInstanceFunctionSlot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateInstanceFunctionSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateInstanceFunctionSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperation.go new file mode 100644 index 000000000000..2ad3b905886f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperation.go @@ -0,0 +1,73 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateInstanceMSDeployOperationOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateInstanceMSDeployOperation ... +func (c WebAppsClient) CreateInstanceMSDeployOperation(ctx context.Context, id InstanceId, input MSDeploy) (result CreateInstanceMSDeployOperationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/extensions/mSDeploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateInstanceMSDeployOperationThenPoll performs CreateInstanceMSDeployOperation then polls until it's completed +func (c WebAppsClient) CreateInstanceMSDeployOperationThenPoll(ctx context.Context, id InstanceId, input MSDeploy) error { + result, err := c.CreateInstanceMSDeployOperation(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateInstanceMSDeployOperation: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateInstanceMSDeployOperation: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperationslot.go new file mode 100644 index 000000000000..ab4317726c87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperationslot.go @@ -0,0 +1,73 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateInstanceMSDeployOperationSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateInstanceMSDeployOperationSlot ... +func (c WebAppsClient) CreateInstanceMSDeployOperationSlot(ctx context.Context, id SlotInstanceId, input MSDeploy) (result CreateInstanceMSDeployOperationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/extensions/mSDeploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateInstanceMSDeployOperationSlotThenPoll performs CreateInstanceMSDeployOperationSlot then polls until it's completed +func (c WebAppsClient) CreateInstanceMSDeployOperationSlotThenPoll(ctx context.Context, id SlotInstanceId, input MSDeploy) error { + result, err := c.CreateInstanceMSDeployOperationSlot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateInstanceMSDeployOperationSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateInstanceMSDeployOperationSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperation.go new file mode 100644 index 000000000000..ff6f642bb418 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperation.go @@ -0,0 +1,74 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateMSDeployOperationOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateMSDeployOperation ... +func (c WebAppsClient) CreateMSDeployOperation(ctx context.Context, id commonids.AppServiceId, input MSDeploy) (result CreateMSDeployOperationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/extensions/mSDeploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateMSDeployOperationThenPoll performs CreateMSDeployOperation then polls until it's completed +func (c WebAppsClient) CreateMSDeployOperationThenPoll(ctx context.Context, id commonids.AppServiceId, input MSDeploy) error { + result, err := c.CreateMSDeployOperation(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateMSDeployOperation: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateMSDeployOperation: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperationslot.go new file mode 100644 index 000000000000..aa7ee03fc6ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperationslot.go @@ -0,0 +1,73 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateMSDeployOperationSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateMSDeployOperationSlot ... +func (c WebAppsClient) CreateMSDeployOperationSlot(ctx context.Context, id SlotId, input MSDeploy) (result CreateMSDeployOperationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/extensions/mSDeploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateMSDeployOperationSlotThenPoll performs CreateMSDeployOperationSlot then polls until it's completed +func (c WebAppsClient) CreateMSDeployOperationSlotThenPoll(ctx context.Context, id SlotId, input MSDeploy) error { + result, err := c.CreateMSDeployOperationSlot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateMSDeployOperationSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateMSDeployOperationSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createonedeployoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createonedeployoperation.go new file mode 100644 index 000000000000..a53675c71684 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createonedeployoperation.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOneDeployOperationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *interface{} +} + +// CreateOneDeployOperation ... +func (c WebAppsClient) CreateOneDeployOperation(ctx context.Context, id commonids.AppServiceId) (result CreateOneDeployOperationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/extensions/onedeploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdate.go new file mode 100644 index 000000000000..e4ec4f65f7ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdate.go @@ -0,0 +1,75 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateOrUpdate ... +func (c WebAppsClient) CreateOrUpdate(ctx context.Context, id commonids.AppServiceId, input Site) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c WebAppsClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.AppServiceId, input Site) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfiguration.go new file mode 100644 index 000000000000..cd306bf1dfee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfiguration.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteConfigResource +} + +// CreateOrUpdateConfiguration ... +func (c WebAppsClient) CreateOrUpdateConfiguration(ctx context.Context, id commonids.AppServiceId, input SiteConfigResource) (result CreateOrUpdateConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfigurationslot.go new file mode 100644 index 000000000000..de45a5ee5b41 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfigurationslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateConfigurationSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteConfigResource +} + +// CreateOrUpdateConfigurationSlot ... +func (c WebAppsClient) CreateOrUpdateConfigurationSlot(ctx context.Context, id SlotId, input SiteConfigResource) (result CreateOrUpdateConfigurationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifier.go new file mode 100644 index 000000000000..46d24f030bc3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifier.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateDomainOwnershipIdentifierOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Identifier +} + +// CreateOrUpdateDomainOwnershipIdentifier ... +func (c WebAppsClient) CreateOrUpdateDomainOwnershipIdentifier(ctx context.Context, id DomainOwnershipIdentifierId, input Identifier) (result CreateOrUpdateDomainOwnershipIdentifierOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifierslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifierslot.go new file mode 100644 index 000000000000..12edd068565c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifierslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateDomainOwnershipIdentifierSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Identifier +} + +// CreateOrUpdateDomainOwnershipIdentifierSlot ... +func (c WebAppsClient) CreateOrUpdateDomainOwnershipIdentifierSlot(ctx context.Context, id SlotDomainOwnershipIdentifierId, input Identifier) (result CreateOrUpdateDomainOwnershipIdentifierSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecret.go new file mode 100644 index 000000000000..d4b2261db686 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecret.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateFunctionSecretOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *KeyInfo +} + +// CreateOrUpdateFunctionSecret ... +func (c WebAppsClient) CreateOrUpdateFunctionSecret(ctx context.Context, id KeyId, input KeyInfo) (result CreateOrUpdateFunctionSecretOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecretslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecretslot.go new file mode 100644 index 000000000000..1b37b8d8d644 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecretslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateFunctionSecretSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *KeyInfo +} + +// CreateOrUpdateFunctionSecretSlot ... +func (c WebAppsClient) CreateOrUpdateFunctionSecretSlot(ctx context.Context, id FunctionKeyId, input KeyInfo) (result CreateOrUpdateFunctionSecretSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebinding.go new file mode 100644 index 000000000000..1aacdcd12afd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebinding.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateHostNameBindingOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HostNameBinding +} + +// CreateOrUpdateHostNameBinding ... +func (c WebAppsClient) CreateOrUpdateHostNameBinding(ctx context.Context, id HostNameBindingId, input HostNameBinding) (result CreateOrUpdateHostNameBindingOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebindingslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebindingslot.go new file mode 100644 index 000000000000..e0946400f6e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebindingslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateHostNameBindingSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HostNameBinding +} + +// CreateOrUpdateHostNameBindingSlot ... +func (c WebAppsClient) CreateOrUpdateHostNameBindingSlot(ctx context.Context, id SlotHostNameBindingId, input HostNameBinding) (result CreateOrUpdateHostNameBindingSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecret.go new file mode 100644 index 000000000000..0cc1170257be --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecret.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateHostSecretOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *KeyInfo +} + +// CreateOrUpdateHostSecret ... +func (c WebAppsClient) CreateOrUpdateHostSecret(ctx context.Context, id DefaultId, input KeyInfo) (result CreateOrUpdateHostSecretOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecretslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecretslot.go new file mode 100644 index 000000000000..41f17b921353 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecretslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateHostSecretSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *KeyInfo +} + +// CreateOrUpdateHostSecretSlot ... +func (c WebAppsClient) CreateOrUpdateHostSecretSlot(ctx context.Context, id HostDefaultId, input KeyInfo) (result CreateOrUpdateHostSecretSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnection.go new file mode 100644 index 000000000000..ae0b8a3b680a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnection.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateHybridConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridConnection +} + +// CreateOrUpdateHybridConnection ... +func (c WebAppsClient) CreateOrUpdateHybridConnection(ctx context.Context, id RelayId, input HybridConnection) (result CreateOrUpdateHybridConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnectionslot.go new file mode 100644 index 000000000000..ad01c24736ac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnectionslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateHybridConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridConnection +} + +// CreateOrUpdateHybridConnectionSlot ... +func (c WebAppsClient) CreateOrUpdateHybridConnectionSlot(ctx context.Context, id SlotHybridConnectionNamespaceRelayId, input HybridConnection) (result CreateOrUpdateHybridConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificate.go new file mode 100644 index 000000000000..582dc285d35c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificate.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdatePublicCertificateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PublicCertificate +} + +// CreateOrUpdatePublicCertificate ... +func (c WebAppsClient) CreateOrUpdatePublicCertificate(ctx context.Context, id PublicCertificateId, input PublicCertificate) (result CreateOrUpdatePublicCertificateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificateslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificateslot.go new file mode 100644 index 000000000000..e5061b8ceb32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificateslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdatePublicCertificateSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PublicCertificate +} + +// CreateOrUpdatePublicCertificateSlot ... +func (c WebAppsClient) CreateOrUpdatePublicCertificateSlot(ctx context.Context, id SlotPublicCertificateId, input PublicCertificate) (result CreateOrUpdatePublicCertificateSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnection.go new file mode 100644 index 000000000000..0c3c76be64df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnection.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateRelayServiceConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RelayServiceConnectionEntity +} + +// CreateOrUpdateRelayServiceConnection ... +func (c WebAppsClient) CreateOrUpdateRelayServiceConnection(ctx context.Context, id HybridConnectionId, input RelayServiceConnectionEntity) (result CreateOrUpdateRelayServiceConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnectionslot.go new file mode 100644 index 000000000000..2c842ac9f46b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnectionslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateRelayServiceConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RelayServiceConnectionEntity +} + +// CreateOrUpdateRelayServiceConnectionSlot ... +func (c WebAppsClient) CreateOrUpdateRelayServiceConnectionSlot(ctx context.Context, id SlotHybridConnectionId, input RelayServiceConnectionEntity) (result CreateOrUpdateRelayServiceConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateslot.go new file mode 100644 index 000000000000..9d70a15080b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateslot.go @@ -0,0 +1,74 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateOrUpdateSlot ... +func (c WebAppsClient) CreateOrUpdateSlot(ctx context.Context, id SlotId, input Site) (result CreateOrUpdateSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateSlotThenPoll performs CreateOrUpdateSlot then polls until it's completed +func (c WebAppsClient) CreateOrUpdateSlotThenPoll(ctx context.Context, id SlotId, input Site) error { + result, err := c.CreateOrUpdateSlot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdateSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdateSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrol.go new file mode 100644 index 000000000000..4f4b1d3dc897 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrol.go @@ -0,0 +1,76 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateSourceControlOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateOrUpdateSourceControl ... +func (c WebAppsClient) CreateOrUpdateSourceControl(ctx context.Context, id commonids.AppServiceId, input SiteSourceControl) (result CreateOrUpdateSourceControlOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateSourceControlThenPoll performs CreateOrUpdateSourceControl then polls until it's completed +func (c WebAppsClient) CreateOrUpdateSourceControlThenPoll(ctx context.Context, id commonids.AppServiceId, input SiteSourceControl) error { + result, err := c.CreateOrUpdateSourceControl(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdateSourceControl: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdateSourceControl: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrolslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrolslot.go new file mode 100644 index 000000000000..72f3ff034317 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrolslot.go @@ -0,0 +1,75 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateSourceControlSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateOrUpdateSourceControlSlot ... +func (c WebAppsClient) CreateOrUpdateSourceControlSlot(ctx context.Context, id SlotId, input SiteSourceControl) (result CreateOrUpdateSourceControlSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateSourceControlSlotThenPoll performs CreateOrUpdateSourceControlSlot then polls until it's completed +func (c WebAppsClient) CreateOrUpdateSourceControlSlotThenPoll(ctx context.Context, id SlotId, input SiteSourceControl) error { + result, err := c.CreateOrUpdateSourceControlSlot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdateSourceControlSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdateSourceControlSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheck.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheck.go new file mode 100644 index 000000000000..75f2dc055fcd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheck.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SwiftVirtualNetwork +} + +// CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck ... +func (c WebAppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck(ctx context.Context, id commonids.AppServiceId, input SwiftVirtualNetwork) (result CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/networkConfig/virtualNetwork", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheckslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheckslot.go new file mode 100644 index 000000000000..ec1faccc5afc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheckslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SwiftVirtualNetwork +} + +// CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot ... +func (c WebAppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot(ctx context.Context, id SlotId, input SwiftVirtualNetwork) (result CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/networkConfig/virtualNetwork", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnection.go new file mode 100644 index 000000000000..58504031857b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnection.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateVnetConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetInfoResource +} + +// CreateOrUpdateVnetConnection ... +func (c WebAppsClient) CreateOrUpdateVnetConnection(ctx context.Context, id VirtualNetworkConnectionId, input VnetInfoResource) (result CreateOrUpdateVnetConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongateway.go new file mode 100644 index 000000000000..9512a888a224 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongateway.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateVnetConnectionGatewayOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetGateway +} + +// CreateOrUpdateVnetConnectionGateway ... +func (c WebAppsClient) CreateOrUpdateVnetConnectionGateway(ctx context.Context, id GatewayId, input VnetGateway) (result CreateOrUpdateVnetConnectionGatewayOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongatewayslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongatewayslot.go new file mode 100644 index 000000000000..8c0bc2c332b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongatewayslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateVnetConnectionGatewaySlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetGateway +} + +// CreateOrUpdateVnetConnectionGatewaySlot ... +func (c WebAppsClient) CreateOrUpdateVnetConnectionGatewaySlot(ctx context.Context, id SlotVirtualNetworkConnectionGatewayId, input VnetGateway) (result CreateOrUpdateVnetConnectionGatewaySlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectionslot.go new file mode 100644 index 000000000000..ead3176d7e46 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectionslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateVnetConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetInfoResource +} + +// CreateOrUpdateVnetConnectionSlot ... +func (c WebAppsClient) CreateOrUpdateVnetConnectionSlot(ctx context.Context, id SlotVirtualNetworkConnectionId, input VnetInfoResource) (result CreateOrUpdateVnetConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_delete.go new file mode 100644 index 000000000000..e9d88eba269a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_delete.go @@ -0,0 +1,81 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + DeleteEmptyServerFarm *bool + DeleteMetrics *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.DeleteEmptyServerFarm != nil { + out.Append("deleteEmptyServerFarm", fmt.Sprintf("%v", *o.DeleteEmptyServerFarm)) + } + if o.DeleteMetrics != nil { + out.Append("deleteMetrics", fmt.Sprintf("%v", *o.DeleteMetrics)) + } + return &out +} + +// Delete ... +func (c WebAppsClient) Delete(ctx context.Context, id commonids.AppServiceId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackup.go new file mode 100644 index 000000000000..b2335e64953e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackup.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteBackupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteBackup ... +func (c WebAppsClient) DeleteBackup(ctx context.Context, id BackupId) (result DeleteBackupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfiguration.go new file mode 100644 index 000000000000..fe9d53c8236a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfiguration.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteBackupConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteBackupConfiguration ... +func (c WebAppsClient) DeleteBackupConfiguration(ctx context.Context, id commonids.AppServiceId) (result DeleteBackupConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/config/backup", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfigurationslot.go new file mode 100644 index 000000000000..e417eec9042b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfigurationslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteBackupConfigurationSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteBackupConfigurationSlot ... +func (c WebAppsClient) DeleteBackupConfigurationSlot(ctx context.Context, id SlotId) (result DeleteBackupConfigurationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/config/backup", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupslot.go new file mode 100644 index 000000000000..42f5d96f9bb7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupslot.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteBackupSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteBackupSlot ... +func (c WebAppsClient) DeleteBackupSlot(ctx context.Context, id SlotBackupId) (result DeleteBackupSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjob.go new file mode 100644 index 000000000000..291bdb8bdb20 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjob.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteContinuousWebJobOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteContinuousWebJob ... +func (c WebAppsClient) DeleteContinuousWebJob(ctx context.Context, id ContinuousWebJobId) (result DeleteContinuousWebJobOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjobslot.go new file mode 100644 index 000000000000..08d6fbcf7ce7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjobslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteContinuousWebJobSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteContinuousWebJobSlot ... +func (c WebAppsClient) DeleteContinuousWebJobSlot(ctx context.Context, id SlotContinuousWebJobId) (result DeleteContinuousWebJobSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeployment.go new file mode 100644 index 000000000000..602496fecbe9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeployment.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteDeploymentOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteDeployment ... +func (c WebAppsClient) DeleteDeployment(ctx context.Context, id DeploymentId) (result DeleteDeploymentOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeploymentslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeploymentslot.go new file mode 100644 index 000000000000..dcc3d21bbd1c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeploymentslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteDeploymentSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteDeploymentSlot ... +func (c WebAppsClient) DeleteDeploymentSlot(ctx context.Context, id SlotDeploymentId) (result DeleteDeploymentSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifier.go new file mode 100644 index 000000000000..c170a9280d7c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifier.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteDomainOwnershipIdentifierOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteDomainOwnershipIdentifier ... +func (c WebAppsClient) DeleteDomainOwnershipIdentifier(ctx context.Context, id DomainOwnershipIdentifierId) (result DeleteDomainOwnershipIdentifierOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifierslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifierslot.go new file mode 100644 index 000000000000..28567f8ab9eb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifierslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteDomainOwnershipIdentifierSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteDomainOwnershipIdentifierSlot ... +func (c WebAppsClient) DeleteDomainOwnershipIdentifierSlot(ctx context.Context, id SlotDomainOwnershipIdentifierId) (result DeleteDomainOwnershipIdentifierSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunction.go new file mode 100644 index 000000000000..63c737693ddf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunction.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteFunctionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteFunction ... +func (c WebAppsClient) DeleteFunction(ctx context.Context, id FunctionId) (result DeleteFunctionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecret.go new file mode 100644 index 000000000000..279dac44b092 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecret.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteFunctionSecretOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteFunctionSecret ... +func (c WebAppsClient) DeleteFunctionSecret(ctx context.Context, id KeyId) (result DeleteFunctionSecretOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecretslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecretslot.go new file mode 100644 index 000000000000..048a73220397 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecretslot.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteFunctionSecretSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteFunctionSecretSlot ... +func (c WebAppsClient) DeleteFunctionSecretSlot(ctx context.Context, id FunctionKeyId) (result DeleteFunctionSecretSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebinding.go new file mode 100644 index 000000000000..f41070632fbc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebinding.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteHostNameBindingOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteHostNameBinding ... +func (c WebAppsClient) DeleteHostNameBinding(ctx context.Context, id HostNameBindingId) (result DeleteHostNameBindingOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebindingslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebindingslot.go new file mode 100644 index 000000000000..f780f65c7977 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebindingslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteHostNameBindingSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteHostNameBindingSlot ... +func (c WebAppsClient) DeleteHostNameBindingSlot(ctx context.Context, id SlotHostNameBindingId) (result DeleteHostNameBindingSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecret.go new file mode 100644 index 000000000000..f7140877326f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecret.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteHostSecretOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteHostSecret ... +func (c WebAppsClient) DeleteHostSecret(ctx context.Context, id DefaultId) (result DeleteHostSecretOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecretslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecretslot.go new file mode 100644 index 000000000000..7b2feaf96f19 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecretslot.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteHostSecretSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteHostSecretSlot ... +func (c WebAppsClient) DeleteHostSecretSlot(ctx context.Context, id HostDefaultId) (result DeleteHostSecretSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnection.go new file mode 100644 index 000000000000..4c59c6746f29 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnection.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteHybridConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteHybridConnection ... +func (c WebAppsClient) DeleteHybridConnection(ctx context.Context, id RelayId) (result DeleteHybridConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnectionslot.go new file mode 100644 index 000000000000..e5cd0c8f8ef1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnectionslot.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteHybridConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteHybridConnectionSlot ... +func (c WebAppsClient) DeleteHybridConnectionSlot(ctx context.Context, id SlotHybridConnectionNamespaceRelayId) (result DeleteHybridConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstancefunctionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstancefunctionslot.go new file mode 100644 index 000000000000..b69048fa6829 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstancefunctionslot.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteInstanceFunctionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteInstanceFunctionSlot ... +func (c WebAppsClient) DeleteInstanceFunctionSlot(ctx context.Context, id SlotFunctionId) (result DeleteInstanceFunctionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocess.go new file mode 100644 index 000000000000..1f48c5d2ee78 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocess.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteInstanceProcessOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteInstanceProcess ... +func (c WebAppsClient) DeleteInstanceProcess(ctx context.Context, id InstanceProcessId) (result DeleteInstanceProcessOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocessslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocessslot.go new file mode 100644 index 000000000000..4a86b938433b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocessslot.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteInstanceProcessSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteInstanceProcessSlot ... +func (c WebAppsClient) DeleteInstanceProcessSlot(ctx context.Context, id SlotInstanceProcessId) (result DeleteInstanceProcessSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddon.go new file mode 100644 index 000000000000..add6d111d1d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddon.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletePremierAddOnOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeletePremierAddOn ... +func (c WebAppsClient) DeletePremierAddOn(ctx context.Context, id PremierAddonId) (result DeletePremierAddOnOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddonslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddonslot.go new file mode 100644 index 000000000000..e2e6333e3c47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddonslot.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletePremierAddOnSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeletePremierAddOnSlot ... +func (c WebAppsClient) DeletePremierAddOnSlot(ctx context.Context, id SlotPremierAddonId) (result DeletePremierAddOnSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnection.go new file mode 100644 index 000000000000..e8cf908da964 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnection.go @@ -0,0 +1,71 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletePrivateEndpointConnectionOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// DeletePrivateEndpointConnection ... +func (c WebAppsClient) DeletePrivateEndpointConnection(ctx context.Context, id PrivateEndpointConnectionId) (result DeletePrivateEndpointConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeletePrivateEndpointConnectionThenPoll performs DeletePrivateEndpointConnection then polls until it's completed +func (c WebAppsClient) DeletePrivateEndpointConnectionThenPoll(ctx context.Context, id PrivateEndpointConnectionId) error { + result, err := c.DeletePrivateEndpointConnection(ctx, id) + if err != nil { + return fmt.Errorf("performing DeletePrivateEndpointConnection: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after DeletePrivateEndpointConnection: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnectionslot.go new file mode 100644 index 000000000000..b4a1bb85bffa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnectionslot.go @@ -0,0 +1,71 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletePrivateEndpointConnectionSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// DeletePrivateEndpointConnectionSlot ... +func (c WebAppsClient) DeletePrivateEndpointConnectionSlot(ctx context.Context, id SlotPrivateEndpointConnectionId) (result DeletePrivateEndpointConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeletePrivateEndpointConnectionSlotThenPoll performs DeletePrivateEndpointConnectionSlot then polls until it's completed +func (c WebAppsClient) DeletePrivateEndpointConnectionSlotThenPoll(ctx context.Context, id SlotPrivateEndpointConnectionId) error { + result, err := c.DeletePrivateEndpointConnectionSlot(ctx, id) + if err != nil { + return fmt.Errorf("performing DeletePrivateEndpointConnectionSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after DeletePrivateEndpointConnectionSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocess.go new file mode 100644 index 000000000000..e925942300cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocess.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteProcessOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteProcess ... +func (c WebAppsClient) DeleteProcess(ctx context.Context, id ProcessId) (result DeleteProcessOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocessslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocessslot.go new file mode 100644 index 000000000000..da7cb778e032 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocessslot.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteProcessSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteProcessSlot ... +func (c WebAppsClient) DeleteProcessSlot(ctx context.Context, id SlotProcessId) (result DeleteProcessSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificate.go new file mode 100644 index 000000000000..8b04d3228012 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificate.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletePublicCertificateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeletePublicCertificate ... +func (c WebAppsClient) DeletePublicCertificate(ctx context.Context, id PublicCertificateId) (result DeletePublicCertificateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificateslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificateslot.go new file mode 100644 index 000000000000..98fca6889bf4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificateslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletePublicCertificateSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeletePublicCertificateSlot ... +func (c WebAppsClient) DeletePublicCertificateSlot(ctx context.Context, id SlotPublicCertificateId) (result DeletePublicCertificateSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnection.go new file mode 100644 index 000000000000..be9ded1355d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnection.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteRelayServiceConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteRelayServiceConnection ... +func (c WebAppsClient) DeleteRelayServiceConnection(ctx context.Context, id HybridConnectionId) (result DeleteRelayServiceConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnectionslot.go new file mode 100644 index 000000000000..42eccd7e9f59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnectionslot.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteRelayServiceConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteRelayServiceConnectionSlot ... +func (c WebAppsClient) DeleteRelayServiceConnectionSlot(ctx context.Context, id SlotHybridConnectionId) (result DeleteRelayServiceConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextension.go new file mode 100644 index 000000000000..525f7419d0d6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextension.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteSiteExtensionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteSiteExtension ... +func (c WebAppsClient) DeleteSiteExtension(ctx context.Context, id SiteExtensionId) (result DeleteSiteExtensionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextensionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextensionslot.go new file mode 100644 index 000000000000..cad4ab2271eb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextensionslot.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteSiteExtensionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteSiteExtensionSlot ... +func (c WebAppsClient) DeleteSiteExtensionSlot(ctx context.Context, id SlotSiteExtensionId) (result DeleteSiteExtensionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteslot.go new file mode 100644 index 000000000000..b134af545339 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteslot.go @@ -0,0 +1,80 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteSlotOperationOptions struct { + DeleteEmptyServerFarm *bool + DeleteMetrics *bool +} + +func DefaultDeleteSlotOperationOptions() DeleteSlotOperationOptions { + return DeleteSlotOperationOptions{} +} + +func (o DeleteSlotOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteSlotOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o DeleteSlotOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.DeleteEmptyServerFarm != nil { + out.Append("deleteEmptyServerFarm", fmt.Sprintf("%v", *o.DeleteEmptyServerFarm)) + } + if o.DeleteMetrics != nil { + out.Append("deleteMetrics", fmt.Sprintf("%v", *o.DeleteMetrics)) + } + return &out +} + +// DeleteSlot ... +func (c WebAppsClient) DeleteSlot(ctx context.Context, id SlotId, options DeleteSlotOperationOptions) (result DeleteSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrol.go new file mode 100644 index 000000000000..1de5d801f354 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrol.go @@ -0,0 +1,77 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteSourceControlOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteSourceControlOperationOptions struct { + AdditionalFlags *string +} + +func DefaultDeleteSourceControlOperationOptions() DeleteSourceControlOperationOptions { + return DeleteSourceControlOperationOptions{} +} + +func (o DeleteSourceControlOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteSourceControlOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o DeleteSourceControlOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.AdditionalFlags != nil { + out.Append("additionalFlags", fmt.Sprintf("%v", *o.AdditionalFlags)) + } + return &out +} + +// DeleteSourceControl ... +func (c WebAppsClient) DeleteSourceControl(ctx context.Context, id commonids.AppServiceId, options DeleteSourceControlOperationOptions) (result DeleteSourceControlOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrolslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrolslot.go new file mode 100644 index 000000000000..58843d09923c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrolslot.go @@ -0,0 +1,76 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteSourceControlSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteSourceControlSlotOperationOptions struct { + AdditionalFlags *string +} + +func DefaultDeleteSourceControlSlotOperationOptions() DeleteSourceControlSlotOperationOptions { + return DeleteSourceControlSlotOperationOptions{} +} + +func (o DeleteSourceControlSlotOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteSourceControlSlotOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o DeleteSourceControlSlotOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.AdditionalFlags != nil { + out.Append("additionalFlags", fmt.Sprintf("%v", *o.AdditionalFlags)) + } + return &out +} + +// DeleteSourceControlSlot ... +func (c WebAppsClient) DeleteSourceControlSlot(ctx context.Context, id SlotId, options DeleteSourceControlSlotOperationOptions) (result DeleteSourceControlSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetwork.go new file mode 100644 index 000000000000..5f7c911990a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetwork.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteSwiftVirtualNetworkOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteSwiftVirtualNetwork ... +func (c WebAppsClient) DeleteSwiftVirtualNetwork(ctx context.Context, id commonids.AppServiceId) (result DeleteSwiftVirtualNetworkOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/networkConfig/virtualNetwork", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetworkslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetworkslot.go new file mode 100644 index 000000000000..a63702c17c32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetworkslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteSwiftVirtualNetworkSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteSwiftVirtualNetworkSlot ... +func (c WebAppsClient) DeleteSwiftVirtualNetworkSlot(ctx context.Context, id SlotId) (result DeleteSwiftVirtualNetworkSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/networkConfig/virtualNetwork", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjob.go new file mode 100644 index 000000000000..c09a8a7cdcfb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjob.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteTriggeredWebJobOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteTriggeredWebJob ... +func (c WebAppsClient) DeleteTriggeredWebJob(ctx context.Context, id TriggeredWebJobId) (result DeleteTriggeredWebJobOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjobslot.go new file mode 100644 index 000000000000..c9aa75af711c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjobslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteTriggeredWebJobSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteTriggeredWebJobSlot ... +func (c WebAppsClient) DeleteTriggeredWebJobSlot(ctx context.Context, id SlotTriggeredWebJobId) (result DeleteTriggeredWebJobSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnection.go new file mode 100644 index 000000000000..09e001b1b8a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnection.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteVnetConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteVnetConnection ... +func (c WebAppsClient) DeleteVnetConnection(ctx context.Context, id VirtualNetworkConnectionId) (result DeleteVnetConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnectionslot.go new file mode 100644 index 000000000000..eb208686b5d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnectionslot.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteVnetConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteVnetConnectionSlot ... +func (c WebAppsClient) DeleteVnetConnectionSlot(ctx context.Context, id SlotVirtualNetworkConnectionId) (result DeleteVnetConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifacts.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifacts.go new file mode 100644 index 000000000000..8b6316e6292d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifacts.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeployWorkflowArtifactsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeployWorkflowArtifacts ... +func (c WebAppsClient) DeployWorkflowArtifacts(ctx context.Context, id commonids.AppServiceId, input WorkflowArtifacts) (result DeployWorkflowArtifactsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/deployWorkflowArtifacts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifactsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifactsslot.go new file mode 100644 index 000000000000..86a6bd816b52 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifactsslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeployWorkflowArtifactsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeployWorkflowArtifactsSlot ... +func (c WebAppsClient) DeployWorkflowArtifactsSlot(ctx context.Context, id SlotId, input WorkflowArtifacts) (result DeployWorkflowArtifactsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/deployWorkflowArtifacts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackup.go new file mode 100644 index 000000000000..c723907265d6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackup.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiscoverBackupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RestoreRequest +} + +// DiscoverBackup ... +func (c WebAppsClient) DiscoverBackup(ctx context.Context, id commonids.AppServiceId, input RestoreRequest) (result DiscoverBackupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/discoverbackup", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackupslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackupslot.go new file mode 100644 index 000000000000..fb9a84a38403 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackupslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiscoverBackupSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RestoreRequest +} + +// DiscoverBackupSlot ... +func (c WebAppsClient) DiscoverBackupSlot(ctx context.Context, id SlotId, input RestoreRequest) (result DiscoverBackupSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/discoverbackup", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpassword.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpassword.go new file mode 100644 index 000000000000..6e02a601437c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpassword.go @@ -0,0 +1,49 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GenerateNewSitePublishingPasswordOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// GenerateNewSitePublishingPassword ... +func (c WebAppsClient) GenerateNewSitePublishingPassword(ctx context.Context, id commonids.AppServiceId) (result GenerateNewSitePublishingPasswordOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/newpassword", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpasswordslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpasswordslot.go new file mode 100644 index 000000000000..71e052a00e28 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpasswordslot.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GenerateNewSitePublishingPasswordSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// GenerateNewSitePublishingPasswordSlot ... +func (c WebAppsClient) GenerateNewSitePublishingPasswordSlot(ctx context.Context, id SlotId) (result GenerateNewSitePublishingPasswordSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/newpassword", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_get.go new file mode 100644 index 000000000000..df93a411977d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_get.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Site +} + +// Get ... +func (c WebAppsClient) Get(ctx context.Context, id commonids.AppServiceId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreference.go new file mode 100644 index 000000000000..9c8b391822ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreference.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAppSettingKeyVaultReferenceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiKVReference +} + +// GetAppSettingKeyVaultReference ... +func (c WebAppsClient) GetAppSettingKeyVaultReference(ctx context.Context, id AppSettingId) (result GetAppSettingKeyVaultReferenceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreferenceslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreferenceslot.go new file mode 100644 index 000000000000..a295c8e5618e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreferenceslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAppSettingKeyVaultReferenceSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiKVReference +} + +// GetAppSettingKeyVaultReferenceSlot ... +func (c WebAppsClient) GetAppSettingKeyVaultReferenceSlot(ctx context.Context, id ConfigReferenceAppSettingId) (result GetAppSettingKeyVaultReferenceSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferences.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferences.go new file mode 100644 index 000000000000..040601edb6ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferences.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAppSettingsKeyVaultReferencesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApiKVReference +} + +type GetAppSettingsKeyVaultReferencesCompleteResult struct { + Items []ApiKVReference +} + +// GetAppSettingsKeyVaultReferences ... +func (c WebAppsClient) GetAppSettingsKeyVaultReferences(ctx context.Context, id commonids.AppServiceId) (result GetAppSettingsKeyVaultReferencesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/configReferences/appSettings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApiKVReference `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// GetAppSettingsKeyVaultReferencesComplete retrieves all the results into a single object +func (c WebAppsClient) GetAppSettingsKeyVaultReferencesComplete(ctx context.Context, id commonids.AppServiceId) (GetAppSettingsKeyVaultReferencesCompleteResult, error) { + return c.GetAppSettingsKeyVaultReferencesCompleteMatchingPredicate(ctx, id, ApiKVReferenceOperationPredicate{}) +} + +// GetAppSettingsKeyVaultReferencesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) GetAppSettingsKeyVaultReferencesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate ApiKVReferenceOperationPredicate) (result GetAppSettingsKeyVaultReferencesCompleteResult, err error) { + items := make([]ApiKVReference, 0) + + resp, err := c.GetAppSettingsKeyVaultReferences(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = GetAppSettingsKeyVaultReferencesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferencesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferencesslot.go new file mode 100644 index 000000000000..69d0464fb677 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferencesslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAppSettingsKeyVaultReferencesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApiKVReference +} + +type GetAppSettingsKeyVaultReferencesSlotCompleteResult struct { + Items []ApiKVReference +} + +// GetAppSettingsKeyVaultReferencesSlot ... +func (c WebAppsClient) GetAppSettingsKeyVaultReferencesSlot(ctx context.Context, id SlotId) (result GetAppSettingsKeyVaultReferencesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/configReferences/appSettings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApiKVReference `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// GetAppSettingsKeyVaultReferencesSlotComplete retrieves all the results into a single object +func (c WebAppsClient) GetAppSettingsKeyVaultReferencesSlotComplete(ctx context.Context, id SlotId) (GetAppSettingsKeyVaultReferencesSlotCompleteResult, error) { + return c.GetAppSettingsKeyVaultReferencesSlotCompleteMatchingPredicate(ctx, id, ApiKVReferenceOperationPredicate{}) +} + +// GetAppSettingsKeyVaultReferencesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) GetAppSettingsKeyVaultReferencesSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate ApiKVReferenceOperationPredicate) (result GetAppSettingsKeyVaultReferencesSlotCompleteResult, err error) { + items := make([]ApiKVReference, 0) + + resp, err := c.GetAppSettingsKeyVaultReferencesSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = GetAppSettingsKeyVaultReferencesSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettings.go new file mode 100644 index 000000000000..4f56580c1016 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettings.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAuthSettingsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteAuthSettings +} + +// GetAuthSettings ... +func (c WebAppsClient) GetAuthSettings(ctx context.Context, id commonids.AppServiceId) (result GetAuthSettingsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/authsettings/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsslot.go new file mode 100644 index 000000000000..a4159e682331 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAuthSettingsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteAuthSettings +} + +// GetAuthSettingsSlot ... +func (c WebAppsClient) GetAuthSettingsSlot(ctx context.Context, id SlotId) (result GetAuthSettingsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/authsettings/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2.go new file mode 100644 index 000000000000..66723074eb0c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAuthSettingsV2OperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteAuthSettingsV2 +} + +// GetAuthSettingsV2 ... +func (c WebAppsClient) GetAuthSettingsV2(ctx context.Context, id commonids.AppServiceId) (result GetAuthSettingsV2OperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/authsettingsV2/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2slot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2slot.go new file mode 100644 index 000000000000..77c1b5989949 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2slot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAuthSettingsV2SlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteAuthSettingsV2 +} + +// GetAuthSettingsV2Slot ... +func (c WebAppsClient) GetAuthSettingsV2Slot(ctx context.Context, id SlotId) (result GetAuthSettingsV2SlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/authsettingsV2/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecrets.go new file mode 100644 index 000000000000..ec73d11df661 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecrets.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAuthSettingsV2WithoutSecretsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteAuthSettingsV2 +} + +// GetAuthSettingsV2WithoutSecrets ... +func (c WebAppsClient) GetAuthSettingsV2WithoutSecrets(ctx context.Context, id commonids.AppServiceId) (result GetAuthSettingsV2WithoutSecretsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/authsettingsV2", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecretsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecretsslot.go new file mode 100644 index 000000000000..d25bd3b85a8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecretsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAuthSettingsV2WithoutSecretsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteAuthSettingsV2 +} + +// GetAuthSettingsV2WithoutSecretsSlot ... +func (c WebAppsClient) GetAuthSettingsV2WithoutSecretsSlot(ctx context.Context, id SlotId) (result GetAuthSettingsV2WithoutSecretsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/authsettingsV2", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfiguration.go new file mode 100644 index 000000000000..dab5ba05ad00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfiguration.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetBackupConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupRequest +} + +// GetBackupConfiguration ... +func (c WebAppsClient) GetBackupConfiguration(ctx context.Context, id commonids.AppServiceId) (result GetBackupConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/backup/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfigurationslot.go new file mode 100644 index 000000000000..b894b74e2772 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfigurationslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetBackupConfigurationSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupRequest +} + +// GetBackupConfigurationSlot ... +func (c WebAppsClient) GetBackupConfigurationSlot(ctx context.Context, id SlotId) (result GetBackupConfigurationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/backup/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatus.go new file mode 100644 index 000000000000..5b5c6aaf52fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatus.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetBackupStatusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupItem +} + +// GetBackupStatus ... +func (c WebAppsClient) GetBackupStatus(ctx context.Context, id BackupId) (result GetBackupStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatusslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatusslot.go new file mode 100644 index 000000000000..d9dfd0990c2a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatusslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetBackupStatusSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupItem +} + +// GetBackupStatusSlot ... +func (c WebAppsClient) GetBackupStatusSlot(ctx context.Context, id SlotBackupId) (result GetBackupStatusSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfiguration.go new file mode 100644 index 000000000000..3718e56bc0e1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfiguration.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteConfigResource +} + +// GetConfiguration ... +func (c WebAppsClient) GetConfiguration(ctx context.Context, id commonids.AppServiceId) (result GetConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationslot.go new file mode 100644 index 000000000000..e1f78cd22ede --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetConfigurationSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteConfigResource +} + +// GetConfigurationSlot ... +func (c WebAppsClient) GetConfigurationSlot(ctx context.Context, id SlotId) (result GetConfigurationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshot.go new file mode 100644 index 000000000000..153a687b47b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetConfigurationSnapshotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteConfigResource +} + +// GetConfigurationSnapshot ... +func (c WebAppsClient) GetConfigurationSnapshot(ctx context.Context, id SnapshotId) (result GetConfigurationSnapshotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshotslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshotslot.go new file mode 100644 index 000000000000..8bfee345cdf2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshotslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetConfigurationSnapshotSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteConfigResource +} + +// GetConfigurationSnapshotSlot ... +func (c WebAppsClient) GetConfigurationSnapshotSlot(ctx context.Context, id WebSnapshotId) (result GetConfigurationSnapshotSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszip.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszip.go new file mode 100644 index 000000000000..72363f7bcd0b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszip.go @@ -0,0 +1,54 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetContainerLogsZipOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]byte +} + +// GetContainerLogsZip ... +func (c WebAppsClient) GetContainerLogsZip(ctx context.Context, id commonids.AppServiceId) (result GetContainerLogsZipOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/containerlogs/zip/download", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszipslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszipslot.go new file mode 100644 index 000000000000..e37a23f5a0d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszipslot.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetContainerLogsZipSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]byte +} + +// GetContainerLogsZipSlot ... +func (c WebAppsClient) GetContainerLogsZipSlot(ctx context.Context, id SlotId) (result GetContainerLogsZipSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/containerlogs/zip/download", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjob.go new file mode 100644 index 000000000000..689a23640dd2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjob.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetContinuousWebJobOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ContinuousWebJob +} + +// GetContinuousWebJob ... +func (c WebAppsClient) GetContinuousWebJob(ctx context.Context, id ContinuousWebJobId) (result GetContinuousWebJobOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjobslot.go new file mode 100644 index 000000000000..9ff3daa6b82a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjobslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetContinuousWebJobSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ContinuousWebJob +} + +// GetContinuousWebJobSlot ... +func (c WebAppsClient) GetContinuousWebJobSlot(ctx context.Context, id SlotContinuousWebJobId) (result GetContinuousWebJobSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeployment.go new file mode 100644 index 000000000000..af3f9b28ab38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeployment.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetDeploymentOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Deployment +} + +// GetDeployment ... +func (c WebAppsClient) GetDeployment(ctx context.Context, id DeploymentId) (result GetDeploymentOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeploymentslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeploymentslot.go new file mode 100644 index 000000000000..e5c50649121b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeploymentslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetDeploymentSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Deployment +} + +// GetDeploymentSlot ... +func (c WebAppsClient) GetDeploymentSlot(ctx context.Context, id SlotDeploymentId) (result GetDeploymentSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfiguration.go new file mode 100644 index 000000000000..4d2b9c303b8f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfiguration.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetDiagnosticLogsConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteLogsConfig +} + +// GetDiagnosticLogsConfiguration ... +func (c WebAppsClient) GetDiagnosticLogsConfiguration(ctx context.Context, id commonids.AppServiceId) (result GetDiagnosticLogsConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/logs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfigurationslot.go new file mode 100644 index 000000000000..43bc4437d07d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfigurationslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetDiagnosticLogsConfigurationSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteLogsConfig +} + +// GetDiagnosticLogsConfigurationSlot ... +func (c WebAppsClient) GetDiagnosticLogsConfigurationSlot(ctx context.Context, id SlotId) (result GetDiagnosticLogsConfigurationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/logs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifier.go new file mode 100644 index 000000000000..4ffdcba29f22 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifier.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetDomainOwnershipIdentifierOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Identifier +} + +// GetDomainOwnershipIdentifier ... +func (c WebAppsClient) GetDomainOwnershipIdentifier(ctx context.Context, id DomainOwnershipIdentifierId) (result GetDomainOwnershipIdentifierOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifierslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifierslot.go new file mode 100644 index 000000000000..e318d77d5bd2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifierslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetDomainOwnershipIdentifierSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Identifier +} + +// GetDomainOwnershipIdentifierSlot ... +func (c WebAppsClient) GetDomainOwnershipIdentifierSlot(ctx context.Context, id SlotDomainOwnershipIdentifierId) (result GetDomainOwnershipIdentifierSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowed.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowed.go new file mode 100644 index 000000000000..ffb8687f37cb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowed.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetFtpAllowedOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CsmPublishingCredentialsPoliciesEntity +} + +// GetFtpAllowed ... +func (c WebAppsClient) GetFtpAllowed(ctx context.Context, id commonids.AppServiceId) (result GetFtpAllowedOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies/ftp", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowedslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowedslot.go new file mode 100644 index 000000000000..2cb45b119cd8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowedslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetFtpAllowedSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CsmPublishingCredentialsPoliciesEntity +} + +// GetFtpAllowedSlot ... +func (c WebAppsClient) GetFtpAllowedSlot(ctx context.Context, id SlotId) (result GetFtpAllowedSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies/ftp", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunction.go new file mode 100644 index 000000000000..dfe1a05a6f75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunction.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetFunctionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FunctionEnvelope +} + +// GetFunction ... +func (c WebAppsClient) GetFunction(ctx context.Context, id FunctionId) (result GetFunctionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintoken.go new file mode 100644 index 000000000000..314fcea678f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintoken.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetFunctionsAdminTokenOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// GetFunctionsAdminToken ... +func (c WebAppsClient) GetFunctionsAdminToken(ctx context.Context, id commonids.AppServiceId) (result GetFunctionsAdminTokenOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/functions/admin/token", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintokenslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintokenslot.go new file mode 100644 index 000000000000..9758651d39bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintokenslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetFunctionsAdminTokenSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// GetFunctionsAdminTokenSlot ... +func (c WebAppsClient) GetFunctionsAdminTokenSlot(ctx context.Context, id SlotId) (result GetFunctionsAdminTokenSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/functions/admin/token", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebinding.go new file mode 100644 index 000000000000..f46073ec1aef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebinding.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetHostNameBindingOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HostNameBinding +} + +// GetHostNameBinding ... +func (c WebAppsClient) GetHostNameBinding(ctx context.Context, id HostNameBindingId) (result GetHostNameBindingOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebindingslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebindingslot.go new file mode 100644 index 000000000000..cdc963771bb2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebindingslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetHostNameBindingSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HostNameBinding +} + +// GetHostNameBindingSlot ... +func (c WebAppsClient) GetHostNameBindingSlot(ctx context.Context, id SlotHostNameBindingId) (result GetHostNameBindingSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnection.go new file mode 100644 index 000000000000..180c6dee6084 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnection.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetHybridConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridConnection +} + +// GetHybridConnection ... +func (c WebAppsClient) GetHybridConnection(ctx context.Context, id RelayId) (result GetHybridConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnectionslot.go new file mode 100644 index 000000000000..0894625605f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnectionslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetHybridConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridConnection +} + +// GetHybridConnectionSlot ... +func (c WebAppsClient) GetHybridConnectionSlot(ctx context.Context, id SlotHybridConnectionNamespaceRelayId) (result GetHybridConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancefunctionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancefunctionslot.go new file mode 100644 index 000000000000..f1c3ade523a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancefunctionslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceFunctionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FunctionEnvelope +} + +// GetInstanceFunctionSlot ... +func (c WebAppsClient) GetInstanceFunctionSlot(ctx context.Context, id SlotFunctionId) (result GetInstanceFunctionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfo.go new file mode 100644 index 000000000000..01a8d7927983 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfo.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceInfoOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WebSiteInstanceStatus +} + +// GetInstanceInfo ... +func (c WebAppsClient) GetInstanceInfo(ctx context.Context, id InstanceId) (result GetInstanceInfoOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfoslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfoslot.go new file mode 100644 index 000000000000..bda3adf217af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfoslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceInfoSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WebSiteInstanceStatus +} + +// GetInstanceInfoSlot ... +func (c WebAppsClient) GetInstanceInfoSlot(ctx context.Context, id SlotInstanceId) (result GetInstanceInfoSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylog.go new file mode 100644 index 000000000000..c20ff74158a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylog.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceMSDeployLogOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MSDeployLog +} + +// GetInstanceMSDeployLog ... +func (c WebAppsClient) GetInstanceMSDeployLog(ctx context.Context, id InstanceId) (result GetInstanceMSDeployLogOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/extensions/mSDeploy/log", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylogslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylogslot.go new file mode 100644 index 000000000000..c02ed8857aaf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylogslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceMSDeployLogSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MSDeployLog +} + +// GetInstanceMSDeployLogSlot ... +func (c WebAppsClient) GetInstanceMSDeployLogSlot(ctx context.Context, id SlotInstanceId) (result GetInstanceMSDeployLogSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/extensions/mSDeploy/log", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatus.go new file mode 100644 index 000000000000..4a4c612787d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatus.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceMsDeployStatusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MSDeployStatus +} + +// GetInstanceMsDeployStatus ... +func (c WebAppsClient) GetInstanceMsDeployStatus(ctx context.Context, id InstanceId) (result GetInstanceMsDeployStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/extensions/mSDeploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatusslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatusslot.go new file mode 100644 index 000000000000..831d0e7882ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatusslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceMsDeployStatusSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MSDeployStatus +} + +// GetInstanceMsDeployStatusSlot ... +func (c WebAppsClient) GetInstanceMsDeployStatusSlot(ctx context.Context, id SlotInstanceId) (result GetInstanceMsDeployStatusSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/extensions/mSDeploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocess.go new file mode 100644 index 000000000000..27db08566ae9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocess.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceProcessOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProcessInfo +} + +// GetInstanceProcess ... +func (c WebAppsClient) GetInstanceProcess(ctx context.Context, id InstanceProcessId) (result GetInstanceProcessOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdump.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdump.go new file mode 100644 index 000000000000..2f09e475cc72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdump.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceProcessDumpOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]byte +} + +// GetInstanceProcessDump ... +func (c WebAppsClient) GetInstanceProcessDump(ctx context.Context, id InstanceProcessId) (result GetInstanceProcessDumpOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/dump", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdumpslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdumpslot.go new file mode 100644 index 000000000000..24babf623169 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdumpslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceProcessDumpSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]byte +} + +// GetInstanceProcessDumpSlot ... +func (c WebAppsClient) GetInstanceProcessDumpSlot(ctx context.Context, id SlotInstanceProcessId) (result GetInstanceProcessDumpSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/dump", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmodule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmodule.go new file mode 100644 index 000000000000..edb35420652e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmodule.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceProcessModuleOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProcessModuleInfo +} + +// GetInstanceProcessModule ... +func (c WebAppsClient) GetInstanceProcessModule(ctx context.Context, id InstanceProcessModuleId) (result GetInstanceProcessModuleOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmoduleslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmoduleslot.go new file mode 100644 index 000000000000..66e40013d381 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmoduleslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceProcessModuleSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProcessModuleInfo +} + +// GetInstanceProcessModuleSlot ... +func (c WebAppsClient) GetInstanceProcessModuleSlot(ctx context.Context, id SlotInstanceProcessModuleId) (result GetInstanceProcessModuleSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessslot.go new file mode 100644 index 000000000000..37dcd0fc8e75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceProcessSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProcessInfo +} + +// GetInstanceProcessSlot ... +func (c WebAppsClient) GetInstanceProcessSlot(ctx context.Context, id SlotInstanceProcessId) (result GetInstanceProcessSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceworkflowslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceworkflowslot.go new file mode 100644 index 000000000000..c56222187d8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceworkflowslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInstanceWorkflowSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WorkflowEnvelope +} + +// GetInstanceWorkflowSlot ... +func (c WebAppsClient) GetInstanceWorkflowSlot(ctx context.Context, id SlotWorkflowId) (result GetInstanceWorkflowSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatus.go new file mode 100644 index 000000000000..68893ef8c7fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatus.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetMigrateMySqlStatusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MigrateMySqlStatus +} + +// GetMigrateMySqlStatus ... +func (c WebAppsClient) GetMigrateMySqlStatus(ctx context.Context, id commonids.AppServiceId) (result GetMigrateMySqlStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/migrateMySql/status", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatusslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatusslot.go new file mode 100644 index 000000000000..661b521af2fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatusslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetMigrateMySqlStatusSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MigrateMySqlStatus +} + +// GetMigrateMySqlStatusSlot ... +func (c WebAppsClient) GetMigrateMySqlStatusSlot(ctx context.Context, id SlotId) (result GetMigrateMySqlStatusSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/migrateMySql/status", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylog.go new file mode 100644 index 000000000000..f722e01759c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylog.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetMSDeployLogOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MSDeployLog +} + +// GetMSDeployLog ... +func (c WebAppsClient) GetMSDeployLog(ctx context.Context, id commonids.AppServiceId) (result GetMSDeployLogOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/extensions/mSDeploy/log", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylogslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylogslot.go new file mode 100644 index 000000000000..b4c4a781c7cb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylogslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetMSDeployLogSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MSDeployLog +} + +// GetMSDeployLogSlot ... +func (c WebAppsClient) GetMSDeployLogSlot(ctx context.Context, id SlotId) (result GetMSDeployLogSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/extensions/mSDeploy/log", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatus.go new file mode 100644 index 000000000000..138dddff1496 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatus.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetMSDeployStatusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MSDeployStatus +} + +// GetMSDeployStatus ... +func (c WebAppsClient) GetMSDeployStatus(ctx context.Context, id commonids.AppServiceId) (result GetMSDeployStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/extensions/mSDeploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatusslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatusslot.go new file mode 100644 index 000000000000..94c13ed6939a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatusslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetMSDeployStatusSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MSDeployStatus +} + +// GetMSDeployStatusSlot ... +func (c WebAppsClient) GetMSDeployStatusSlot(ctx context.Context, id SlotId) (result GetMSDeployStatusSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/extensions/mSDeploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktraces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktraces.go new file mode 100644 index 000000000000..91d7b006f6e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktraces.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetNetworkTracesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkTrace +} + +// GetNetworkTraces ... +func (c WebAppsClient) GetNetworkTraces(ctx context.Context, id NetworkTraceId) (result GetNetworkTracesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslot.go new file mode 100644 index 000000000000..5434d922e0f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetNetworkTracesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkTrace +} + +// GetNetworkTracesSlot ... +func (c WebAppsClient) GetNetworkTracesSlot(ctx context.Context, id SlotNetworkTraceId) (result GetNetworkTracesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslotv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslotv2.go new file mode 100644 index 000000000000..489f3f057aa8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslotv2.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetNetworkTracesSlotV2OperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkTrace +} + +// GetNetworkTracesSlotV2 ... +func (c WebAppsClient) GetNetworkTracesSlotV2(ctx context.Context, id SiteSlotNetworkTraceId) (result GetNetworkTracesSlotV2OperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesv2.go new file mode 100644 index 000000000000..35c2ef296ca2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesv2.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetNetworkTracesV2OperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkTrace +} + +// GetNetworkTracesV2 ... +func (c WebAppsClient) GetNetworkTracesV2(ctx context.Context, id SiteNetworkTraceId) (result GetNetworkTracesV2OperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getonedeploystatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getonedeploystatus.go new file mode 100644 index 000000000000..38b0d0c64e66 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getonedeploystatus.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOneDeployStatusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *interface{} +} + +// GetOneDeployStatus ... +func (c WebAppsClient) GetOneDeployStatus(ctx context.Context, id commonids.AppServiceId) (result GetOneDeployStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/extensions/onedeploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddon.go new file mode 100644 index 000000000000..38da877d62ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddon.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPremierAddOnOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PremierAddOn +} + +// GetPremierAddOn ... +func (c WebAppsClient) GetPremierAddOn(ctx context.Context, id PremierAddonId) (result GetPremierAddOnOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddonslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddonslot.go new file mode 100644 index 000000000000..568145718e44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddonslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPremierAddOnSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PremierAddOn +} + +// GetPremierAddOnSlot ... +func (c WebAppsClient) GetPremierAddOnSlot(ctx context.Context, id SlotPremierAddonId) (result GetPremierAddOnSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccess.go new file mode 100644 index 000000000000..0afe7f2d822a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccess.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPrivateAccessOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateAccess +} + +// GetPrivateAccess ... +func (c WebAppsClient) GetPrivateAccess(ctx context.Context, id commonids.AppServiceId) (result GetPrivateAccessOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/privateAccess/virtualNetworks", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccessslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccessslot.go new file mode 100644 index 000000000000..9a70253ed5ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccessslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPrivateAccessSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateAccess +} + +// GetPrivateAccessSlot ... +func (c WebAppsClient) GetPrivateAccessSlot(ctx context.Context, id SlotId) (result GetPrivateAccessSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/privateAccess/virtualNetworks", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnection.go new file mode 100644 index 000000000000..7fe64778518f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnection.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPrivateEndpointConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RemotePrivateEndpointConnectionARMResource +} + +// GetPrivateEndpointConnection ... +func (c WebAppsClient) GetPrivateEndpointConnection(ctx context.Context, id PrivateEndpointConnectionId) (result GetPrivateEndpointConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlist.go new file mode 100644 index 000000000000..38e626132cf6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlist.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPrivateEndpointConnectionListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RemotePrivateEndpointConnectionARMResource +} + +type GetPrivateEndpointConnectionListCompleteResult struct { + Items []RemotePrivateEndpointConnectionARMResource +} + +// GetPrivateEndpointConnectionList ... +func (c WebAppsClient) GetPrivateEndpointConnectionList(ctx context.Context, id commonids.AppServiceId) (result GetPrivateEndpointConnectionListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RemotePrivateEndpointConnectionARMResource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// GetPrivateEndpointConnectionListComplete retrieves all the results into a single object +func (c WebAppsClient) GetPrivateEndpointConnectionListComplete(ctx context.Context, id commonids.AppServiceId) (GetPrivateEndpointConnectionListCompleteResult, error) { + return c.GetPrivateEndpointConnectionListCompleteMatchingPredicate(ctx, id, RemotePrivateEndpointConnectionARMResourceOperationPredicate{}) +} + +// GetPrivateEndpointConnectionListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) GetPrivateEndpointConnectionListCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate RemotePrivateEndpointConnectionARMResourceOperationPredicate) (result GetPrivateEndpointConnectionListCompleteResult, err error) { + items := make([]RemotePrivateEndpointConnectionARMResource, 0) + + resp, err := c.GetPrivateEndpointConnectionList(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = GetPrivateEndpointConnectionListCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlistslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlistslot.go new file mode 100644 index 000000000000..049d5da58183 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlistslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPrivateEndpointConnectionListSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RemotePrivateEndpointConnectionARMResource +} + +type GetPrivateEndpointConnectionListSlotCompleteResult struct { + Items []RemotePrivateEndpointConnectionARMResource +} + +// GetPrivateEndpointConnectionListSlot ... +func (c WebAppsClient) GetPrivateEndpointConnectionListSlot(ctx context.Context, id SlotId) (result GetPrivateEndpointConnectionListSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RemotePrivateEndpointConnectionARMResource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// GetPrivateEndpointConnectionListSlotComplete retrieves all the results into a single object +func (c WebAppsClient) GetPrivateEndpointConnectionListSlotComplete(ctx context.Context, id SlotId) (GetPrivateEndpointConnectionListSlotCompleteResult, error) { + return c.GetPrivateEndpointConnectionListSlotCompleteMatchingPredicate(ctx, id, RemotePrivateEndpointConnectionARMResourceOperationPredicate{}) +} + +// GetPrivateEndpointConnectionListSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) GetPrivateEndpointConnectionListSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate RemotePrivateEndpointConnectionARMResourceOperationPredicate) (result GetPrivateEndpointConnectionListSlotCompleteResult, err error) { + items := make([]RemotePrivateEndpointConnectionARMResource, 0) + + resp, err := c.GetPrivateEndpointConnectionListSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = GetPrivateEndpointConnectionListSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionslot.go new file mode 100644 index 000000000000..40220f9ba49c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPrivateEndpointConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RemotePrivateEndpointConnectionARMResource +} + +// GetPrivateEndpointConnectionSlot ... +func (c WebAppsClient) GetPrivateEndpointConnectionSlot(ctx context.Context, id SlotPrivateEndpointConnectionId) (result GetPrivateEndpointConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresources.go new file mode 100644 index 000000000000..fb7a39e47cdc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresources.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPrivateLinkResourcesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateLinkResourcesWrapper +} + +// GetPrivateLinkResources ... +func (c WebAppsClient) GetPrivateLinkResources(ctx context.Context, id commonids.AppServiceId) (result GetPrivateLinkResourcesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresourcesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresourcesslot.go new file mode 100644 index 000000000000..88aa1084bc69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresourcesslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPrivateLinkResourcesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateLinkResourcesWrapper +} + +// GetPrivateLinkResourcesSlot ... +func (c WebAppsClient) GetPrivateLinkResourcesSlot(ctx context.Context, id SlotId) (result GetPrivateLinkResourcesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocess.go new file mode 100644 index 000000000000..b5d39499e755 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocess.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetProcessOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProcessInfo +} + +// GetProcess ... +func (c WebAppsClient) GetProcess(ctx context.Context, id ProcessId) (result GetProcessOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdump.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdump.go new file mode 100644 index 000000000000..839803ad80a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdump.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetProcessDumpOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]byte +} + +// GetProcessDump ... +func (c WebAppsClient) GetProcessDump(ctx context.Context, id ProcessId) (result GetProcessDumpOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/dump", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdumpslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdumpslot.go new file mode 100644 index 000000000000..b7ba804dcf55 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdumpslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetProcessDumpSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]byte +} + +// GetProcessDumpSlot ... +func (c WebAppsClient) GetProcessDumpSlot(ctx context.Context, id SlotProcessId) (result GetProcessDumpSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/dump", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmodule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmodule.go new file mode 100644 index 000000000000..53e7351f69f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmodule.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetProcessModuleOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProcessModuleInfo +} + +// GetProcessModule ... +func (c WebAppsClient) GetProcessModule(ctx context.Context, id ModuleId) (result GetProcessModuleOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmoduleslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmoduleslot.go new file mode 100644 index 000000000000..7b965fe28330 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmoduleslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetProcessModuleSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProcessModuleInfo +} + +// GetProcessModuleSlot ... +func (c WebAppsClient) GetProcessModuleSlot(ctx context.Context, id ProcessModuleId) (result GetProcessModuleSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessslot.go new file mode 100644 index 000000000000..369c7c6edb17 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetProcessSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProcessInfo +} + +// GetProcessSlot ... +func (c WebAppsClient) GetProcessSlot(ctx context.Context, id SlotProcessId) (result GetProcessSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificate.go new file mode 100644 index 000000000000..b54d7ad16c2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificate.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPublicCertificateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PublicCertificate +} + +// GetPublicCertificate ... +func (c WebAppsClient) GetPublicCertificate(ctx context.Context, id PublicCertificateId) (result GetPublicCertificateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificateslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificateslot.go new file mode 100644 index 000000000000..cf977aa29174 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificateslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPublicCertificateSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PublicCertificate +} + +// GetPublicCertificateSlot ... +func (c WebAppsClient) GetPublicCertificateSlot(ctx context.Context, id SlotPublicCertificateId) (result GetPublicCertificateSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnection.go new file mode 100644 index 000000000000..0d5370af1c0c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnection.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetRelayServiceConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RelayServiceConnectionEntity +} + +// GetRelayServiceConnection ... +func (c WebAppsClient) GetRelayServiceConnection(ctx context.Context, id HybridConnectionId) (result GetRelayServiceConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnectionslot.go new file mode 100644 index 000000000000..faabaf9cd5a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnectionslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetRelayServiceConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RelayServiceConnectionEntity +} + +// GetRelayServiceConnectionSlot ... +func (c WebAppsClient) GetRelayServiceConnectionSlot(ctx context.Context, id SlotHybridConnectionId) (result GetRelayServiceConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowed.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowed.go new file mode 100644 index 000000000000..b999b7f016b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowed.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetScmAllowedOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CsmPublishingCredentialsPoliciesEntity +} + +// GetScmAllowed ... +func (c WebAppsClient) GetScmAllowed(ctx context.Context, id commonids.AppServiceId) (result GetScmAllowedOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies/scm", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowedslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowedslot.go new file mode 100644 index 000000000000..e36bd8067b40 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowedslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetScmAllowedSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CsmPublishingCredentialsPoliciesEntity +} + +// GetScmAllowedSlot ... +func (c WebAppsClient) GetScmAllowedSlot(ctx context.Context, id SlotId) (result GetScmAllowedSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies/scm", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreference.go new file mode 100644 index 000000000000..45710285e48c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreference.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSiteConnectionStringKeyVaultReferenceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiKVReference +} + +// GetSiteConnectionStringKeyVaultReference ... +func (c WebAppsClient) GetSiteConnectionStringKeyVaultReference(ctx context.Context, id ConnectionStringId) (result GetSiteConnectionStringKeyVaultReferenceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go new file mode 100644 index 000000000000..3da43e22c8c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSiteConnectionStringKeyVaultReferencesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApiKVReference +} + +type GetSiteConnectionStringKeyVaultReferencesCompleteResult struct { + Items []ApiKVReference +} + +// GetSiteConnectionStringKeyVaultReferences ... +func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferences(ctx context.Context, id commonids.AppServiceId) (result GetSiteConnectionStringKeyVaultReferencesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/configReferences/connectionStrings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApiKVReference `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// GetSiteConnectionStringKeyVaultReferencesComplete retrieves all the results into a single object +func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferencesComplete(ctx context.Context, id commonids.AppServiceId) (GetSiteConnectionStringKeyVaultReferencesCompleteResult, error) { + return c.GetSiteConnectionStringKeyVaultReferencesCompleteMatchingPredicate(ctx, id, ApiKVReferenceOperationPredicate{}) +} + +// GetSiteConnectionStringKeyVaultReferencesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferencesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate ApiKVReferenceOperationPredicate) (result GetSiteConnectionStringKeyVaultReferencesCompleteResult, err error) { + items := make([]ApiKVReference, 0) + + resp, err := c.GetSiteConnectionStringKeyVaultReferences(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = GetSiteConnectionStringKeyVaultReferencesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferenceslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferenceslot.go new file mode 100644 index 000000000000..25d3a0c53418 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferenceslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSiteConnectionStringKeyVaultReferenceSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApiKVReference +} + +// GetSiteConnectionStringKeyVaultReferenceSlot ... +func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferenceSlot(ctx context.Context, id ConfigReferenceConnectionStringId) (result GetSiteConnectionStringKeyVaultReferenceSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go new file mode 100644 index 000000000000..b7b27fc9ea5f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSiteConnectionStringKeyVaultReferencesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApiKVReference +} + +type GetSiteConnectionStringKeyVaultReferencesSlotCompleteResult struct { + Items []ApiKVReference +} + +// GetSiteConnectionStringKeyVaultReferencesSlot ... +func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferencesSlot(ctx context.Context, id SlotId) (result GetSiteConnectionStringKeyVaultReferencesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/configReferences/connectionStrings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApiKVReference `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// GetSiteConnectionStringKeyVaultReferencesSlotComplete retrieves all the results into a single object +func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferencesSlotComplete(ctx context.Context, id SlotId) (GetSiteConnectionStringKeyVaultReferencesSlotCompleteResult, error) { + return c.GetSiteConnectionStringKeyVaultReferencesSlotCompleteMatchingPredicate(ctx, id, ApiKVReferenceOperationPredicate{}) +} + +// GetSiteConnectionStringKeyVaultReferencesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferencesSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate ApiKVReferenceOperationPredicate) (result GetSiteConnectionStringKeyVaultReferencesSlotCompleteResult, err error) { + items := make([]ApiKVReference, 0) + + resp, err := c.GetSiteConnectionStringKeyVaultReferencesSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = GetSiteConnectionStringKeyVaultReferencesSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextension.go new file mode 100644 index 000000000000..225599a736e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextension.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSiteExtensionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteExtensionInfo +} + +// GetSiteExtension ... +func (c WebAppsClient) GetSiteExtension(ctx context.Context, id SiteExtensionId) (result GetSiteExtensionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextensionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextensionslot.go new file mode 100644 index 000000000000..060ff58bfcce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextensionslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSiteExtensionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteExtensionInfo +} + +// GetSiteExtensionSlot ... +func (c WebAppsClient) GetSiteExtensionSlot(ctx context.Context, id SlotSiteExtensionId) (result GetSiteExtensionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflag.go new file mode 100644 index 000000000000..c6271191fbc1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflag.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSitePhpErrorLogFlagOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SitePhpErrorLogFlag +} + +// GetSitePhpErrorLogFlag ... +func (c WebAppsClient) GetSitePhpErrorLogFlag(ctx context.Context, id commonids.AppServiceId) (result GetSitePhpErrorLogFlagOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/phplogging", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflagslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflagslot.go new file mode 100644 index 000000000000..af029128ab68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflagslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSitePhpErrorLogFlagSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SitePhpErrorLogFlag +} + +// GetSitePhpErrorLogFlagSlot ... +func (c WebAppsClient) GetSitePhpErrorLogFlagSlot(ctx context.Context, id SlotId) (result GetSitePhpErrorLogFlagSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/phplogging", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getslot.go new file mode 100644 index 000000000000..cc95655b6aee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Site +} + +// GetSlot ... +func (c WebAppsClient) GetSlot(ctx context.Context, id SlotId) (result GetSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrol.go new file mode 100644 index 000000000000..5ac83bdb4884 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrol.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSourceControlOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteSourceControl +} + +// GetSourceControl ... +func (c WebAppsClient) GetSourceControl(ctx context.Context, id commonids.AppServiceId) (result GetSourceControlOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrolslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrolslot.go new file mode 100644 index 000000000000..5f7f7c48dacf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrolslot.go @@ -0,0 +1,54 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSourceControlSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteSourceControl +} + +// GetSourceControlSlot ... +func (c WebAppsClient) GetSourceControlSlot(ctx context.Context, id SlotId) (result GetSourceControlSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnection.go new file mode 100644 index 000000000000..4f8b7edbc51e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnection.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSwiftVirtualNetworkConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SwiftVirtualNetwork +} + +// GetSwiftVirtualNetworkConnection ... +func (c WebAppsClient) GetSwiftVirtualNetworkConnection(ctx context.Context, id commonids.AppServiceId) (result GetSwiftVirtualNetworkConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/networkConfig/virtualNetwork", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnectionslot.go new file mode 100644 index 000000000000..3a8d941ad761 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnectionslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSwiftVirtualNetworkConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SwiftVirtualNetwork +} + +// GetSwiftVirtualNetworkConnectionSlot ... +func (c WebAppsClient) GetSwiftVirtualNetworkConnectionSlot(ctx context.Context, id SlotId) (result GetSwiftVirtualNetworkConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/networkConfig/virtualNetwork", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjob.go new file mode 100644 index 000000000000..6fcdfb7618e1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjob.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetTriggeredWebJobOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *TriggeredWebJob +} + +// GetTriggeredWebJob ... +func (c WebAppsClient) GetTriggeredWebJob(ctx context.Context, id TriggeredWebJobId) (result GetTriggeredWebJobOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistory.go new file mode 100644 index 000000000000..177b1e4ec935 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistory.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetTriggeredWebJobHistoryOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *TriggeredJobHistory +} + +// GetTriggeredWebJobHistory ... +func (c WebAppsClient) GetTriggeredWebJobHistory(ctx context.Context, id HistoryId) (result GetTriggeredWebJobHistoryOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistoryslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistoryslot.go new file mode 100644 index 000000000000..9f88e758a886 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistoryslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetTriggeredWebJobHistorySlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *TriggeredJobHistory +} + +// GetTriggeredWebJobHistorySlot ... +func (c WebAppsClient) GetTriggeredWebJobHistorySlot(ctx context.Context, id TriggeredWebJobHistoryId) (result GetTriggeredWebJobHistorySlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobslot.go new file mode 100644 index 000000000000..a2523c9bb285 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetTriggeredWebJobSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *TriggeredWebJob +} + +// GetTriggeredWebJobSlot ... +func (c WebAppsClient) GetTriggeredWebJobSlot(ctx context.Context, id SlotTriggeredWebJobId) (result GetTriggeredWebJobSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnection.go new file mode 100644 index 000000000000..fc7f76069886 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnection.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVnetConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetInfoResource +} + +// GetVnetConnection ... +func (c WebAppsClient) GetVnetConnection(ctx context.Context, id VirtualNetworkConnectionId) (result GetVnetConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongateway.go new file mode 100644 index 000000000000..3a283b652e3e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongateway.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVnetConnectionGatewayOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetGateway +} + +// GetVnetConnectionGateway ... +func (c WebAppsClient) GetVnetConnectionGateway(ctx context.Context, id GatewayId) (result GetVnetConnectionGatewayOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongatewayslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongatewayslot.go new file mode 100644 index 000000000000..72ef01abb3cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongatewayslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVnetConnectionGatewaySlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetGateway +} + +// GetVnetConnectionGatewaySlot ... +func (c WebAppsClient) GetVnetConnectionGatewaySlot(ctx context.Context, id SlotVirtualNetworkConnectionGatewayId) (result GetVnetConnectionGatewaySlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectionslot.go new file mode 100644 index 000000000000..f464ac63ba15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectionslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVnetConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetInfoResource +} + +// GetVnetConnectionSlot ... +func (c WebAppsClient) GetVnetConnectionSlot(ctx context.Context, id SlotVirtualNetworkConnectionId) (result GetVnetConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjob.go new file mode 100644 index 000000000000..9f432287d8c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjob.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetWebJobOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WebJob +} + +// GetWebJob ... +func (c WebAppsClient) GetWebJob(ctx context.Context, id WebJobId) (result GetWebJobOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjobslot.go new file mode 100644 index 000000000000..fd0aefc9422b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjobslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetWebJobSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WebJob +} + +// GetWebJobSlot ... +func (c WebAppsClient) GetWebJobSlot(ctx context.Context, id SlotWebJobId) (result GetWebJobSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogs.go new file mode 100644 index 000000000000..94e3643b1ad8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogs.go @@ -0,0 +1,54 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetWebSiteContainerLogsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]byte +} + +// GetWebSiteContainerLogs ... +func (c WebAppsClient) GetWebSiteContainerLogs(ctx context.Context, id commonids.AppServiceId) (result GetWebSiteContainerLogsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/containerlogs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogsslot.go new file mode 100644 index 000000000000..7af454ecb145 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogsslot.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetWebSiteContainerLogsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]byte +} + +// GetWebSiteContainerLogsSlot ... +func (c WebAppsClient) GetWebSiteContainerLogsSlot(ctx context.Context, id SlotId) (result GetWebSiteContainerLogsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/containerlogs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getworkflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getworkflow.go new file mode 100644 index 000000000000..2e3c62728696 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getworkflow.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetWorkflowOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WorkflowEnvelope +} + +// GetWorkflow ... +func (c WebAppsClient) GetWorkflow(ctx context.Context, id WorkflowId) (result GetWorkflowOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextension.go new file mode 100644 index 000000000000..1d6419401a9e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextension.go @@ -0,0 +1,70 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InstallSiteExtensionOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// InstallSiteExtension ... +func (c WebAppsClient) InstallSiteExtension(ctx context.Context, id SiteExtensionId) (result InstallSiteExtensionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// InstallSiteExtensionThenPoll performs InstallSiteExtension then polls until it's completed +func (c WebAppsClient) InstallSiteExtensionThenPoll(ctx context.Context, id SiteExtensionId) error { + result, err := c.InstallSiteExtension(ctx, id) + if err != nil { + return fmt.Errorf("performing InstallSiteExtension: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after InstallSiteExtension: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextensionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextensionslot.go new file mode 100644 index 000000000000..0228dab78a9d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextensionslot.go @@ -0,0 +1,70 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InstallSiteExtensionSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// InstallSiteExtensionSlot ... +func (c WebAppsClient) InstallSiteExtensionSlot(ctx context.Context, id SlotSiteExtensionId) (result InstallSiteExtensionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// InstallSiteExtensionSlotThenPoll performs InstallSiteExtensionSlot then polls until it's completed +func (c WebAppsClient) InstallSiteExtensionSlotThenPoll(ctx context.Context, id SlotSiteExtensionId) error { + result, err := c.InstallSiteExtensionSlot(ctx, id) + if err != nil { + return fmt.Errorf("performing InstallSiteExtensionSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after InstallSiteExtensionSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneable.go new file mode 100644 index 000000000000..1374f90285c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneable.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IsCloneableOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteCloneability +} + +// IsCloneable ... +func (c WebAppsClient) IsCloneable(ctx context.Context, id commonids.AppServiceId) (result IsCloneableOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/iscloneable", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneableslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneableslot.go new file mode 100644 index 000000000000..78e92a0ac144 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneableslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IsCloneableSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteCloneability +} + +// IsCloneableSlot ... +func (c WebAppsClient) IsCloneableSlot(ctx context.Context, id SlotId) (result IsCloneableSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/iscloneable", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_list.go new file mode 100644 index 000000000000..9ac184df7700 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_list.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Site +} + +type ListCompleteResult struct { + Items []Site +} + +// List ... +func (c WebAppsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/sites", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Site `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c WebAppsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, SiteOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate SiteOperationPredicate) (result ListCompleteResult, err error) { + items := make([]Site, 0) + + resp, err := c.List(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettings.go new file mode 100644 index 000000000000..b4e76bbdbcfa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettings.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListApplicationSettingsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StringDictionary +} + +// ListApplicationSettings ... +func (c WebAppsClient) ListApplicationSettings(ctx context.Context, id commonids.AppServiceId) (result ListApplicationSettingsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/appSettings/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettingsslot.go new file mode 100644 index 000000000000..338e9ccc0d93 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettingsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListApplicationSettingsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StringDictionary +} + +// ListApplicationSettingsSlot ... +func (c WebAppsClient) ListApplicationSettingsSlot(ctx context.Context, id SlotId) (result ListApplicationSettingsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/appSettings/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccounts.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccounts.go new file mode 100644 index 000000000000..4bd33c8ce530 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccounts.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAzureStorageAccountsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AzureStoragePropertyDictionaryResource +} + +// ListAzureStorageAccounts ... +func (c WebAppsClient) ListAzureStorageAccounts(ctx context.Context, id commonids.AppServiceId) (result ListAzureStorageAccountsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/azurestorageaccounts/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccountsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccountsslot.go new file mode 100644 index 000000000000..4ecf7961083b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccountsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAzureStorageAccountsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AzureStoragePropertyDictionaryResource +} + +// ListAzureStorageAccountsSlot ... +func (c WebAppsClient) ListAzureStorageAccountsSlot(ctx context.Context, id SlotId) (result ListAzureStorageAccountsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/azurestorageaccounts/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackups.go new file mode 100644 index 000000000000..436b4a69e9f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackups.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBackupsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BackupItem +} + +type ListBackupsCompleteResult struct { + Items []BackupItem +} + +// ListBackups ... +func (c WebAppsClient) ListBackups(ctx context.Context, id commonids.AppServiceId) (result ListBackupsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/backups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]BackupItem `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBackupsComplete retrieves all the results into a single object +func (c WebAppsClient) ListBackupsComplete(ctx context.Context, id commonids.AppServiceId) (ListBackupsCompleteResult, error) { + return c.ListBackupsCompleteMatchingPredicate(ctx, id, BackupItemOperationPredicate{}) +} + +// ListBackupsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListBackupsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate BackupItemOperationPredicate) (result ListBackupsCompleteResult, err error) { + items := make([]BackupItem, 0) + + resp, err := c.ListBackups(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBackupsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupsslot.go new file mode 100644 index 000000000000..36a5c67b8adc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBackupsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BackupItem +} + +type ListBackupsSlotCompleteResult struct { + Items []BackupItem +} + +// ListBackupsSlot ... +func (c WebAppsClient) ListBackupsSlot(ctx context.Context, id SlotId) (result ListBackupsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/backups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]BackupItem `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBackupsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListBackupsSlotComplete(ctx context.Context, id SlotId) (ListBackupsSlotCompleteResult, error) { + return c.ListBackupsSlotCompleteMatchingPredicate(ctx, id, BackupItemOperationPredicate{}) +} + +// ListBackupsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListBackupsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate BackupItemOperationPredicate) (result ListBackupsSlotCompleteResult, err error) { + items := make([]BackupItem, 0) + + resp, err := c.ListBackupsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBackupsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecrets.go new file mode 100644 index 000000000000..bbf777a24a7b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecrets.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBackupStatusSecretsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupItem +} + +// ListBackupStatusSecrets ... +func (c WebAppsClient) ListBackupStatusSecrets(ctx context.Context, id BackupId, input BackupRequest) (result ListBackupStatusSecretsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecretsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecretsslot.go new file mode 100644 index 000000000000..de568d0d4ffc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecretsslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBackupStatusSecretsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupItem +} + +// ListBackupStatusSecretsSlot ... +func (c WebAppsClient) ListBackupStatusSecretsSlot(ctx context.Context, id SlotBackupId, input BackupRequest) (result ListBackupStatusSecretsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspolicies.go new file mode 100644 index 000000000000..b8d7a169161e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspolicies.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBasicPublishingCredentialsPoliciesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CsmPublishingCredentialsPoliciesEntity +} + +type ListBasicPublishingCredentialsPoliciesCompleteResult struct { + Items []CsmPublishingCredentialsPoliciesEntity +} + +// ListBasicPublishingCredentialsPolicies ... +func (c WebAppsClient) ListBasicPublishingCredentialsPolicies(ctx context.Context, id commonids.AppServiceId) (result ListBasicPublishingCredentialsPoliciesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CsmPublishingCredentialsPoliciesEntity `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBasicPublishingCredentialsPoliciesComplete retrieves all the results into a single object +func (c WebAppsClient) ListBasicPublishingCredentialsPoliciesComplete(ctx context.Context, id commonids.AppServiceId) (ListBasicPublishingCredentialsPoliciesCompleteResult, error) { + return c.ListBasicPublishingCredentialsPoliciesCompleteMatchingPredicate(ctx, id, CsmPublishingCredentialsPoliciesEntityOperationPredicate{}) +} + +// ListBasicPublishingCredentialsPoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListBasicPublishingCredentialsPoliciesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate CsmPublishingCredentialsPoliciesEntityOperationPredicate) (result ListBasicPublishingCredentialsPoliciesCompleteResult, err error) { + items := make([]CsmPublishingCredentialsPoliciesEntity, 0) + + resp, err := c.ListBasicPublishingCredentialsPolicies(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBasicPublishingCredentialsPoliciesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go new file mode 100644 index 000000000000..833026d1e986 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBasicPublishingCredentialsPoliciesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CsmPublishingCredentialsPoliciesEntity +} + +type ListBasicPublishingCredentialsPoliciesSlotCompleteResult struct { + Items []CsmPublishingCredentialsPoliciesEntity +} + +// ListBasicPublishingCredentialsPoliciesSlot ... +func (c WebAppsClient) ListBasicPublishingCredentialsPoliciesSlot(ctx context.Context, id SlotId) (result ListBasicPublishingCredentialsPoliciesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CsmPublishingCredentialsPoliciesEntity `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBasicPublishingCredentialsPoliciesSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListBasicPublishingCredentialsPoliciesSlotComplete(ctx context.Context, id SlotId) (ListBasicPublishingCredentialsPoliciesSlotCompleteResult, error) { + return c.ListBasicPublishingCredentialsPoliciesSlotCompleteMatchingPredicate(ctx, id, CsmPublishingCredentialsPoliciesEntityOperationPredicate{}) +} + +// ListBasicPublishingCredentialsPoliciesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListBasicPublishingCredentialsPoliciesSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate CsmPublishingCredentialsPoliciesEntityOperationPredicate) (result ListBasicPublishingCredentialsPoliciesSlotCompleteResult, err error) { + items := make([]CsmPublishingCredentialsPoliciesEntity, 0) + + resp, err := c.ListBasicPublishingCredentialsPoliciesSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBasicPublishingCredentialsPoliciesSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbyresourcegroup.go new file mode 100644 index 000000000000..ac4371c47ed6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbyresourcegroup.go @@ -0,0 +1,118 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Site +} + +type ListByResourceGroupCompleteResult struct { + Items []Site +} + +type ListByResourceGroupOperationOptions struct { + IncludeSlots *bool +} + +func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions { + return ListByResourceGroupOperationOptions{} +} + +func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.IncludeSlots != nil { + out.Append("includeSlots", fmt.Sprintf("%v", *o.IncludeSlots)) + } + return &out +} + +// ListByResourceGroup ... +func (c WebAppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/sites", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Site `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c WebAppsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, options, SiteOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions, predicate SiteOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]Site, 0) + + resp, err := c.ListByResourceGroup(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurations.go new file mode 100644 index 000000000000..904fc5956213 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurations.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListConfigurationsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SiteConfigResource +} + +type ListConfigurationsCompleteResult struct { + Items []SiteConfigResource +} + +// ListConfigurations ... +func (c WebAppsClient) ListConfigurations(ctx context.Context, id commonids.AppServiceId) (result ListConfigurationsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SiteConfigResource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListConfigurationsComplete retrieves all the results into a single object +func (c WebAppsClient) ListConfigurationsComplete(ctx context.Context, id commonids.AppServiceId) (ListConfigurationsCompleteResult, error) { + return c.ListConfigurationsCompleteMatchingPredicate(ctx, id, SiteConfigResourceOperationPredicate{}) +} + +// ListConfigurationsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListConfigurationsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate SiteConfigResourceOperationPredicate) (result ListConfigurationsCompleteResult, err error) { + items := make([]SiteConfigResource, 0) + + resp, err := c.ListConfigurations(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListConfigurationsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfo.go new file mode 100644 index 000000000000..6990a4e0c5c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfo.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListConfigurationSnapshotInfoOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SiteConfigurationSnapshotInfo +} + +type ListConfigurationSnapshotInfoCompleteResult struct { + Items []SiteConfigurationSnapshotInfo +} + +// ListConfigurationSnapshotInfo ... +func (c WebAppsClient) ListConfigurationSnapshotInfo(ctx context.Context, id commonids.AppServiceId) (result ListConfigurationSnapshotInfoOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/web/snapshots", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SiteConfigurationSnapshotInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListConfigurationSnapshotInfoComplete retrieves all the results into a single object +func (c WebAppsClient) ListConfigurationSnapshotInfoComplete(ctx context.Context, id commonids.AppServiceId) (ListConfigurationSnapshotInfoCompleteResult, error) { + return c.ListConfigurationSnapshotInfoCompleteMatchingPredicate(ctx, id, SiteConfigurationSnapshotInfoOperationPredicate{}) +} + +// ListConfigurationSnapshotInfoCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListConfigurationSnapshotInfoCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate SiteConfigurationSnapshotInfoOperationPredicate) (result ListConfigurationSnapshotInfoCompleteResult, err error) { + items := make([]SiteConfigurationSnapshotInfo, 0) + + resp, err := c.ListConfigurationSnapshotInfo(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListConfigurationSnapshotInfoCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfoslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfoslot.go new file mode 100644 index 000000000000..f948da0d876b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfoslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListConfigurationSnapshotInfoSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SiteConfigurationSnapshotInfo +} + +type ListConfigurationSnapshotInfoSlotCompleteResult struct { + Items []SiteConfigurationSnapshotInfo +} + +// ListConfigurationSnapshotInfoSlot ... +func (c WebAppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, id SlotId) (result ListConfigurationSnapshotInfoSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/web/snapshots", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SiteConfigurationSnapshotInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListConfigurationSnapshotInfoSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListConfigurationSnapshotInfoSlotComplete(ctx context.Context, id SlotId) (ListConfigurationSnapshotInfoSlotCompleteResult, error) { + return c.ListConfigurationSnapshotInfoSlotCompleteMatchingPredicate(ctx, id, SiteConfigurationSnapshotInfoOperationPredicate{}) +} + +// ListConfigurationSnapshotInfoSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListConfigurationSnapshotInfoSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate SiteConfigurationSnapshotInfoOperationPredicate) (result ListConfigurationSnapshotInfoSlotCompleteResult, err error) { + items := make([]SiteConfigurationSnapshotInfo, 0) + + resp, err := c.ListConfigurationSnapshotInfoSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListConfigurationSnapshotInfoSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsslot.go new file mode 100644 index 000000000000..6faf4ff6f2e3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListConfigurationsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SiteConfigResource +} + +type ListConfigurationsSlotCompleteResult struct { + Items []SiteConfigResource +} + +// ListConfigurationsSlot ... +func (c WebAppsClient) ListConfigurationsSlot(ctx context.Context, id SlotId) (result ListConfigurationsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SiteConfigResource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListConfigurationsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListConfigurationsSlotComplete(ctx context.Context, id SlotId) (ListConfigurationsSlotCompleteResult, error) { + return c.ListConfigurationsSlotCompleteMatchingPredicate(ctx, id, SiteConfigResourceOperationPredicate{}) +} + +// ListConfigurationsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListConfigurationsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate SiteConfigResourceOperationPredicate) (result ListConfigurationsSlotCompleteResult, err error) { + items := make([]SiteConfigResource, 0) + + resp, err := c.ListConfigurationsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListConfigurationsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstrings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstrings.go new file mode 100644 index 000000000000..5906ad54b6bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstrings.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListConnectionStringsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionStringDictionary +} + +// ListConnectionStrings ... +func (c WebAppsClient) ListConnectionStrings(ctx context.Context, id commonids.AppServiceId) (result ListConnectionStringsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/connectionStrings/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstringsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstringsslot.go new file mode 100644 index 000000000000..08f99a158ea2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstringsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListConnectionStringsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionStringDictionary +} + +// ListConnectionStringsSlot ... +func (c WebAppsClient) ListConnectionStringsSlot(ctx context.Context, id SlotId) (result ListConnectionStringsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/connectionStrings/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobs.go new file mode 100644 index 000000000000..2fa9b62fafd7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobs.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListContinuousWebJobsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ContinuousWebJob +} + +type ListContinuousWebJobsCompleteResult struct { + Items []ContinuousWebJob +} + +// ListContinuousWebJobs ... +func (c WebAppsClient) ListContinuousWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListContinuousWebJobsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/continuousWebJobs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ContinuousWebJob `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListContinuousWebJobsComplete retrieves all the results into a single object +func (c WebAppsClient) ListContinuousWebJobsComplete(ctx context.Context, id commonids.AppServiceId) (ListContinuousWebJobsCompleteResult, error) { + return c.ListContinuousWebJobsCompleteMatchingPredicate(ctx, id, ContinuousWebJobOperationPredicate{}) +} + +// ListContinuousWebJobsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListContinuousWebJobsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate ContinuousWebJobOperationPredicate) (result ListContinuousWebJobsCompleteResult, err error) { + items := make([]ContinuousWebJob, 0) + + resp, err := c.ListContinuousWebJobs(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListContinuousWebJobsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobsslot.go new file mode 100644 index 000000000000..263e29ec8098 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListContinuousWebJobsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ContinuousWebJob +} + +type ListContinuousWebJobsSlotCompleteResult struct { + Items []ContinuousWebJob +} + +// ListContinuousWebJobsSlot ... +func (c WebAppsClient) ListContinuousWebJobsSlot(ctx context.Context, id SlotId) (result ListContinuousWebJobsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/continuousWebJobs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ContinuousWebJob `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListContinuousWebJobsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListContinuousWebJobsSlotComplete(ctx context.Context, id SlotId) (ListContinuousWebJobsSlotCompleteResult, error) { + return c.ListContinuousWebJobsSlotCompleteMatchingPredicate(ctx, id, ContinuousWebJobOperationPredicate{}) +} + +// ListContinuousWebJobsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListContinuousWebJobsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate ContinuousWebJobOperationPredicate) (result ListContinuousWebJobsSlotCompleteResult, err error) { + items := make([]ContinuousWebJob, 0) + + resp, err := c.ListContinuousWebJobsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListContinuousWebJobsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlog.go new file mode 100644 index 000000000000..e877017a6c7d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlog.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListDeploymentLogOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Deployment +} + +// ListDeploymentLog ... +func (c WebAppsClient) ListDeploymentLog(ctx context.Context, id DeploymentId) (result ListDeploymentLogOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/log", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlogslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlogslot.go new file mode 100644 index 000000000000..2287707ac1a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlogslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListDeploymentLogSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Deployment +} + +// ListDeploymentLogSlot ... +func (c WebAppsClient) ListDeploymentLogSlot(ctx context.Context, id SlotDeploymentId) (result ListDeploymentLogSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/log", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeployments.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeployments.go new file mode 100644 index 000000000000..e7f0d5aa41f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeployments.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListDeploymentsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Deployment +} + +type ListDeploymentsCompleteResult struct { + Items []Deployment +} + +// ListDeployments ... +func (c WebAppsClient) ListDeployments(ctx context.Context, id commonids.AppServiceId) (result ListDeploymentsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/deployments", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Deployment `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListDeploymentsComplete retrieves all the results into a single object +func (c WebAppsClient) ListDeploymentsComplete(ctx context.Context, id commonids.AppServiceId) (ListDeploymentsCompleteResult, error) { + return c.ListDeploymentsCompleteMatchingPredicate(ctx, id, DeploymentOperationPredicate{}) +} + +// ListDeploymentsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListDeploymentsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate DeploymentOperationPredicate) (result ListDeploymentsCompleteResult, err error) { + items := make([]Deployment, 0) + + resp, err := c.ListDeployments(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListDeploymentsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentsslot.go new file mode 100644 index 000000000000..8cf28787ff50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListDeploymentsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Deployment +} + +type ListDeploymentsSlotCompleteResult struct { + Items []Deployment +} + +// ListDeploymentsSlot ... +func (c WebAppsClient) ListDeploymentsSlot(ctx context.Context, id SlotId) (result ListDeploymentsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/deployments", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Deployment `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListDeploymentsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListDeploymentsSlotComplete(ctx context.Context, id SlotId) (ListDeploymentsSlotCompleteResult, error) { + return c.ListDeploymentsSlotCompleteMatchingPredicate(ctx, id, DeploymentOperationPredicate{}) +} + +// ListDeploymentsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListDeploymentsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate DeploymentOperationPredicate) (result ListDeploymentsSlotCompleteResult, err error) { + items := make([]Deployment, 0) + + resp, err := c.ListDeploymentsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListDeploymentsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiers.go new file mode 100644 index 000000000000..6ad4d006fd6d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiers.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListDomainOwnershipIdentifiersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Identifier +} + +type ListDomainOwnershipIdentifiersCompleteResult struct { + Items []Identifier +} + +// ListDomainOwnershipIdentifiers ... +func (c WebAppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, id commonids.AppServiceId) (result ListDomainOwnershipIdentifiersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/domainOwnershipIdentifiers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Identifier `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListDomainOwnershipIdentifiersComplete retrieves all the results into a single object +func (c WebAppsClient) ListDomainOwnershipIdentifiersComplete(ctx context.Context, id commonids.AppServiceId) (ListDomainOwnershipIdentifiersCompleteResult, error) { + return c.ListDomainOwnershipIdentifiersCompleteMatchingPredicate(ctx, id, IdentifierOperationPredicate{}) +} + +// ListDomainOwnershipIdentifiersCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListDomainOwnershipIdentifiersCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate IdentifierOperationPredicate) (result ListDomainOwnershipIdentifiersCompleteResult, err error) { + items := make([]Identifier, 0) + + resp, err := c.ListDomainOwnershipIdentifiers(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListDomainOwnershipIdentifiersCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiersslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiersslot.go new file mode 100644 index 000000000000..3491074fc111 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiersslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListDomainOwnershipIdentifiersSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Identifier +} + +type ListDomainOwnershipIdentifiersSlotCompleteResult struct { + Items []Identifier +} + +// ListDomainOwnershipIdentifiersSlot ... +func (c WebAppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, id SlotId) (result ListDomainOwnershipIdentifiersSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/domainOwnershipIdentifiers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Identifier `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListDomainOwnershipIdentifiersSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListDomainOwnershipIdentifiersSlotComplete(ctx context.Context, id SlotId) (ListDomainOwnershipIdentifiersSlotCompleteResult, error) { + return c.ListDomainOwnershipIdentifiersSlotCompleteMatchingPredicate(ctx, id, IdentifierOperationPredicate{}) +} + +// ListDomainOwnershipIdentifiersSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListDomainOwnershipIdentifiersSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate IdentifierOperationPredicate) (result ListDomainOwnershipIdentifiersSlotCompleteResult, err error) { + items := make([]Identifier, 0) + + resp, err := c.ListDomainOwnershipIdentifiersSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListDomainOwnershipIdentifiersSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeys.go new file mode 100644 index 000000000000..395e6b0a2074 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeys.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListFunctionKeysOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StringDictionary +} + +// ListFunctionKeys ... +func (c WebAppsClient) ListFunctionKeys(ctx context.Context, id FunctionId) (result ListFunctionKeysOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listKeys", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeysslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeysslot.go new file mode 100644 index 000000000000..2d689c0501fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeysslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListFunctionKeysSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StringDictionary +} + +// ListFunctionKeysSlot ... +func (c WebAppsClient) ListFunctionKeysSlot(ctx context.Context, id SlotFunctionId) (result ListFunctionKeysSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listKeys", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctions.go new file mode 100644 index 000000000000..d9b7567f3932 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctions.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListFunctionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]FunctionEnvelope +} + +type ListFunctionsCompleteResult struct { + Items []FunctionEnvelope +} + +// ListFunctions ... +func (c WebAppsClient) ListFunctions(ctx context.Context, id commonids.AppServiceId) (result ListFunctionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/functions", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]FunctionEnvelope `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListFunctionsComplete retrieves all the results into a single object +func (c WebAppsClient) ListFunctionsComplete(ctx context.Context, id commonids.AppServiceId) (ListFunctionsCompleteResult, error) { + return c.ListFunctionsCompleteMatchingPredicate(ctx, id, FunctionEnvelopeOperationPredicate{}) +} + +// ListFunctionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListFunctionsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate FunctionEnvelopeOperationPredicate) (result ListFunctionsCompleteResult, err error) { + items := make([]FunctionEnvelope, 0) + + resp, err := c.ListFunctions(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListFunctionsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecrets.go new file mode 100644 index 000000000000..74d7d1eebaa4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecrets.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListFunctionSecretsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FunctionSecrets +} + +// ListFunctionSecrets ... +func (c WebAppsClient) ListFunctionSecrets(ctx context.Context, id FunctionId) (result ListFunctionSecretsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listsecrets", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecretsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecretsslot.go new file mode 100644 index 000000000000..799bd85aaf7b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecretsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListFunctionSecretsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FunctionSecrets +} + +// ListFunctionSecretsSlot ... +func (c WebAppsClient) ListFunctionSecretsSlot(ctx context.Context, id SlotFunctionId) (result ListFunctionSecretsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listsecrets", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeys.go new file mode 100644 index 000000000000..8a90d8f60ffa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeys.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListHostKeysOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HostKeys +} + +// ListHostKeys ... +func (c WebAppsClient) ListHostKeys(ctx context.Context, id commonids.AppServiceId) (result ListHostKeysOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/host/default/listKeys", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeysslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeysslot.go new file mode 100644 index 000000000000..31689093e0a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeysslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListHostKeysSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HostKeys +} + +// ListHostKeysSlot ... +func (c WebAppsClient) ListHostKeysSlot(ctx context.Context, id SlotId) (result ListHostKeysSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/host/default/listKeys", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindings.go new file mode 100644 index 000000000000..b95ad58eb60f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindings.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListHostNameBindingsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]HostNameBinding +} + +type ListHostNameBindingsCompleteResult struct { + Items []HostNameBinding +} + +// ListHostNameBindings ... +func (c WebAppsClient) ListHostNameBindings(ctx context.Context, id commonids.AppServiceId) (result ListHostNameBindingsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/hostNameBindings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]HostNameBinding `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListHostNameBindingsComplete retrieves all the results into a single object +func (c WebAppsClient) ListHostNameBindingsComplete(ctx context.Context, id commonids.AppServiceId) (ListHostNameBindingsCompleteResult, error) { + return c.ListHostNameBindingsCompleteMatchingPredicate(ctx, id, HostNameBindingOperationPredicate{}) +} + +// ListHostNameBindingsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListHostNameBindingsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate HostNameBindingOperationPredicate) (result ListHostNameBindingsCompleteResult, err error) { + items := make([]HostNameBinding, 0) + + resp, err := c.ListHostNameBindings(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListHostNameBindingsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindingsslot.go new file mode 100644 index 000000000000..cc97481351ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindingsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListHostNameBindingsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]HostNameBinding +} + +type ListHostNameBindingsSlotCompleteResult struct { + Items []HostNameBinding +} + +// ListHostNameBindingsSlot ... +func (c WebAppsClient) ListHostNameBindingsSlot(ctx context.Context, id SlotId) (result ListHostNameBindingsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/hostNameBindings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]HostNameBinding `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListHostNameBindingsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListHostNameBindingsSlotComplete(ctx context.Context, id SlotId) (ListHostNameBindingsSlotCompleteResult, error) { + return c.ListHostNameBindingsSlotCompleteMatchingPredicate(ctx, id, HostNameBindingOperationPredicate{}) +} + +// ListHostNameBindingsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListHostNameBindingsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate HostNameBindingOperationPredicate) (result ListHostNameBindingsSlotCompleteResult, err error) { + items := make([]HostNameBinding, 0) + + resp, err := c.ListHostNameBindingsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListHostNameBindingsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnections.go new file mode 100644 index 000000000000..70e3b037ca43 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnections.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListHybridConnectionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridConnection +} + +// ListHybridConnections ... +func (c WebAppsClient) ListHybridConnections(ctx context.Context, id commonids.AppServiceId) (result ListHybridConnectionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/hybridConnectionRelays", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnectionsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnectionsslot.go new file mode 100644 index 000000000000..5a0f662812ed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnectionsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListHybridConnectionsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridConnection +} + +// ListHybridConnectionsSlot ... +func (c WebAppsClient) ListHybridConnectionsSlot(ctx context.Context, id SlotId) (result ListHybridConnectionsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/hybridConnectionRelays", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstancefunctionsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstancefunctionsslot.go new file mode 100644 index 000000000000..4118f6db05de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstancefunctionsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListInstanceFunctionsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]FunctionEnvelope +} + +type ListInstanceFunctionsSlotCompleteResult struct { + Items []FunctionEnvelope +} + +// ListInstanceFunctionsSlot ... +func (c WebAppsClient) ListInstanceFunctionsSlot(ctx context.Context, id SlotId) (result ListInstanceFunctionsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/functions", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]FunctionEnvelope `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListInstanceFunctionsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListInstanceFunctionsSlotComplete(ctx context.Context, id SlotId) (ListInstanceFunctionsSlotCompleteResult, error) { + return c.ListInstanceFunctionsSlotCompleteMatchingPredicate(ctx, id, FunctionEnvelopeOperationPredicate{}) +} + +// ListInstanceFunctionsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListInstanceFunctionsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate FunctionEnvelopeOperationPredicate) (result ListInstanceFunctionsSlotCompleteResult, err error) { + items := make([]FunctionEnvelope, 0) + + resp, err := c.ListInstanceFunctionsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListInstanceFunctionsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiers.go new file mode 100644 index 000000000000..7d9ca9497d77 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiers.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListInstanceIdentifiersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WebSiteInstanceStatus +} + +type ListInstanceIdentifiersCompleteResult struct { + Items []WebSiteInstanceStatus +} + +// ListInstanceIdentifiers ... +func (c WebAppsClient) ListInstanceIdentifiers(ctx context.Context, id commonids.AppServiceId) (result ListInstanceIdentifiersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/instances", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]WebSiteInstanceStatus `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListInstanceIdentifiersComplete retrieves all the results into a single object +func (c WebAppsClient) ListInstanceIdentifiersComplete(ctx context.Context, id commonids.AppServiceId) (ListInstanceIdentifiersCompleteResult, error) { + return c.ListInstanceIdentifiersCompleteMatchingPredicate(ctx, id, WebSiteInstanceStatusOperationPredicate{}) +} + +// ListInstanceIdentifiersCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListInstanceIdentifiersCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate WebSiteInstanceStatusOperationPredicate) (result ListInstanceIdentifiersCompleteResult, err error) { + items := make([]WebSiteInstanceStatus, 0) + + resp, err := c.ListInstanceIdentifiers(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListInstanceIdentifiersCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiersslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiersslot.go new file mode 100644 index 000000000000..b3fd3111feba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiersslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListInstanceIdentifiersSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WebSiteInstanceStatus +} + +type ListInstanceIdentifiersSlotCompleteResult struct { + Items []WebSiteInstanceStatus +} + +// ListInstanceIdentifiersSlot ... +func (c WebAppsClient) ListInstanceIdentifiersSlot(ctx context.Context, id SlotId) (result ListInstanceIdentifiersSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/instances", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]WebSiteInstanceStatus `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListInstanceIdentifiersSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListInstanceIdentifiersSlotComplete(ctx context.Context, id SlotId) (ListInstanceIdentifiersSlotCompleteResult, error) { + return c.ListInstanceIdentifiersSlotCompleteMatchingPredicate(ctx, id, WebSiteInstanceStatusOperationPredicate{}) +} + +// ListInstanceIdentifiersSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListInstanceIdentifiersSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate WebSiteInstanceStatusOperationPredicate) (result ListInstanceIdentifiersSlotCompleteResult, err error) { + items := make([]WebSiteInstanceStatus, 0) + + resp, err := c.ListInstanceIdentifiersSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListInstanceIdentifiersSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocesses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocesses.go new file mode 100644 index 000000000000..7c5ece0b6ac2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocesses.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListInstanceProcessesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessInfo +} + +type ListInstanceProcessesCompleteResult struct { + Items []ProcessInfo +} + +// ListInstanceProcesses ... +func (c WebAppsClient) ListInstanceProcesses(ctx context.Context, id InstanceId) (result ListInstanceProcessesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/processes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListInstanceProcessesComplete retrieves all the results into a single object +func (c WebAppsClient) ListInstanceProcessesComplete(ctx context.Context, id InstanceId) (ListInstanceProcessesCompleteResult, error) { + return c.ListInstanceProcessesCompleteMatchingPredicate(ctx, id, ProcessInfoOperationPredicate{}) +} + +// ListInstanceProcessesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListInstanceProcessesCompleteMatchingPredicate(ctx context.Context, id InstanceId, predicate ProcessInfoOperationPredicate) (result ListInstanceProcessesCompleteResult, err error) { + items := make([]ProcessInfo, 0) + + resp, err := c.ListInstanceProcesses(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListInstanceProcessesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessesslot.go new file mode 100644 index 000000000000..1ce81cb87d9d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessesslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListInstanceProcessesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessInfo +} + +type ListInstanceProcessesSlotCompleteResult struct { + Items []ProcessInfo +} + +// ListInstanceProcessesSlot ... +func (c WebAppsClient) ListInstanceProcessesSlot(ctx context.Context, id SlotInstanceId) (result ListInstanceProcessesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/processes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListInstanceProcessesSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListInstanceProcessesSlotComplete(ctx context.Context, id SlotInstanceId) (ListInstanceProcessesSlotCompleteResult, error) { + return c.ListInstanceProcessesSlotCompleteMatchingPredicate(ctx, id, ProcessInfoOperationPredicate{}) +} + +// ListInstanceProcessesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListInstanceProcessesSlotCompleteMatchingPredicate(ctx context.Context, id SlotInstanceId, predicate ProcessInfoOperationPredicate) (result ListInstanceProcessesSlotCompleteResult, err error) { + items := make([]ProcessInfo, 0) + + resp, err := c.ListInstanceProcessesSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListInstanceProcessesSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodules.go new file mode 100644 index 000000000000..5b50ea9d272a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodules.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListInstanceProcessModulesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessModuleInfo +} + +type ListInstanceProcessModulesCompleteResult struct { + Items []ProcessModuleInfo +} + +// ListInstanceProcessModules ... +func (c WebAppsClient) ListInstanceProcessModules(ctx context.Context, id InstanceProcessId) (result ListInstanceProcessModulesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/modules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessModuleInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListInstanceProcessModulesComplete retrieves all the results into a single object +func (c WebAppsClient) ListInstanceProcessModulesComplete(ctx context.Context, id InstanceProcessId) (ListInstanceProcessModulesCompleteResult, error) { + return c.ListInstanceProcessModulesCompleteMatchingPredicate(ctx, id, ProcessModuleInfoOperationPredicate{}) +} + +// ListInstanceProcessModulesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListInstanceProcessModulesCompleteMatchingPredicate(ctx context.Context, id InstanceProcessId, predicate ProcessModuleInfoOperationPredicate) (result ListInstanceProcessModulesCompleteResult, err error) { + items := make([]ProcessModuleInfo, 0) + + resp, err := c.ListInstanceProcessModules(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListInstanceProcessModulesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodulesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodulesslot.go new file mode 100644 index 000000000000..bfd5654bd093 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodulesslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListInstanceProcessModulesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessModuleInfo +} + +type ListInstanceProcessModulesSlotCompleteResult struct { + Items []ProcessModuleInfo +} + +// ListInstanceProcessModulesSlot ... +func (c WebAppsClient) ListInstanceProcessModulesSlot(ctx context.Context, id SlotInstanceProcessId) (result ListInstanceProcessModulesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/modules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessModuleInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListInstanceProcessModulesSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListInstanceProcessModulesSlotComplete(ctx context.Context, id SlotInstanceProcessId) (ListInstanceProcessModulesSlotCompleteResult, error) { + return c.ListInstanceProcessModulesSlotCompleteMatchingPredicate(ctx, id, ProcessModuleInfoOperationPredicate{}) +} + +// ListInstanceProcessModulesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListInstanceProcessModulesSlotCompleteMatchingPredicate(ctx context.Context, id SlotInstanceProcessId, predicate ProcessModuleInfoOperationPredicate) (result ListInstanceProcessModulesSlotCompleteResult, err error) { + items := make([]ProcessModuleInfo, 0) + + resp, err := c.ListInstanceProcessModulesSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListInstanceProcessModulesSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreads.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreads.go new file mode 100644 index 000000000000..a8f44c4071d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreads.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListInstanceProcessThreadsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessThreadInfo +} + +type ListInstanceProcessThreadsCompleteResult struct { + Items []ProcessThreadInfo +} + +// ListInstanceProcessThreads ... +func (c WebAppsClient) ListInstanceProcessThreads(ctx context.Context, id InstanceProcessId) (result ListInstanceProcessThreadsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/threads", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessThreadInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListInstanceProcessThreadsComplete retrieves all the results into a single object +func (c WebAppsClient) ListInstanceProcessThreadsComplete(ctx context.Context, id InstanceProcessId) (ListInstanceProcessThreadsCompleteResult, error) { + return c.ListInstanceProcessThreadsCompleteMatchingPredicate(ctx, id, ProcessThreadInfoOperationPredicate{}) +} + +// ListInstanceProcessThreadsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListInstanceProcessThreadsCompleteMatchingPredicate(ctx context.Context, id InstanceProcessId, predicate ProcessThreadInfoOperationPredicate) (result ListInstanceProcessThreadsCompleteResult, err error) { + items := make([]ProcessThreadInfo, 0) + + resp, err := c.ListInstanceProcessThreads(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListInstanceProcessThreadsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreadsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreadsslot.go new file mode 100644 index 000000000000..aa8206c7377a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreadsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListInstanceProcessThreadsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessThreadInfo +} + +type ListInstanceProcessThreadsSlotCompleteResult struct { + Items []ProcessThreadInfo +} + +// ListInstanceProcessThreadsSlot ... +func (c WebAppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, id SlotInstanceProcessId) (result ListInstanceProcessThreadsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/threads", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessThreadInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListInstanceProcessThreadsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListInstanceProcessThreadsSlotComplete(ctx context.Context, id SlotInstanceProcessId) (ListInstanceProcessThreadsSlotCompleteResult, error) { + return c.ListInstanceProcessThreadsSlotCompleteMatchingPredicate(ctx, id, ProcessThreadInfoOperationPredicate{}) +} + +// ListInstanceProcessThreadsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListInstanceProcessThreadsSlotCompleteMatchingPredicate(ctx context.Context, id SlotInstanceProcessId, predicate ProcessThreadInfoOperationPredicate) (result ListInstanceProcessThreadsSlotCompleteResult, err error) { + items := make([]ProcessThreadInfo, 0) + + resp, err := c.ListInstanceProcessThreadsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListInstanceProcessThreadsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceworkflowsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceworkflowsslot.go new file mode 100644 index 000000000000..094c7dee519a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceworkflowsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListInstanceWorkflowsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WorkflowEnvelope +} + +type ListInstanceWorkflowsSlotCompleteResult struct { + Items []WorkflowEnvelope +} + +// ListInstanceWorkflowsSlot ... +func (c WebAppsClient) ListInstanceWorkflowsSlot(ctx context.Context, id SlotId) (result ListInstanceWorkflowsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/workflows", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]WorkflowEnvelope `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListInstanceWorkflowsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListInstanceWorkflowsSlotComplete(ctx context.Context, id SlotId) (ListInstanceWorkflowsSlotCompleteResult, error) { + return c.ListInstanceWorkflowsSlotCompleteMatchingPredicate(ctx, id, WorkflowEnvelopeOperationPredicate{}) +} + +// ListInstanceWorkflowsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListInstanceWorkflowsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate WorkflowEnvelopeOperationPredicate) (result ListInstanceWorkflowsSlotCompleteResult, err error) { + items := make([]WorkflowEnvelope, 0) + + resp, err := c.ListInstanceWorkflowsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListInstanceWorkflowsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadata.go new file mode 100644 index 000000000000..9f90cd03625d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadata.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListMetadataOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StringDictionary +} + +// ListMetadata ... +func (c WebAppsClient) ListMetadata(ctx context.Context, id commonids.AppServiceId) (result ListMetadataOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/metadata/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadataslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadataslot.go new file mode 100644 index 000000000000..6ed534f9039f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadataslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListMetadataSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StringDictionary +} + +// ListMetadataSlot ... +func (c WebAppsClient) ListMetadataSlot(ctx context.Context, id SlotId) (result ListMetadataSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/metadata/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeatures.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeatures.go new file mode 100644 index 000000000000..d797a79d052d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeatures.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListNetworkFeaturesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkFeatures +} + +// ListNetworkFeatures ... +func (c WebAppsClient) ListNetworkFeatures(ctx context.Context, id NetworkFeatureId) (result ListNetworkFeaturesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeaturesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeaturesslot.go new file mode 100644 index 000000000000..6c8fc82175a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeaturesslot.go @@ -0,0 +1,51 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListNetworkFeaturesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkFeatures +} + +// ListNetworkFeaturesSlot ... +func (c WebAppsClient) ListNetworkFeaturesSlot(ctx context.Context, id SlotNetworkFeatureId) (result ListNetworkFeaturesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncounters.go new file mode 100644 index 000000000000..f659bfe08d9a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncounters.go @@ -0,0 +1,118 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPerfMonCountersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PerfMonResponse +} + +type ListPerfMonCountersCompleteResult struct { + Items []PerfMonResponse +} + +type ListPerfMonCountersOperationOptions struct { + Filter *string +} + +func DefaultListPerfMonCountersOperationOptions() ListPerfMonCountersOperationOptions { + return ListPerfMonCountersOperationOptions{} +} + +func (o ListPerfMonCountersOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListPerfMonCountersOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListPerfMonCountersOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + return &out +} + +// ListPerfMonCounters ... +func (c WebAppsClient) ListPerfMonCounters(ctx context.Context, id commonids.AppServiceId, options ListPerfMonCountersOperationOptions) (result ListPerfMonCountersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/perfcounters", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PerfMonResponse `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListPerfMonCountersComplete retrieves all the results into a single object +func (c WebAppsClient) ListPerfMonCountersComplete(ctx context.Context, id commonids.AppServiceId, options ListPerfMonCountersOperationOptions) (ListPerfMonCountersCompleteResult, error) { + return c.ListPerfMonCountersCompleteMatchingPredicate(ctx, id, options, PerfMonResponseOperationPredicate{}) +} + +// ListPerfMonCountersCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListPerfMonCountersCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, options ListPerfMonCountersOperationOptions, predicate PerfMonResponseOperationPredicate) (result ListPerfMonCountersCompleteResult, err error) { + items := make([]PerfMonResponse, 0) + + resp, err := c.ListPerfMonCounters(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListPerfMonCountersCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncountersslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncountersslot.go new file mode 100644 index 000000000000..3bbf64e55ded --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncountersslot.go @@ -0,0 +1,117 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPerfMonCountersSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PerfMonResponse +} + +type ListPerfMonCountersSlotCompleteResult struct { + Items []PerfMonResponse +} + +type ListPerfMonCountersSlotOperationOptions struct { + Filter *string +} + +func DefaultListPerfMonCountersSlotOperationOptions() ListPerfMonCountersSlotOperationOptions { + return ListPerfMonCountersSlotOperationOptions{} +} + +func (o ListPerfMonCountersSlotOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListPerfMonCountersSlotOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListPerfMonCountersSlotOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + return &out +} + +// ListPerfMonCountersSlot ... +func (c WebAppsClient) ListPerfMonCountersSlot(ctx context.Context, id SlotId, options ListPerfMonCountersSlotOperationOptions) (result ListPerfMonCountersSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/perfcounters", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PerfMonResponse `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListPerfMonCountersSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListPerfMonCountersSlotComplete(ctx context.Context, id SlotId, options ListPerfMonCountersSlotOperationOptions) (ListPerfMonCountersSlotCompleteResult, error) { + return c.ListPerfMonCountersSlotCompleteMatchingPredicate(ctx, id, options, PerfMonResponseOperationPredicate{}) +} + +// ListPerfMonCountersSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListPerfMonCountersSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, options ListPerfMonCountersSlotOperationOptions, predicate PerfMonResponseOperationPredicate) (result ListPerfMonCountersSlotCompleteResult, err error) { + items := make([]PerfMonResponse, 0) + + resp, err := c.ListPerfMonCountersSlot(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListPerfMonCountersSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddons.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddons.go new file mode 100644 index 000000000000..69a977607f4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddons.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPremierAddOnsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PremierAddOn +} + +// ListPremierAddOns ... +func (c WebAppsClient) ListPremierAddOns(ctx context.Context, id commonids.AppServiceId) (result ListPremierAddOnsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/premierAddons", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddonsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddonsslot.go new file mode 100644 index 000000000000..a756510e9a4b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddonsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPremierAddOnsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PremierAddOn +} + +// ListPremierAddOnsSlot ... +func (c WebAppsClient) ListPremierAddOnsSlot(ctx context.Context, id SlotId) (result ListPremierAddOnsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/premierAddons", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocesses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocesses.go new file mode 100644 index 000000000000..ddadd45d201b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocesses.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListProcessesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessInfo +} + +type ListProcessesCompleteResult struct { + Items []ProcessInfo +} + +// ListProcesses ... +func (c WebAppsClient) ListProcesses(ctx context.Context, id commonids.AppServiceId) (result ListProcessesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/processes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListProcessesComplete retrieves all the results into a single object +func (c WebAppsClient) ListProcessesComplete(ctx context.Context, id commonids.AppServiceId) (ListProcessesCompleteResult, error) { + return c.ListProcessesCompleteMatchingPredicate(ctx, id, ProcessInfoOperationPredicate{}) +} + +// ListProcessesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListProcessesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate ProcessInfoOperationPredicate) (result ListProcessesCompleteResult, err error) { + items := make([]ProcessInfo, 0) + + resp, err := c.ListProcesses(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListProcessesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessesslot.go new file mode 100644 index 000000000000..80c1db39fee9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessesslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListProcessesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessInfo +} + +type ListProcessesSlotCompleteResult struct { + Items []ProcessInfo +} + +// ListProcessesSlot ... +func (c WebAppsClient) ListProcessesSlot(ctx context.Context, id SlotId) (result ListProcessesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/processes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListProcessesSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListProcessesSlotComplete(ctx context.Context, id SlotId) (ListProcessesSlotCompleteResult, error) { + return c.ListProcessesSlotCompleteMatchingPredicate(ctx, id, ProcessInfoOperationPredicate{}) +} + +// ListProcessesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListProcessesSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate ProcessInfoOperationPredicate) (result ListProcessesSlotCompleteResult, err error) { + items := make([]ProcessInfo, 0) + + resp, err := c.ListProcessesSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListProcessesSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodules.go new file mode 100644 index 000000000000..870017ce0e20 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodules.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListProcessModulesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessModuleInfo +} + +type ListProcessModulesCompleteResult struct { + Items []ProcessModuleInfo +} + +// ListProcessModules ... +func (c WebAppsClient) ListProcessModules(ctx context.Context, id ProcessId) (result ListProcessModulesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/modules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessModuleInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListProcessModulesComplete retrieves all the results into a single object +func (c WebAppsClient) ListProcessModulesComplete(ctx context.Context, id ProcessId) (ListProcessModulesCompleteResult, error) { + return c.ListProcessModulesCompleteMatchingPredicate(ctx, id, ProcessModuleInfoOperationPredicate{}) +} + +// ListProcessModulesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListProcessModulesCompleteMatchingPredicate(ctx context.Context, id ProcessId, predicate ProcessModuleInfoOperationPredicate) (result ListProcessModulesCompleteResult, err error) { + items := make([]ProcessModuleInfo, 0) + + resp, err := c.ListProcessModules(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListProcessModulesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodulesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodulesslot.go new file mode 100644 index 000000000000..3c26de4588ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodulesslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListProcessModulesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessModuleInfo +} + +type ListProcessModulesSlotCompleteResult struct { + Items []ProcessModuleInfo +} + +// ListProcessModulesSlot ... +func (c WebAppsClient) ListProcessModulesSlot(ctx context.Context, id SlotProcessId) (result ListProcessModulesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/modules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessModuleInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListProcessModulesSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListProcessModulesSlotComplete(ctx context.Context, id SlotProcessId) (ListProcessModulesSlotCompleteResult, error) { + return c.ListProcessModulesSlotCompleteMatchingPredicate(ctx, id, ProcessModuleInfoOperationPredicate{}) +} + +// ListProcessModulesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListProcessModulesSlotCompleteMatchingPredicate(ctx context.Context, id SlotProcessId, predicate ProcessModuleInfoOperationPredicate) (result ListProcessModulesSlotCompleteResult, err error) { + items := make([]ProcessModuleInfo, 0) + + resp, err := c.ListProcessModulesSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListProcessModulesSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreads.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreads.go new file mode 100644 index 000000000000..7ae8faf573b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreads.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListProcessThreadsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessThreadInfo +} + +type ListProcessThreadsCompleteResult struct { + Items []ProcessThreadInfo +} + +// ListProcessThreads ... +func (c WebAppsClient) ListProcessThreads(ctx context.Context, id ProcessId) (result ListProcessThreadsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/threads", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessThreadInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListProcessThreadsComplete retrieves all the results into a single object +func (c WebAppsClient) ListProcessThreadsComplete(ctx context.Context, id ProcessId) (ListProcessThreadsCompleteResult, error) { + return c.ListProcessThreadsCompleteMatchingPredicate(ctx, id, ProcessThreadInfoOperationPredicate{}) +} + +// ListProcessThreadsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListProcessThreadsCompleteMatchingPredicate(ctx context.Context, id ProcessId, predicate ProcessThreadInfoOperationPredicate) (result ListProcessThreadsCompleteResult, err error) { + items := make([]ProcessThreadInfo, 0) + + resp, err := c.ListProcessThreads(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListProcessThreadsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreadsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreadsslot.go new file mode 100644 index 000000000000..ad39ffa41a2c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreadsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListProcessThreadsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProcessThreadInfo +} + +type ListProcessThreadsSlotCompleteResult struct { + Items []ProcessThreadInfo +} + +// ListProcessThreadsSlot ... +func (c WebAppsClient) ListProcessThreadsSlot(ctx context.Context, id SlotProcessId) (result ListProcessThreadsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/threads", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProcessThreadInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListProcessThreadsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListProcessThreadsSlotComplete(ctx context.Context, id SlotProcessId) (ListProcessThreadsSlotCompleteResult, error) { + return c.ListProcessThreadsSlotCompleteMatchingPredicate(ctx, id, ProcessThreadInfoOperationPredicate{}) +} + +// ListProcessThreadsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListProcessThreadsSlotCompleteMatchingPredicate(ctx context.Context, id SlotProcessId, predicate ProcessThreadInfoOperationPredicate) (result ListProcessThreadsSlotCompleteResult, err error) { + items := make([]ProcessThreadInfo, 0) + + resp, err := c.ListProcessThreadsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListProcessThreadsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listproductionsitedeploymentstatuses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listproductionsitedeploymentstatuses.go new file mode 100644 index 000000000000..5b0a99d32ab0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listproductionsitedeploymentstatuses.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListProductionSiteDeploymentStatusesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CsmDeploymentStatus +} + +type ListProductionSiteDeploymentStatusesCompleteResult struct { + Items []CsmDeploymentStatus +} + +// ListProductionSiteDeploymentStatuses ... +func (c WebAppsClient) ListProductionSiteDeploymentStatuses(ctx context.Context, id commonids.AppServiceId) (result ListProductionSiteDeploymentStatusesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/deploymentStatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CsmDeploymentStatus `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListProductionSiteDeploymentStatusesComplete retrieves all the results into a single object +func (c WebAppsClient) ListProductionSiteDeploymentStatusesComplete(ctx context.Context, id commonids.AppServiceId) (ListProductionSiteDeploymentStatusesCompleteResult, error) { + return c.ListProductionSiteDeploymentStatusesCompleteMatchingPredicate(ctx, id, CsmDeploymentStatusOperationPredicate{}) +} + +// ListProductionSiteDeploymentStatusesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListProductionSiteDeploymentStatusesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate CsmDeploymentStatusOperationPredicate) (result ListProductionSiteDeploymentStatusesCompleteResult, err error) { + items := make([]CsmDeploymentStatus, 0) + + resp, err := c.ListProductionSiteDeploymentStatuses(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListProductionSiteDeploymentStatusesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificates.go new file mode 100644 index 000000000000..58d9bf5539c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificates.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPublicCertificatesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PublicCertificate +} + +type ListPublicCertificatesCompleteResult struct { + Items []PublicCertificate +} + +// ListPublicCertificates ... +func (c WebAppsClient) ListPublicCertificates(ctx context.Context, id commonids.AppServiceId) (result ListPublicCertificatesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/publicCertificates", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PublicCertificate `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListPublicCertificatesComplete retrieves all the results into a single object +func (c WebAppsClient) ListPublicCertificatesComplete(ctx context.Context, id commonids.AppServiceId) (ListPublicCertificatesCompleteResult, error) { + return c.ListPublicCertificatesCompleteMatchingPredicate(ctx, id, PublicCertificateOperationPredicate{}) +} + +// ListPublicCertificatesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListPublicCertificatesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate PublicCertificateOperationPredicate) (result ListPublicCertificatesCompleteResult, err error) { + items := make([]PublicCertificate, 0) + + resp, err := c.ListPublicCertificates(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListPublicCertificatesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificatesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificatesslot.go new file mode 100644 index 000000000000..83a5bfaa2605 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificatesslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPublicCertificatesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PublicCertificate +} + +type ListPublicCertificatesSlotCompleteResult struct { + Items []PublicCertificate +} + +// ListPublicCertificatesSlot ... +func (c WebAppsClient) ListPublicCertificatesSlot(ctx context.Context, id SlotId) (result ListPublicCertificatesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/publicCertificates", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PublicCertificate `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListPublicCertificatesSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListPublicCertificatesSlotComplete(ctx context.Context, id SlotId) (ListPublicCertificatesSlotCompleteResult, error) { + return c.ListPublicCertificatesSlotCompleteMatchingPredicate(ctx, id, PublicCertificateOperationPredicate{}) +} + +// ListPublicCertificatesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListPublicCertificatesSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate PublicCertificateOperationPredicate) (result ListPublicCertificatesSlotCompleteResult, err error) { + items := make([]PublicCertificate, 0) + + resp, err := c.ListPublicCertificatesSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListPublicCertificatesSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentials.go new file mode 100644 index 000000000000..917c7f39e380 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentials.go @@ -0,0 +1,70 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPublishingCredentialsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ListPublishingCredentials ... +func (c WebAppsClient) ListPublishingCredentials(ctx context.Context, id commonids.AppServiceId) (result ListPublishingCredentialsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/publishingcredentials/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ListPublishingCredentialsThenPoll performs ListPublishingCredentials then polls until it's completed +func (c WebAppsClient) ListPublishingCredentialsThenPoll(ctx context.Context, id commonids.AppServiceId) error { + result, err := c.ListPublishingCredentials(ctx, id) + if err != nil { + return fmt.Errorf("performing ListPublishingCredentials: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ListPublishingCredentials: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentialsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentialsslot.go new file mode 100644 index 000000000000..ef1bf8750f32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentialsslot.go @@ -0,0 +1,69 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPublishingCredentialsSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ListPublishingCredentialsSlot ... +func (c WebAppsClient) ListPublishingCredentialsSlot(ctx context.Context, id SlotId) (result ListPublishingCredentialsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/publishingcredentials/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ListPublishingCredentialsSlotThenPoll performs ListPublishingCredentialsSlot then polls until it's completed +func (c WebAppsClient) ListPublishingCredentialsSlotThenPoll(ctx context.Context, id SlotId) error { + result, err := c.ListPublishingCredentialsSlot(ctx, id) + if err != nil { + return fmt.Errorf("performing ListPublishingCredentialsSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ListPublishingCredentialsSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecrets.go new file mode 100644 index 000000000000..80e7c0fa08ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecrets.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPublishingProfileXmlWithSecretsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]byte +} + +// ListPublishingProfileXmlWithSecrets ... +func (c WebAppsClient) ListPublishingProfileXmlWithSecrets(ctx context.Context, id commonids.AppServiceId, input CsmPublishingProfileOptions) (result ListPublishingProfileXmlWithSecretsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/publishxml", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecretsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecretsslot.go new file mode 100644 index 000000000000..205ec292e347 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecretsslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPublishingProfileXmlWithSecretsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]byte +} + +// ListPublishingProfileXmlWithSecretsSlot ... +func (c WebAppsClient) ListPublishingProfileXmlWithSecretsSlot(ctx context.Context, id SlotId, input CsmPublishingProfileOptions) (result ListPublishingProfileXmlWithSecretsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/publishxml", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnections.go new file mode 100644 index 000000000000..0b881fd88481 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnections.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListRelayServiceConnectionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RelayServiceConnectionEntity +} + +// ListRelayServiceConnections ... +func (c WebAppsClient) ListRelayServiceConnections(ctx context.Context, id commonids.AppServiceId) (result ListRelayServiceConnectionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/hybridConnection", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnectionsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnectionsslot.go new file mode 100644 index 000000000000..444965eadaba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnectionsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListRelayServiceConnectionsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RelayServiceConnectionEntity +} + +// ListRelayServiceConnectionsSlot ... +func (c WebAppsClient) ListRelayServiceConnectionsSlot(ctx context.Context, id SlotId) (result ListRelayServiceConnectionsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/hybridConnection", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go new file mode 100644 index 000000000000..2e5b61acb2e1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSiteBackupsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BackupItem +} + +type ListSiteBackupsCompleteResult struct { + Items []BackupItem +} + +// ListSiteBackups ... +func (c WebAppsClient) ListSiteBackups(ctx context.Context, id commonids.AppServiceId) (result ListSiteBackupsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listbackups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]BackupItem `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSiteBackupsComplete retrieves all the results into a single object +func (c WebAppsClient) ListSiteBackupsComplete(ctx context.Context, id commonids.AppServiceId) (ListSiteBackupsCompleteResult, error) { + return c.ListSiteBackupsCompleteMatchingPredicate(ctx, id, BackupItemOperationPredicate{}) +} + +// ListSiteBackupsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSiteBackupsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate BackupItemOperationPredicate) (result ListSiteBackupsCompleteResult, err error) { + items := make([]BackupItem, 0) + + resp, err := c.ListSiteBackups(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSiteBackupsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go new file mode 100644 index 000000000000..7b14ebb2c2bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSiteBackupsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BackupItem +} + +type ListSiteBackupsSlotCompleteResult struct { + Items []BackupItem +} + +// ListSiteBackupsSlot ... +func (c WebAppsClient) ListSiteBackupsSlot(ctx context.Context, id SlotId) (result ListSiteBackupsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listbackups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]BackupItem `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSiteBackupsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListSiteBackupsSlotComplete(ctx context.Context, id SlotId) (ListSiteBackupsSlotCompleteResult, error) { + return c.ListSiteBackupsSlotCompleteMatchingPredicate(ctx, id, BackupItemOperationPredicate{}) +} + +// ListSiteBackupsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSiteBackupsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate BackupItemOperationPredicate) (result ListSiteBackupsSlotCompleteResult, err error) { + items := make([]BackupItem, 0) + + resp, err := c.ListSiteBackupsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSiteBackupsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensions.go new file mode 100644 index 000000000000..9b41c17107bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensions.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSiteExtensionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SiteExtensionInfo +} + +type ListSiteExtensionsCompleteResult struct { + Items []SiteExtensionInfo +} + +// ListSiteExtensions ... +func (c WebAppsClient) ListSiteExtensions(ctx context.Context, id commonids.AppServiceId) (result ListSiteExtensionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/siteExtensions", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SiteExtensionInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSiteExtensionsComplete retrieves all the results into a single object +func (c WebAppsClient) ListSiteExtensionsComplete(ctx context.Context, id commonids.AppServiceId) (ListSiteExtensionsCompleteResult, error) { + return c.ListSiteExtensionsCompleteMatchingPredicate(ctx, id, SiteExtensionInfoOperationPredicate{}) +} + +// ListSiteExtensionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSiteExtensionsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate SiteExtensionInfoOperationPredicate) (result ListSiteExtensionsCompleteResult, err error) { + items := make([]SiteExtensionInfo, 0) + + resp, err := c.ListSiteExtensions(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSiteExtensionsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensionsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensionsslot.go new file mode 100644 index 000000000000..235f0fdd169f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensionsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSiteExtensionsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SiteExtensionInfo +} + +type ListSiteExtensionsSlotCompleteResult struct { + Items []SiteExtensionInfo +} + +// ListSiteExtensionsSlot ... +func (c WebAppsClient) ListSiteExtensionsSlot(ctx context.Context, id SlotId) (result ListSiteExtensionsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/siteExtensions", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SiteExtensionInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSiteExtensionsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListSiteExtensionsSlotComplete(ctx context.Context, id SlotId) (ListSiteExtensionsSlotCompleteResult, error) { + return c.ListSiteExtensionsSlotCompleteMatchingPredicate(ctx, id, SiteExtensionInfoOperationPredicate{}) +} + +// ListSiteExtensionsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSiteExtensionsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate SiteExtensionInfoOperationPredicate) (result ListSiteExtensionsSlotCompleteResult, err error) { + items := make([]SiteExtensionInfo, 0) + + resp, err := c.ListSiteExtensionsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSiteExtensionsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettings.go new file mode 100644 index 000000000000..2c87c0093f1a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettings.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSitePushSettingsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PushSettings +} + +// ListSitePushSettings ... +func (c WebAppsClient) ListSitePushSettings(ctx context.Context, id commonids.AppServiceId) (result ListSitePushSettingsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/pushsettings/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettingsslot.go new file mode 100644 index 000000000000..b37bc686cc76 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettingsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSitePushSettingsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PushSettings +} + +// ListSitePushSettingsSlot ... +func (c WebAppsClient) ListSitePushSettingsSlot(ctx context.Context, id SlotId) (result ListSitePushSettingsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/config/pushsettings/list", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotconfigurationnames.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotconfigurationnames.go new file mode 100644 index 000000000000..3b8482aaddf8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotconfigurationnames.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSlotConfigurationNamesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SlotConfigNamesResource +} + +// ListSlotConfigurationNames ... +func (c WebAppsClient) ListSlotConfigurationNames(ctx context.Context, id commonids.AppServiceId) (result ListSlotConfigurationNamesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/config/slotConfigNames", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go new file mode 100644 index 000000000000..c05406ca850a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSlotDifferencesFromProductionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SlotDifference +} + +type ListSlotDifferencesFromProductionCompleteResult struct { + Items []SlotDifference +} + +// ListSlotDifferencesFromProduction ... +func (c WebAppsClient) ListSlotDifferencesFromProduction(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity) (result ListSlotDifferencesFromProductionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/slotsdiffs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SlotDifference `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSlotDifferencesFromProductionComplete retrieves all the results into a single object +func (c WebAppsClient) ListSlotDifferencesFromProductionComplete(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity) (ListSlotDifferencesFromProductionCompleteResult, error) { + return c.ListSlotDifferencesFromProductionCompleteMatchingPredicate(ctx, id, input, SlotDifferenceOperationPredicate{}) +} + +// ListSlotDifferencesFromProductionCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSlotDifferencesFromProductionCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity, predicate SlotDifferenceOperationPredicate) (result ListSlotDifferencesFromProductionCompleteResult, err error) { + items := make([]SlotDifference, 0) + + resp, err := c.ListSlotDifferencesFromProduction(ctx, id, input) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSlotDifferencesFromProductionCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go new file mode 100644 index 000000000000..3c2d59847f7b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSlotDifferencesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SlotDifference +} + +type ListSlotDifferencesSlotCompleteResult struct { + Items []SlotDifference +} + +// ListSlotDifferencesSlot ... +func (c WebAppsClient) ListSlotDifferencesSlot(ctx context.Context, id SlotId, input CsmSlotEntity) (result ListSlotDifferencesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/slotsdiffs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SlotDifference `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSlotDifferencesSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListSlotDifferencesSlotComplete(ctx context.Context, id SlotId, input CsmSlotEntity) (ListSlotDifferencesSlotCompleteResult, error) { + return c.ListSlotDifferencesSlotCompleteMatchingPredicate(ctx, id, input, SlotDifferenceOperationPredicate{}) +} + +// ListSlotDifferencesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSlotDifferencesSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, input CsmSlotEntity, predicate SlotDifferenceOperationPredicate) (result ListSlotDifferencesSlotCompleteResult, err error) { + items := make([]SlotDifference, 0) + + resp, err := c.ListSlotDifferencesSlot(ctx, id, input) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSlotDifferencesSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslots.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslots.go new file mode 100644 index 000000000000..6f3dc06d8528 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslots.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSlotsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Site +} + +type ListSlotsCompleteResult struct { + Items []Site +} + +// ListSlots ... +func (c WebAppsClient) ListSlots(ctx context.Context, id commonids.AppServiceId) (result ListSlotsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/slots", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Site `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSlotsComplete retrieves all the results into a single object +func (c WebAppsClient) ListSlotsComplete(ctx context.Context, id commonids.AppServiceId) (ListSlotsCompleteResult, error) { + return c.ListSlotsCompleteMatchingPredicate(ctx, id, SiteOperationPredicate{}) +} + +// ListSlotsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSlotsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate SiteOperationPredicate) (result ListSlotsCompleteResult, err error) { + items := make([]Site, 0) + + resp, err := c.ListSlots(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSlotsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotsitedeploymentstatusesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotsitedeploymentstatusesslot.go new file mode 100644 index 000000000000..3d8696ed2418 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotsitedeploymentstatusesslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSlotSiteDeploymentStatusesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CsmDeploymentStatus +} + +type ListSlotSiteDeploymentStatusesSlotCompleteResult struct { + Items []CsmDeploymentStatus +} + +// ListSlotSiteDeploymentStatusesSlot ... +func (c WebAppsClient) ListSlotSiteDeploymentStatusesSlot(ctx context.Context, id SlotId) (result ListSlotSiteDeploymentStatusesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/deploymentStatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CsmDeploymentStatus `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSlotSiteDeploymentStatusesSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListSlotSiteDeploymentStatusesSlotComplete(ctx context.Context, id SlotId) (ListSlotSiteDeploymentStatusesSlotCompleteResult, error) { + return c.ListSlotSiteDeploymentStatusesSlotCompleteMatchingPredicate(ctx, id, CsmDeploymentStatusOperationPredicate{}) +} + +// ListSlotSiteDeploymentStatusesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSlotSiteDeploymentStatusesSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate CsmDeploymentStatusOperationPredicate) (result ListSlotSiteDeploymentStatusesSlotCompleteResult, err error) { + items := make([]CsmDeploymentStatus, 0) + + resp, err := c.ListSlotSiteDeploymentStatusesSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSlotSiteDeploymentStatusesSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshots.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshots.go new file mode 100644 index 000000000000..4c11fcc94985 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshots.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSnapshotsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Snapshot +} + +type ListSnapshotsCompleteResult struct { + Items []Snapshot +} + +// ListSnapshots ... +func (c WebAppsClient) ListSnapshots(ctx context.Context, id commonids.AppServiceId) (result ListSnapshotsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/snapshots", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Snapshot `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSnapshotsComplete retrieves all the results into a single object +func (c WebAppsClient) ListSnapshotsComplete(ctx context.Context, id commonids.AppServiceId) (ListSnapshotsCompleteResult, error) { + return c.ListSnapshotsCompleteMatchingPredicate(ctx, id, SnapshotOperationPredicate{}) +} + +// ListSnapshotsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSnapshotsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate SnapshotOperationPredicate) (result ListSnapshotsCompleteResult, err error) { + items := make([]Snapshot, 0) + + resp, err := c.ListSnapshots(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSnapshotsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondary.go new file mode 100644 index 000000000000..ba132a14fcc7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondary.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSnapshotsFromDRSecondaryOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Snapshot +} + +type ListSnapshotsFromDRSecondaryCompleteResult struct { + Items []Snapshot +} + +// ListSnapshotsFromDRSecondary ... +func (c WebAppsClient) ListSnapshotsFromDRSecondary(ctx context.Context, id commonids.AppServiceId) (result ListSnapshotsFromDRSecondaryOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/snapshotsdr", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Snapshot `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSnapshotsFromDRSecondaryComplete retrieves all the results into a single object +func (c WebAppsClient) ListSnapshotsFromDRSecondaryComplete(ctx context.Context, id commonids.AppServiceId) (ListSnapshotsFromDRSecondaryCompleteResult, error) { + return c.ListSnapshotsFromDRSecondaryCompleteMatchingPredicate(ctx, id, SnapshotOperationPredicate{}) +} + +// ListSnapshotsFromDRSecondaryCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSnapshotsFromDRSecondaryCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate SnapshotOperationPredicate) (result ListSnapshotsFromDRSecondaryCompleteResult, err error) { + items := make([]Snapshot, 0) + + resp, err := c.ListSnapshotsFromDRSecondary(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSnapshotsFromDRSecondaryCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondaryslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondaryslot.go new file mode 100644 index 000000000000..4b518eb4bed0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondaryslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSnapshotsFromDRSecondarySlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Snapshot +} + +type ListSnapshotsFromDRSecondarySlotCompleteResult struct { + Items []Snapshot +} + +// ListSnapshotsFromDRSecondarySlot ... +func (c WebAppsClient) ListSnapshotsFromDRSecondarySlot(ctx context.Context, id SlotId) (result ListSnapshotsFromDRSecondarySlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/snapshotsdr", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Snapshot `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSnapshotsFromDRSecondarySlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListSnapshotsFromDRSecondarySlotComplete(ctx context.Context, id SlotId) (ListSnapshotsFromDRSecondarySlotCompleteResult, error) { + return c.ListSnapshotsFromDRSecondarySlotCompleteMatchingPredicate(ctx, id, SnapshotOperationPredicate{}) +} + +// ListSnapshotsFromDRSecondarySlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSnapshotsFromDRSecondarySlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate SnapshotOperationPredicate) (result ListSnapshotsFromDRSecondarySlotCompleteResult, err error) { + items := make([]Snapshot, 0) + + resp, err := c.ListSnapshotsFromDRSecondarySlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSnapshotsFromDRSecondarySlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsslot.go new file mode 100644 index 000000000000..6523467e0e4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSnapshotsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Snapshot +} + +type ListSnapshotsSlotCompleteResult struct { + Items []Snapshot +} + +// ListSnapshotsSlot ... +func (c WebAppsClient) ListSnapshotsSlot(ctx context.Context, id SlotId) (result ListSnapshotsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/snapshots", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Snapshot `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSnapshotsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListSnapshotsSlotComplete(ctx context.Context, id SlotId) (ListSnapshotsSlotCompleteResult, error) { + return c.ListSnapshotsSlotCompleteMatchingPredicate(ctx, id, SnapshotOperationPredicate{}) +} + +// ListSnapshotsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListSnapshotsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate SnapshotOperationPredicate) (result ListSnapshotsSlotCompleteResult, err error) { + items := make([]Snapshot, 0) + + resp, err := c.ListSnapshotsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSnapshotsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggers.go new file mode 100644 index 000000000000..5a65012a492f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggers.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSyncFunctionTriggersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FunctionSecrets +} + +// ListSyncFunctionTriggers ... +func (c WebAppsClient) ListSyncFunctionTriggers(ctx context.Context, id commonids.AppServiceId) (result ListSyncFunctionTriggersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listsyncfunctiontriggerstatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggersslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggersslot.go new file mode 100644 index 000000000000..c2121f067116 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggersslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSyncFunctionTriggersSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FunctionSecrets +} + +// ListSyncFunctionTriggersSlot ... +func (c WebAppsClient) ListSyncFunctionTriggersSlot(ctx context.Context, id SlotId) (result ListSyncFunctionTriggersSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listsyncfunctiontriggerstatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatus.go new file mode 100644 index 000000000000..bc0ee3e79f0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatus.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSyncStatusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// ListSyncStatus ... +func (c WebAppsClient) ListSyncStatus(ctx context.Context, id commonids.AppServiceId) (result ListSyncStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/host/default/listsyncstatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatusslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatusslot.go new file mode 100644 index 000000000000..bf199ced94d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatusslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSyncStatusSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// ListSyncStatusSlot ... +func (c WebAppsClient) ListSyncStatusSlot(ctx context.Context, id SlotId) (result ListSyncStatusSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/host/default/listsyncstatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistory.go new file mode 100644 index 000000000000..038c446f19af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistory.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListTriggeredWebJobHistoryOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]TriggeredJobHistory +} + +type ListTriggeredWebJobHistoryCompleteResult struct { + Items []TriggeredJobHistory +} + +// ListTriggeredWebJobHistory ... +func (c WebAppsClient) ListTriggeredWebJobHistory(ctx context.Context, id TriggeredWebJobId) (result ListTriggeredWebJobHistoryOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/history", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]TriggeredJobHistory `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListTriggeredWebJobHistoryComplete retrieves all the results into a single object +func (c WebAppsClient) ListTriggeredWebJobHistoryComplete(ctx context.Context, id TriggeredWebJobId) (ListTriggeredWebJobHistoryCompleteResult, error) { + return c.ListTriggeredWebJobHistoryCompleteMatchingPredicate(ctx, id, TriggeredJobHistoryOperationPredicate{}) +} + +// ListTriggeredWebJobHistoryCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListTriggeredWebJobHistoryCompleteMatchingPredicate(ctx context.Context, id TriggeredWebJobId, predicate TriggeredJobHistoryOperationPredicate) (result ListTriggeredWebJobHistoryCompleteResult, err error) { + items := make([]TriggeredJobHistory, 0) + + resp, err := c.ListTriggeredWebJobHistory(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListTriggeredWebJobHistoryCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistoryslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistoryslot.go new file mode 100644 index 000000000000..64b640690c0b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistoryslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListTriggeredWebJobHistorySlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]TriggeredJobHistory +} + +type ListTriggeredWebJobHistorySlotCompleteResult struct { + Items []TriggeredJobHistory +} + +// ListTriggeredWebJobHistorySlot ... +func (c WebAppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, id SlotTriggeredWebJobId) (result ListTriggeredWebJobHistorySlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/history", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]TriggeredJobHistory `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListTriggeredWebJobHistorySlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListTriggeredWebJobHistorySlotComplete(ctx context.Context, id SlotTriggeredWebJobId) (ListTriggeredWebJobHistorySlotCompleteResult, error) { + return c.ListTriggeredWebJobHistorySlotCompleteMatchingPredicate(ctx, id, TriggeredJobHistoryOperationPredicate{}) +} + +// ListTriggeredWebJobHistorySlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListTriggeredWebJobHistorySlotCompleteMatchingPredicate(ctx context.Context, id SlotTriggeredWebJobId, predicate TriggeredJobHistoryOperationPredicate) (result ListTriggeredWebJobHistorySlotCompleteResult, err error) { + items := make([]TriggeredJobHistory, 0) + + resp, err := c.ListTriggeredWebJobHistorySlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListTriggeredWebJobHistorySlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobs.go new file mode 100644 index 000000000000..fa072db87fb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobs.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListTriggeredWebJobsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]TriggeredWebJob +} + +type ListTriggeredWebJobsCompleteResult struct { + Items []TriggeredWebJob +} + +// ListTriggeredWebJobs ... +func (c WebAppsClient) ListTriggeredWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListTriggeredWebJobsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/triggeredWebJobs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]TriggeredWebJob `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListTriggeredWebJobsComplete retrieves all the results into a single object +func (c WebAppsClient) ListTriggeredWebJobsComplete(ctx context.Context, id commonids.AppServiceId) (ListTriggeredWebJobsCompleteResult, error) { + return c.ListTriggeredWebJobsCompleteMatchingPredicate(ctx, id, TriggeredWebJobOperationPredicate{}) +} + +// ListTriggeredWebJobsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListTriggeredWebJobsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate TriggeredWebJobOperationPredicate) (result ListTriggeredWebJobsCompleteResult, err error) { + items := make([]TriggeredWebJob, 0) + + resp, err := c.ListTriggeredWebJobs(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListTriggeredWebJobsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobsslot.go new file mode 100644 index 000000000000..46247c121fe7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListTriggeredWebJobsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]TriggeredWebJob +} + +type ListTriggeredWebJobsSlotCompleteResult struct { + Items []TriggeredWebJob +} + +// ListTriggeredWebJobsSlot ... +func (c WebAppsClient) ListTriggeredWebJobsSlot(ctx context.Context, id SlotId) (result ListTriggeredWebJobsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/triggeredWebJobs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]TriggeredWebJob `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListTriggeredWebJobsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListTriggeredWebJobsSlotComplete(ctx context.Context, id SlotId) (ListTriggeredWebJobsSlotCompleteResult, error) { + return c.ListTriggeredWebJobsSlotCompleteMatchingPredicate(ctx, id, TriggeredWebJobOperationPredicate{}) +} + +// ListTriggeredWebJobsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListTriggeredWebJobsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate TriggeredWebJobOperationPredicate) (result ListTriggeredWebJobsSlotCompleteResult, err error) { + items := make([]TriggeredWebJob, 0) + + resp, err := c.ListTriggeredWebJobsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListTriggeredWebJobsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusages.go new file mode 100644 index 000000000000..fd8b75eb1611 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusages.go @@ -0,0 +1,118 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListUsagesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CsmUsageQuota +} + +type ListUsagesCompleteResult struct { + Items []CsmUsageQuota +} + +type ListUsagesOperationOptions struct { + Filter *string +} + +func DefaultListUsagesOperationOptions() ListUsagesOperationOptions { + return ListUsagesOperationOptions{} +} + +func (o ListUsagesOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListUsagesOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListUsagesOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + return &out +} + +// ListUsages ... +func (c WebAppsClient) ListUsages(ctx context.Context, id commonids.AppServiceId, options ListUsagesOperationOptions) (result ListUsagesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/usages", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CsmUsageQuota `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListUsagesComplete retrieves all the results into a single object +func (c WebAppsClient) ListUsagesComplete(ctx context.Context, id commonids.AppServiceId, options ListUsagesOperationOptions) (ListUsagesCompleteResult, error) { + return c.ListUsagesCompleteMatchingPredicate(ctx, id, options, CsmUsageQuotaOperationPredicate{}) +} + +// ListUsagesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListUsagesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, options ListUsagesOperationOptions, predicate CsmUsageQuotaOperationPredicate) (result ListUsagesCompleteResult, err error) { + items := make([]CsmUsageQuota, 0) + + resp, err := c.ListUsages(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListUsagesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusagesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusagesslot.go new file mode 100644 index 000000000000..1e3c39a02b0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusagesslot.go @@ -0,0 +1,117 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListUsagesSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CsmUsageQuota +} + +type ListUsagesSlotCompleteResult struct { + Items []CsmUsageQuota +} + +type ListUsagesSlotOperationOptions struct { + Filter *string +} + +func DefaultListUsagesSlotOperationOptions() ListUsagesSlotOperationOptions { + return ListUsagesSlotOperationOptions{} +} + +func (o ListUsagesSlotOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListUsagesSlotOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListUsagesSlotOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + return &out +} + +// ListUsagesSlot ... +func (c WebAppsClient) ListUsagesSlot(ctx context.Context, id SlotId, options ListUsagesSlotOperationOptions) (result ListUsagesSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/usages", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CsmUsageQuota `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListUsagesSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListUsagesSlotComplete(ctx context.Context, id SlotId, options ListUsagesSlotOperationOptions) (ListUsagesSlotCompleteResult, error) { + return c.ListUsagesSlotCompleteMatchingPredicate(ctx, id, options, CsmUsageQuotaOperationPredicate{}) +} + +// ListUsagesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListUsagesSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, options ListUsagesSlotOperationOptions, predicate CsmUsageQuotaOperationPredicate) (result ListUsagesSlotCompleteResult, err error) { + items := make([]CsmUsageQuota, 0) + + resp, err := c.ListUsagesSlot(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListUsagesSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnections.go new file mode 100644 index 000000000000..3bf64dbebab3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnections.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListVnetConnectionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VnetInfoResource +} + +// ListVnetConnections ... +func (c WebAppsClient) ListVnetConnections(ctx context.Context, id commonids.AppServiceId) (result ListVnetConnectionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/virtualNetworkConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnectionsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnectionsslot.go new file mode 100644 index 000000000000..8f90439dc8a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnectionsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListVnetConnectionsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VnetInfoResource +} + +// ListVnetConnectionsSlot ... +func (c WebAppsClient) ListVnetConnectionsSlot(ctx context.Context, id SlotId) (result ListVnetConnectionsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/virtualNetworkConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobs.go new file mode 100644 index 000000000000..62a582df0464 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobs.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListWebJobsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WebJob +} + +type ListWebJobsCompleteResult struct { + Items []WebJob +} + +// ListWebJobs ... +func (c WebAppsClient) ListWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListWebJobsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/webJobs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]WebJob `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListWebJobsComplete retrieves all the results into a single object +func (c WebAppsClient) ListWebJobsComplete(ctx context.Context, id commonids.AppServiceId) (ListWebJobsCompleteResult, error) { + return c.ListWebJobsCompleteMatchingPredicate(ctx, id, WebJobOperationPredicate{}) +} + +// ListWebJobsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListWebJobsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate WebJobOperationPredicate) (result ListWebJobsCompleteResult, err error) { + items := make([]WebJob, 0) + + resp, err := c.ListWebJobs(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListWebJobsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobsslot.go new file mode 100644 index 000000000000..c27173918faf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobsslot.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListWebJobsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WebJob +} + +type ListWebJobsSlotCompleteResult struct { + Items []WebJob +} + +// ListWebJobsSlot ... +func (c WebAppsClient) ListWebJobsSlot(ctx context.Context, id SlotId) (result ListWebJobsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/webJobs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]WebJob `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListWebJobsSlotComplete retrieves all the results into a single object +func (c WebAppsClient) ListWebJobsSlotComplete(ctx context.Context, id SlotId) (ListWebJobsSlotCompleteResult, error) { + return c.ListWebJobsSlotCompleteMatchingPredicate(ctx, id, WebJobOperationPredicate{}) +} + +// ListWebJobsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListWebJobsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate WebJobOperationPredicate) (result ListWebJobsSlotCompleteResult, err error) { + items := make([]WebJob, 0) + + resp, err := c.ListWebJobsSlot(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListWebJobsSlotCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflows.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflows.go new file mode 100644 index 000000000000..cb480aed1e0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflows.go @@ -0,0 +1,90 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListWorkflowsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WorkflowEnvelope +} + +type ListWorkflowsCompleteResult struct { + Items []WorkflowEnvelope +} + +// ListWorkflows ... +func (c WebAppsClient) ListWorkflows(ctx context.Context, id commonids.AppServiceId) (result ListWorkflowsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/workflows", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]WorkflowEnvelope `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListWorkflowsComplete retrieves all the results into a single object +func (c WebAppsClient) ListWorkflowsComplete(ctx context.Context, id commonids.AppServiceId) (ListWorkflowsCompleteResult, error) { + return c.ListWorkflowsCompleteMatchingPredicate(ctx, id, WorkflowEnvelopeOperationPredicate{}) +} + +// ListWorkflowsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebAppsClient) ListWorkflowsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate WorkflowEnvelopeOperationPredicate) (result ListWorkflowsCompleteResult, err error) { + items := make([]WorkflowEnvelope, 0) + + resp, err := c.ListWorkflows(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListWorkflowsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnections.go new file mode 100644 index 000000000000..54c3a55462ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnections.go @@ -0,0 +1,53 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListWorkflowsConnectionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WorkflowEnvelope +} + +// ListWorkflowsConnections ... +func (c WebAppsClient) ListWorkflowsConnections(ctx context.Context, id commonids.AppServiceId) (result ListWorkflowsConnectionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listWorkflowsConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnectionsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnectionsslot.go new file mode 100644 index 000000000000..b7af1e131328 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnectionsslot.go @@ -0,0 +1,52 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListWorkflowsConnectionsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WorkflowEnvelope +} + +// ListWorkflowsConnectionsSlot ... +func (c WebAppsClient) ListWorkflowsConnectionsSlot(ctx context.Context, id SlotId) (result ListWorkflowsConnectionsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listWorkflowsConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratemysql.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratemysql.go new file mode 100644 index 000000000000..c9cb368de778 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratemysql.go @@ -0,0 +1,74 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MigrateMySqlOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// MigrateMySql ... +func (c WebAppsClient) MigrateMySql(ctx context.Context, id commonids.AppServiceId, input MigrateMySqlRequest) (result MigrateMySqlOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/migrateMySql", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// MigrateMySqlThenPoll performs MigrateMySql then polls until it's completed +func (c WebAppsClient) MigrateMySqlThenPoll(ctx context.Context, id commonids.AppServiceId, input MigrateMySqlRequest) error { + result, err := c.MigrateMySql(ctx, id, input) + if err != nil { + return fmt.Errorf("performing MigrateMySql: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after MigrateMySql: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratestorage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratestorage.go new file mode 100644 index 000000000000..15328e5cc094 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratestorage.go @@ -0,0 +1,102 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MigrateStorageOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type MigrateStorageOperationOptions struct { + SubscriptionName *string +} + +func DefaultMigrateStorageOperationOptions() MigrateStorageOperationOptions { + return MigrateStorageOperationOptions{} +} + +func (o MigrateStorageOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o MigrateStorageOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o MigrateStorageOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.SubscriptionName != nil { + out.Append("subscriptionName", fmt.Sprintf("%v", *o.SubscriptionName)) + } + return &out +} + +// MigrateStorage ... +func (c WebAppsClient) MigrateStorage(ctx context.Context, id commonids.AppServiceId, input StorageMigrationOptions, options MigrateStorageOperationOptions) (result MigrateStorageOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/migrate", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// MigrateStorageThenPoll performs MigrateStorage then polls until it's completed +func (c WebAppsClient) MigrateStorageThenPoll(ctx context.Context, id commonids.AppServiceId, input StorageMigrationOptions, options MigrateStorageOperationOptions) error { + result, err := c.MigrateStorage(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing MigrateStorage: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after MigrateStorage: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnet.go new file mode 100644 index 000000000000..a6c1f66c92ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnet.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PutPrivateAccessVnetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateAccess +} + +// PutPrivateAccessVnet ... +func (c WebAppsClient) PutPrivateAccessVnet(ctx context.Context, id commonids.AppServiceId, input PrivateAccess) (result PutPrivateAccessVnetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/privateAccess/virtualNetworks", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnetslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnetslot.go new file mode 100644 index 000000000000..10235a4985b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnetslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PutPrivateAccessVnetSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateAccess +} + +// PutPrivateAccessVnetSlot ... +func (c WebAppsClient) PutPrivateAccessVnetSlot(ctx context.Context, id SlotId, input PrivateAccess) (result PutPrivateAccessVnetSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/privateAccess/virtualNetworks", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshot.go new file mode 100644 index 000000000000..9bd00ef6a3f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RecoverSiteConfigurationSnapshotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// RecoverSiteConfigurationSnapshot ... +func (c WebAppsClient) RecoverSiteConfigurationSnapshot(ctx context.Context, id SnapshotId) (result RecoverSiteConfigurationSnapshotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/recover", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshotslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshotslot.go new file mode 100644 index 000000000000..c2218167e74d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshotslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RecoverSiteConfigurationSnapshotSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// RecoverSiteConfigurationSnapshotSlot ... +func (c WebAppsClient) RecoverSiteConfigurationSnapshotSlot(ctx context.Context, id WebSnapshotId) (result RecoverSiteConfigurationSnapshotSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/recover", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetproductionslotconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetproductionslotconfig.go new file mode 100644 index 000000000000..d3e1980493ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetproductionslotconfig.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResetProductionSlotConfigOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// ResetProductionSlotConfig ... +func (c WebAppsClient) ResetProductionSlotConfig(ctx context.Context, id commonids.AppServiceId) (result ResetProductionSlotConfigOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/resetSlotConfig", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetslotconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetslotconfigurationslot.go new file mode 100644 index 000000000000..15aae4006538 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetslotconfigurationslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResetSlotConfigurationSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// ResetSlotConfigurationSlot ... +func (c WebAppsClient) ResetSlotConfigurationSlot(ctx context.Context, id SlotId) (result ResetSlotConfigurationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/resetSlotConfig", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restart.go new file mode 100644 index 000000000000..fbc0d6837cb4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restart.go @@ -0,0 +1,80 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestartOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type RestartOperationOptions struct { + SoftRestart *bool + Synchronous *bool +} + +func DefaultRestartOperationOptions() RestartOperationOptions { + return RestartOperationOptions{} +} + +func (o RestartOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o RestartOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o RestartOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.SoftRestart != nil { + out.Append("softRestart", fmt.Sprintf("%v", *o.SoftRestart)) + } + if o.Synchronous != nil { + out.Append("synchronous", fmt.Sprintf("%v", *o.Synchronous)) + } + return &out +} + +// Restart ... +func (c WebAppsClient) Restart(ctx context.Context, id commonids.AppServiceId, options RestartOperationOptions) (result RestartOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restart", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restartslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restartslot.go new file mode 100644 index 000000000000..2ed5d2e9efa0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restartslot.go @@ -0,0 +1,79 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestartSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type RestartSlotOperationOptions struct { + SoftRestart *bool + Synchronous *bool +} + +func DefaultRestartSlotOperationOptions() RestartSlotOperationOptions { + return RestartSlotOperationOptions{} +} + +func (o RestartSlotOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o RestartSlotOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o RestartSlotOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.SoftRestart != nil { + out.Append("softRestart", fmt.Sprintf("%v", *o.SoftRestart)) + } + if o.Synchronous != nil { + out.Append("synchronous", fmt.Sprintf("%v", *o.Synchronous)) + } + return &out +} + +// RestartSlot ... +func (c WebAppsClient) RestartSlot(ctx context.Context, id SlotId, options RestartSlotOperationOptions) (result RestartSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restart", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restore.go new file mode 100644 index 000000000000..021d7f79a352 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restore.go @@ -0,0 +1,74 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestoreOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Restore ... +func (c WebAppsClient) Restore(ctx context.Context, id BackupId, input RestoreRequest) (result RestoreOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restore", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RestoreThenPoll performs Restore then polls until it's completed +func (c WebAppsClient) RestoreThenPoll(ctx context.Context, id BackupId, input RestoreRequest) error { + result, err := c.Restore(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Restore: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Restore: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblob.go new file mode 100644 index 000000000000..0483caf9f9c8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblob.go @@ -0,0 +1,75 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestoreFromBackupBlobOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// RestoreFromBackupBlob ... +func (c WebAppsClient) RestoreFromBackupBlob(ctx context.Context, id commonids.AppServiceId, input RestoreRequest) (result RestoreFromBackupBlobOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restoreFromBackupBlob", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RestoreFromBackupBlobThenPoll performs RestoreFromBackupBlob then polls until it's completed +func (c WebAppsClient) RestoreFromBackupBlobThenPoll(ctx context.Context, id commonids.AppServiceId, input RestoreRequest) error { + result, err := c.RestoreFromBackupBlob(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RestoreFromBackupBlob: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RestoreFromBackupBlob: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblobslot.go new file mode 100644 index 000000000000..27fd565b8afe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblobslot.go @@ -0,0 +1,74 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestoreFromBackupBlobSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// RestoreFromBackupBlobSlot ... +func (c WebAppsClient) RestoreFromBackupBlobSlot(ctx context.Context, id SlotId, input RestoreRequest) (result RestoreFromBackupBlobSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restoreFromBackupBlob", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RestoreFromBackupBlobSlotThenPoll performs RestoreFromBackupBlobSlot then polls until it's completed +func (c WebAppsClient) RestoreFromBackupBlobSlotThenPoll(ctx context.Context, id SlotId, input RestoreRequest) error { + result, err := c.RestoreFromBackupBlobSlot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RestoreFromBackupBlobSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RestoreFromBackupBlobSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedapp.go new file mode 100644 index 000000000000..1b8a16b10b56 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedapp.go @@ -0,0 +1,75 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestoreFromDeletedAppOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// RestoreFromDeletedApp ... +func (c WebAppsClient) RestoreFromDeletedApp(ctx context.Context, id commonids.AppServiceId, input DeletedAppRestoreRequest) (result RestoreFromDeletedAppOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restoreFromDeletedApp", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RestoreFromDeletedAppThenPoll performs RestoreFromDeletedApp then polls until it's completed +func (c WebAppsClient) RestoreFromDeletedAppThenPoll(ctx context.Context, id commonids.AppServiceId, input DeletedAppRestoreRequest) error { + result, err := c.RestoreFromDeletedApp(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RestoreFromDeletedApp: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RestoreFromDeletedApp: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedappslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedappslot.go new file mode 100644 index 000000000000..6fd61e73c372 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedappslot.go @@ -0,0 +1,74 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestoreFromDeletedAppSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// RestoreFromDeletedAppSlot ... +func (c WebAppsClient) RestoreFromDeletedAppSlot(ctx context.Context, id SlotId, input DeletedAppRestoreRequest) (result RestoreFromDeletedAppSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restoreFromDeletedApp", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RestoreFromDeletedAppSlotThenPoll performs RestoreFromDeletedAppSlot then polls until it's completed +func (c WebAppsClient) RestoreFromDeletedAppSlotThenPoll(ctx context.Context, id SlotId, input DeletedAppRestoreRequest) error { + result, err := c.RestoreFromDeletedAppSlot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RestoreFromDeletedAppSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RestoreFromDeletedAppSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoreslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoreslot.go new file mode 100644 index 000000000000..0e401f516af7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoreslot.go @@ -0,0 +1,74 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestoreSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// RestoreSlot ... +func (c WebAppsClient) RestoreSlot(ctx context.Context, id SlotBackupId, input RestoreRequest) (result RestoreSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restore", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RestoreSlotThenPoll performs RestoreSlot then polls until it's completed +func (c WebAppsClient) RestoreSlotThenPoll(ctx context.Context, id SlotBackupId, input RestoreRequest) error { + result, err := c.RestoreSlot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RestoreSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RestoreSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshot.go new file mode 100644 index 000000000000..191a16d685de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshot.go @@ -0,0 +1,75 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestoreSnapshotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// RestoreSnapshot ... +func (c WebAppsClient) RestoreSnapshot(ctx context.Context, id commonids.AppServiceId, input SnapshotRestoreRequest) (result RestoreSnapshotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restoreSnapshot", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RestoreSnapshotThenPoll performs RestoreSnapshot then polls until it's completed +func (c WebAppsClient) RestoreSnapshotThenPoll(ctx context.Context, id commonids.AppServiceId, input SnapshotRestoreRequest) error { + result, err := c.RestoreSnapshot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RestoreSnapshot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RestoreSnapshot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshotslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshotslot.go new file mode 100644 index 000000000000..95c72292ac18 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshotslot.go @@ -0,0 +1,74 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestoreSnapshotSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// RestoreSnapshotSlot ... +func (c WebAppsClient) RestoreSnapshotSlot(ctx context.Context, id SlotId, input SnapshotRestoreRequest) (result RestoreSnapshotSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restoreSnapshot", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RestoreSnapshotSlotThenPoll performs RestoreSnapshotSlot then polls until it's completed +func (c WebAppsClient) RestoreSnapshotSlotThenPoll(ctx context.Context, id SlotId, input SnapshotRestoreRequest) error { + result, err := c.RestoreSnapshotSlot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RestoreSnapshotSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RestoreSnapshotSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjob.go new file mode 100644 index 000000000000..368004f11bb6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjob.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RunTriggeredWebJobOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// RunTriggeredWebJob ... +func (c WebAppsClient) RunTriggeredWebJob(ctx context.Context, id TriggeredWebJobId) (result RunTriggeredWebJobOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/run", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjobslot.go new file mode 100644 index 000000000000..20589d753fc1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjobslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RunTriggeredWebJobSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// RunTriggeredWebJobSlot ... +func (c WebAppsClient) RunTriggeredWebJobSlot(ctx context.Context, id SlotTriggeredWebJobId) (result RunTriggeredWebJobSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/run", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_start.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_start.go new file mode 100644 index 000000000000..6eeb4574e82e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_start.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// Start ... +func (c WebAppsClient) Start(ctx context.Context, id commonids.AppServiceId) (result StartOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/start", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjob.go new file mode 100644 index 000000000000..e3a68b92d356 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjob.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartContinuousWebJobOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// StartContinuousWebJob ... +func (c WebAppsClient) StartContinuousWebJob(ctx context.Context, id ContinuousWebJobId) (result StartContinuousWebJobOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/start", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjobslot.go new file mode 100644 index 000000000000..25b7624a51ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjobslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartContinuousWebJobSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// StartContinuousWebJobSlot ... +func (c WebAppsClient) StartContinuousWebJobSlot(ctx context.Context, id SlotContinuousWebJobId) (result StartContinuousWebJobSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/start", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktrace.go new file mode 100644 index 000000000000..3ff7b83c6ad9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktrace.go @@ -0,0 +1,107 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartNetworkTraceOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type StartNetworkTraceOperationOptions struct { + DurationInSeconds *int64 + MaxFrameLength *int64 + SasUrl *string +} + +func DefaultStartNetworkTraceOperationOptions() StartNetworkTraceOperationOptions { + return StartNetworkTraceOperationOptions{} +} + +func (o StartNetworkTraceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o StartNetworkTraceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o StartNetworkTraceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.DurationInSeconds != nil { + out.Append("durationInSeconds", fmt.Sprintf("%v", *o.DurationInSeconds)) + } + if o.MaxFrameLength != nil { + out.Append("maxFrameLength", fmt.Sprintf("%v", *o.MaxFrameLength)) + } + if o.SasUrl != nil { + out.Append("sasUrl", fmt.Sprintf("%v", *o.SasUrl)) + } + return &out +} + +// StartNetworkTrace ... +func (c WebAppsClient) StartNetworkTrace(ctx context.Context, id commonids.AppServiceId, options StartNetworkTraceOperationOptions) (result StartNetworkTraceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StartNetworkTraceThenPoll performs StartNetworkTrace then polls until it's completed +func (c WebAppsClient) StartNetworkTraceThenPoll(ctx context.Context, id commonids.AppServiceId, options StartNetworkTraceOperationOptions) error { + result, err := c.StartNetworkTrace(ctx, id, options) + if err != nil { + return fmt.Errorf("performing StartNetworkTrace: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after StartNetworkTrace: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktraceslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktraceslot.go new file mode 100644 index 000000000000..9362fa11abcb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktraceslot.go @@ -0,0 +1,106 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartNetworkTraceSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type StartNetworkTraceSlotOperationOptions struct { + DurationInSeconds *int64 + MaxFrameLength *int64 + SasUrl *string +} + +func DefaultStartNetworkTraceSlotOperationOptions() StartNetworkTraceSlotOperationOptions { + return StartNetworkTraceSlotOperationOptions{} +} + +func (o StartNetworkTraceSlotOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o StartNetworkTraceSlotOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o StartNetworkTraceSlotOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.DurationInSeconds != nil { + out.Append("durationInSeconds", fmt.Sprintf("%v", *o.DurationInSeconds)) + } + if o.MaxFrameLength != nil { + out.Append("maxFrameLength", fmt.Sprintf("%v", *o.MaxFrameLength)) + } + if o.SasUrl != nil { + out.Append("sasUrl", fmt.Sprintf("%v", *o.SasUrl)) + } + return &out +} + +// StartNetworkTraceSlot ... +func (c WebAppsClient) StartNetworkTraceSlot(ctx context.Context, id SlotId, options StartNetworkTraceSlotOperationOptions) (result StartNetworkTraceSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StartNetworkTraceSlotThenPoll performs StartNetworkTraceSlot then polls until it's completed +func (c WebAppsClient) StartNetworkTraceSlotThenPoll(ctx context.Context, id SlotId, options StartNetworkTraceSlotOperationOptions) error { + result, err := c.StartNetworkTraceSlot(ctx, id, options) + if err != nil { + return fmt.Errorf("performing StartNetworkTraceSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after StartNetworkTraceSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startslot.go new file mode 100644 index 000000000000..e1ef6c58413c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// StartSlot ... +func (c WebAppsClient) StartSlot(ctx context.Context, id SlotId) (result StartSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/start", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktrace.go new file mode 100644 index 000000000000..63f538d66870 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktrace.go @@ -0,0 +1,89 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartWebSiteNetworkTraceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +type StartWebSiteNetworkTraceOperationOptions struct { + DurationInSeconds *int64 + MaxFrameLength *int64 + SasUrl *string +} + +func DefaultStartWebSiteNetworkTraceOperationOptions() StartWebSiteNetworkTraceOperationOptions { + return StartWebSiteNetworkTraceOperationOptions{} +} + +func (o StartWebSiteNetworkTraceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o StartWebSiteNetworkTraceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o StartWebSiteNetworkTraceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.DurationInSeconds != nil { + out.Append("durationInSeconds", fmt.Sprintf("%v", *o.DurationInSeconds)) + } + if o.MaxFrameLength != nil { + out.Append("maxFrameLength", fmt.Sprintf("%v", *o.MaxFrameLength)) + } + if o.SasUrl != nil { + out.Append("sasUrl", fmt.Sprintf("%v", *o.SasUrl)) + } + return &out +} + +// StartWebSiteNetworkTrace ... +func (c WebAppsClient) StartWebSiteNetworkTrace(ctx context.Context, id commonids.AppServiceId, options StartWebSiteNetworkTraceOperationOptions) (result StartWebSiteNetworkTraceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperation.go new file mode 100644 index 000000000000..a6edf7415e6b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperation.go @@ -0,0 +1,107 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartWebSiteNetworkTraceOperationOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type StartWebSiteNetworkTraceOperationOperationOptions struct { + DurationInSeconds *int64 + MaxFrameLength *int64 + SasUrl *string +} + +func DefaultStartWebSiteNetworkTraceOperationOperationOptions() StartWebSiteNetworkTraceOperationOperationOptions { + return StartWebSiteNetworkTraceOperationOperationOptions{} +} + +func (o StartWebSiteNetworkTraceOperationOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o StartWebSiteNetworkTraceOperationOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o StartWebSiteNetworkTraceOperationOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.DurationInSeconds != nil { + out.Append("durationInSeconds", fmt.Sprintf("%v", *o.DurationInSeconds)) + } + if o.MaxFrameLength != nil { + out.Append("maxFrameLength", fmt.Sprintf("%v", *o.MaxFrameLength)) + } + if o.SasUrl != nil { + out.Append("sasUrl", fmt.Sprintf("%v", *o.SasUrl)) + } + return &out +} + +// StartWebSiteNetworkTraceOperation ... +func (c WebAppsClient) StartWebSiteNetworkTraceOperation(ctx context.Context, id commonids.AppServiceId, options StartWebSiteNetworkTraceOperationOperationOptions) (result StartWebSiteNetworkTraceOperationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StartWebSiteNetworkTraceOperationThenPoll performs StartWebSiteNetworkTraceOperation then polls until it's completed +func (c WebAppsClient) StartWebSiteNetworkTraceOperationThenPoll(ctx context.Context, id commonids.AppServiceId, options StartWebSiteNetworkTraceOperationOperationOptions) error { + result, err := c.StartWebSiteNetworkTraceOperation(ctx, id, options) + if err != nil { + return fmt.Errorf("performing StartWebSiteNetworkTraceOperation: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after StartWebSiteNetworkTraceOperation: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperationslot.go new file mode 100644 index 000000000000..9003bbd7dbed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperationslot.go @@ -0,0 +1,106 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartWebSiteNetworkTraceOperationSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type StartWebSiteNetworkTraceOperationSlotOperationOptions struct { + DurationInSeconds *int64 + MaxFrameLength *int64 + SasUrl *string +} + +func DefaultStartWebSiteNetworkTraceOperationSlotOperationOptions() StartWebSiteNetworkTraceOperationSlotOperationOptions { + return StartWebSiteNetworkTraceOperationSlotOperationOptions{} +} + +func (o StartWebSiteNetworkTraceOperationSlotOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o StartWebSiteNetworkTraceOperationSlotOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o StartWebSiteNetworkTraceOperationSlotOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.DurationInSeconds != nil { + out.Append("durationInSeconds", fmt.Sprintf("%v", *o.DurationInSeconds)) + } + if o.MaxFrameLength != nil { + out.Append("maxFrameLength", fmt.Sprintf("%v", *o.MaxFrameLength)) + } + if o.SasUrl != nil { + out.Append("sasUrl", fmt.Sprintf("%v", *o.SasUrl)) + } + return &out +} + +// StartWebSiteNetworkTraceOperationSlot ... +func (c WebAppsClient) StartWebSiteNetworkTraceOperationSlot(ctx context.Context, id SlotId, options StartWebSiteNetworkTraceOperationSlotOperationOptions) (result StartWebSiteNetworkTraceOperationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StartWebSiteNetworkTraceOperationSlotThenPoll performs StartWebSiteNetworkTraceOperationSlot then polls until it's completed +func (c WebAppsClient) StartWebSiteNetworkTraceOperationSlotThenPoll(ctx context.Context, id SlotId, options StartWebSiteNetworkTraceOperationSlotOperationOptions) error { + result, err := c.StartWebSiteNetworkTraceOperationSlot(ctx, id, options) + if err != nil { + return fmt.Errorf("performing StartWebSiteNetworkTraceOperationSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after StartWebSiteNetworkTraceOperationSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceslot.go new file mode 100644 index 000000000000..d6a5fe5d83e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceslot.go @@ -0,0 +1,88 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartWebSiteNetworkTraceSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +type StartWebSiteNetworkTraceSlotOperationOptions struct { + DurationInSeconds *int64 + MaxFrameLength *int64 + SasUrl *string +} + +func DefaultStartWebSiteNetworkTraceSlotOperationOptions() StartWebSiteNetworkTraceSlotOperationOptions { + return StartWebSiteNetworkTraceSlotOperationOptions{} +} + +func (o StartWebSiteNetworkTraceSlotOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o StartWebSiteNetworkTraceSlotOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o StartWebSiteNetworkTraceSlotOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.DurationInSeconds != nil { + out.Append("durationInSeconds", fmt.Sprintf("%v", *o.DurationInSeconds)) + } + if o.MaxFrameLength != nil { + out.Append("maxFrameLength", fmt.Sprintf("%v", *o.MaxFrameLength)) + } + if o.SasUrl != nil { + out.Append("sasUrl", fmt.Sprintf("%v", *o.SasUrl)) + } + return &out +} + +// StartWebSiteNetworkTraceSlot ... +func (c WebAppsClient) StartWebSiteNetworkTraceSlot(ctx context.Context, id SlotId, options StartWebSiteNetworkTraceSlotOperationOptions) (result StartWebSiteNetworkTraceSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stop.go new file mode 100644 index 000000000000..7f3caf53d9d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stop.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// Stop ... +func (c WebAppsClient) Stop(ctx context.Context, id commonids.AppServiceId) (result StopOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjob.go new file mode 100644 index 000000000000..66fcde1e73b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjob.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopContinuousWebJobOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// StopContinuousWebJob ... +func (c WebAppsClient) StopContinuousWebJob(ctx context.Context, id ContinuousWebJobId) (result StopContinuousWebJobOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjobslot.go new file mode 100644 index 000000000000..6195a3125e24 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjobslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopContinuousWebJobSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// StopContinuousWebJobSlot ... +func (c WebAppsClient) StopContinuousWebJobSlot(ctx context.Context, id SlotContinuousWebJobId) (result StopContinuousWebJobSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktrace.go new file mode 100644 index 000000000000..098cdf976714 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktrace.go @@ -0,0 +1,49 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopNetworkTraceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// StopNetworkTrace ... +func (c WebAppsClient) StopNetworkTrace(ctx context.Context, id commonids.AppServiceId) (result StopNetworkTraceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stopNetworkTrace", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktraceslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktraceslot.go new file mode 100644 index 000000000000..08644e40fc9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktraceslot.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopNetworkTraceSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// StopNetworkTraceSlot ... +func (c WebAppsClient) StopNetworkTraceSlot(ctx context.Context, id SlotId) (result StopNetworkTraceSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stopNetworkTrace", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopslot.go new file mode 100644 index 000000000000..cd89d662a267 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// StopSlot ... +func (c WebAppsClient) StopSlot(ctx context.Context, id SlotId) (result StopSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktrace.go new file mode 100644 index 000000000000..7c3fcd820e84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktrace.go @@ -0,0 +1,49 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopWebSiteNetworkTraceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// StopWebSiteNetworkTrace ... +func (c WebAppsClient) StopWebSiteNetworkTrace(ctx context.Context, id commonids.AppServiceId) (result StopWebSiteNetworkTraceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/networkTrace/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktraceslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktraceslot.go new file mode 100644 index 000000000000..4ac3a77814ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktraceslot.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopWebSiteNetworkTraceSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// StopWebSiteNetworkTraceSlot ... +func (c WebAppsClient) StopWebSiteNetworkTraceSlot(ctx context.Context, id SlotId) (result StopWebSiteNetworkTraceSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/networkTrace/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotslot.go new file mode 100644 index 000000000000..4adb4148b949 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotslot.go @@ -0,0 +1,74 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SwapSlotSlotOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// SwapSlotSlot ... +func (c WebAppsClient) SwapSlotSlot(ctx context.Context, id SlotId, input CsmSlotEntity) (result SwapSlotSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/slotsswap", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SwapSlotSlotThenPoll performs SwapSlotSlot then polls until it's completed +func (c WebAppsClient) SwapSlotSlotThenPoll(ctx context.Context, id SlotId, input CsmSlotEntity) error { + result, err := c.SwapSlotSlot(ctx, id, input) + if err != nil { + return fmt.Errorf("performing SwapSlotSlot: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after SwapSlotSlot: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotwithproduction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotwithproduction.go new file mode 100644 index 000000000000..924b47593e5f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotwithproduction.go @@ -0,0 +1,75 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SwapSlotWithProductionOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// SwapSlotWithProduction ... +func (c WebAppsClient) SwapSlotWithProduction(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity) (result SwapSlotWithProductionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/slotsswap", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SwapSlotWithProductionThenPoll performs SwapSlotWithProduction then polls until it's completed +func (c WebAppsClient) SwapSlotWithProductionThenPoll(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity) error { + result, err := c.SwapSlotWithProduction(ctx, id, input) + if err != nil { + return fmt.Errorf("performing SwapSlotWithProduction: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after SwapSlotWithProduction: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctions.go new file mode 100644 index 000000000000..f9e53a89d27c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctions.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SyncFunctionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// SyncFunctions ... +func (c WebAppsClient) SyncFunctions(ctx context.Context, id commonids.AppServiceId) (result SyncFunctionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/host/default/sync", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctionsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctionsslot.go new file mode 100644 index 000000000000..377735978141 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctionsslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SyncFunctionsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// SyncFunctionsSlot ... +func (c WebAppsClient) SyncFunctionsSlot(ctx context.Context, id SlotId) (result SyncFunctionsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/host/default/sync", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggers.go new file mode 100644 index 000000000000..1370fe7c5d30 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggers.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SyncFunctionTriggersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// SyncFunctionTriggers ... +func (c WebAppsClient) SyncFunctionTriggers(ctx context.Context, id commonids.AppServiceId) (result SyncFunctionTriggersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/syncfunctiontriggers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggersslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggersslot.go new file mode 100644 index 000000000000..f3cef3f11df0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggersslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SyncFunctionTriggersSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// SyncFunctionTriggersSlot ... +func (c WebAppsClient) SyncFunctionTriggersSlot(ctx context.Context, id SlotId) (result SyncFunctionTriggersSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/syncfunctiontriggers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepository.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepository.go new file mode 100644 index 000000000000..d798d4f57932 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepository.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SyncRepositoryOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// SyncRepository ... +func (c WebAppsClient) SyncRepository(ctx context.Context, id commonids.AppServiceId) (result SyncRepositoryOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/sync", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepositoryslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepositoryslot.go new file mode 100644 index 000000000000..81b7009d872c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepositoryslot.go @@ -0,0 +1,47 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SyncRepositorySlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// SyncRepositorySlot ... +func (c WebAppsClient) SyncRepositorySlot(ctx context.Context, id SlotId) (result SyncRepositorySlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/sync", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_update.go new file mode 100644 index 000000000000..dbd659443763 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_update.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Site +} + +// Update ... +func (c WebAppsClient) Update(ctx context.Context, id commonids.AppServiceId, input SitePatchResource) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettings.go new file mode 100644 index 000000000000..f787059e781e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettings.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateApplicationSettingsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StringDictionary +} + +// UpdateApplicationSettings ... +func (c WebAppsClient) UpdateApplicationSettings(ctx context.Context, id commonids.AppServiceId, input StringDictionary) (result UpdateApplicationSettingsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/appSettings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettingsslot.go new file mode 100644 index 000000000000..fd7f249814dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettingsslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateApplicationSettingsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StringDictionary +} + +// UpdateApplicationSettingsSlot ... +func (c WebAppsClient) UpdateApplicationSettingsSlot(ctx context.Context, id SlotId, input StringDictionary) (result UpdateApplicationSettingsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/appSettings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettings.go new file mode 100644 index 000000000000..d00c1951ba74 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettings.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateAuthSettingsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteAuthSettings +} + +// UpdateAuthSettings ... +func (c WebAppsClient) UpdateAuthSettings(ctx context.Context, id commonids.AppServiceId, input SiteAuthSettings) (result UpdateAuthSettingsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/authsettings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsslot.go new file mode 100644 index 000000000000..1b452b2e16a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateAuthSettingsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteAuthSettings +} + +// UpdateAuthSettingsSlot ... +func (c WebAppsClient) UpdateAuthSettingsSlot(ctx context.Context, id SlotId, input SiteAuthSettings) (result UpdateAuthSettingsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/authsettings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2.go new file mode 100644 index 000000000000..9135f356ffaa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateAuthSettingsV2OperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteAuthSettingsV2 +} + +// UpdateAuthSettingsV2 ... +func (c WebAppsClient) UpdateAuthSettingsV2(ctx context.Context, id commonids.AppServiceId, input SiteAuthSettingsV2) (result UpdateAuthSettingsV2OperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/authsettingsV2", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2slot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2slot.go new file mode 100644 index 000000000000..57b1357b3c85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2slot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateAuthSettingsV2SlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteAuthSettingsV2 +} + +// UpdateAuthSettingsV2Slot ... +func (c WebAppsClient) UpdateAuthSettingsV2Slot(ctx context.Context, id SlotId, input SiteAuthSettingsV2) (result UpdateAuthSettingsV2SlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/authsettingsV2", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccounts.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccounts.go new file mode 100644 index 000000000000..c8f27c11a89a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccounts.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateAzureStorageAccountsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AzureStoragePropertyDictionaryResource +} + +// UpdateAzureStorageAccounts ... +func (c WebAppsClient) UpdateAzureStorageAccounts(ctx context.Context, id commonids.AppServiceId, input AzureStoragePropertyDictionaryResource) (result UpdateAzureStorageAccountsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/azurestorageaccounts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccountsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccountsslot.go new file mode 100644 index 000000000000..7b43cc9b6add --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccountsslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateAzureStorageAccountsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AzureStoragePropertyDictionaryResource +} + +// UpdateAzureStorageAccountsSlot ... +func (c WebAppsClient) UpdateAzureStorageAccountsSlot(ctx context.Context, id SlotId, input AzureStoragePropertyDictionaryResource) (result UpdateAzureStorageAccountsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/azurestorageaccounts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfiguration.go new file mode 100644 index 000000000000..360306e8aaea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfiguration.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateBackupConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupRequest +} + +// UpdateBackupConfiguration ... +func (c WebAppsClient) UpdateBackupConfiguration(ctx context.Context, id commonids.AppServiceId, input BackupRequest) (result UpdateBackupConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/backup", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfigurationslot.go new file mode 100644 index 000000000000..23456c068a98 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfigurationslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateBackupConfigurationSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupRequest +} + +// UpdateBackupConfigurationSlot ... +func (c WebAppsClient) UpdateBackupConfigurationSlot(ctx context.Context, id SlotId, input BackupRequest) (result UpdateBackupConfigurationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/backup", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfiguration.go new file mode 100644 index 000000000000..3071581ada94 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfiguration.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteConfigResource +} + +// UpdateConfiguration ... +func (c WebAppsClient) UpdateConfiguration(ctx context.Context, id commonids.AppServiceId, input SiteConfigResource) (result UpdateConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: fmt.Sprintf("%s/config/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfigurationslot.go new file mode 100644 index 000000000000..21670c018bac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfigurationslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateConfigurationSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteConfigResource +} + +// UpdateConfigurationSlot ... +func (c WebAppsClient) UpdateConfigurationSlot(ctx context.Context, id SlotId, input SiteConfigResource) (result UpdateConfigurationSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: fmt.Sprintf("%s/config/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstrings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstrings.go new file mode 100644 index 000000000000..41e237b65cd8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstrings.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateConnectionStringsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionStringDictionary +} + +// UpdateConnectionStrings ... +func (c WebAppsClient) UpdateConnectionStrings(ctx context.Context, id commonids.AppServiceId, input ConnectionStringDictionary) (result UpdateConnectionStringsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/connectionStrings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstringsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstringsslot.go new file mode 100644 index 000000000000..083ad0d90f45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstringsslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateConnectionStringsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionStringDictionary +} + +// UpdateConnectionStringsSlot ... +func (c WebAppsClient) UpdateConnectionStringsSlot(ctx context.Context, id SlotId, input ConnectionStringDictionary) (result UpdateConnectionStringsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/connectionStrings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfig.go new file mode 100644 index 000000000000..de51165f8ba6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfig.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateDiagnosticLogsConfigOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteLogsConfig +} + +// UpdateDiagnosticLogsConfig ... +func (c WebAppsClient) UpdateDiagnosticLogsConfig(ctx context.Context, id commonids.AppServiceId, input SiteLogsConfig) (result UpdateDiagnosticLogsConfigOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/logs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfigslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfigslot.go new file mode 100644 index 000000000000..8835f4cbfdf4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfigslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateDiagnosticLogsConfigSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteLogsConfig +} + +// UpdateDiagnosticLogsConfigSlot ... +func (c WebAppsClient) UpdateDiagnosticLogsConfigSlot(ctx context.Context, id SlotId, input SiteLogsConfig) (result UpdateDiagnosticLogsConfigSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/logs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifier.go new file mode 100644 index 000000000000..8a8ff3962201 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifier.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateDomainOwnershipIdentifierOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Identifier +} + +// UpdateDomainOwnershipIdentifier ... +func (c WebAppsClient) UpdateDomainOwnershipIdentifier(ctx context.Context, id DomainOwnershipIdentifierId, input Identifier) (result UpdateDomainOwnershipIdentifierOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifierslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifierslot.go new file mode 100644 index 000000000000..abd337f6a0f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifierslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateDomainOwnershipIdentifierSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Identifier +} + +// UpdateDomainOwnershipIdentifierSlot ... +func (c WebAppsClient) UpdateDomainOwnershipIdentifierSlot(ctx context.Context, id SlotDomainOwnershipIdentifierId, input Identifier) (result UpdateDomainOwnershipIdentifierSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowed.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowed.go new file mode 100644 index 000000000000..dc7a94fe3f98 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowed.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateFtpAllowedOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CsmPublishingCredentialsPoliciesEntity +} + +// UpdateFtpAllowed ... +func (c WebAppsClient) UpdateFtpAllowed(ctx context.Context, id commonids.AppServiceId, input CsmPublishingCredentialsPoliciesEntity) (result UpdateFtpAllowedOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies/ftp", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowedslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowedslot.go new file mode 100644 index 000000000000..6af7f1c916e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowedslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateFtpAllowedSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CsmPublishingCredentialsPoliciesEntity +} + +// UpdateFtpAllowedSlot ... +func (c WebAppsClient) UpdateFtpAllowedSlot(ctx context.Context, id SlotId, input CsmPublishingCredentialsPoliciesEntity) (result UpdateFtpAllowedSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies/ftp", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnection.go new file mode 100644 index 000000000000..25dacc285c2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnection.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateHybridConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridConnection +} + +// UpdateHybridConnection ... +func (c WebAppsClient) UpdateHybridConnection(ctx context.Context, id RelayId, input HybridConnection) (result UpdateHybridConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnectionslot.go new file mode 100644 index 000000000000..c6f394e1e565 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnectionslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateHybridConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridConnection +} + +// UpdateHybridConnectionSlot ... +func (c WebAppsClient) UpdateHybridConnectionSlot(ctx context.Context, id SlotHybridConnectionNamespaceRelayId, input HybridConnection) (result UpdateHybridConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadata.go new file mode 100644 index 000000000000..dd14d214331f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadata.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateMetadataOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StringDictionary +} + +// UpdateMetadata ... +func (c WebAppsClient) UpdateMetadata(ctx context.Context, id commonids.AppServiceId, input StringDictionary) (result UpdateMetadataOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/metadata", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadataslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadataslot.go new file mode 100644 index 000000000000..37e85c6dac9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadataslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateMetadataSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StringDictionary +} + +// UpdateMetadataSlot ... +func (c WebAppsClient) UpdateMetadataSlot(ctx context.Context, id SlotId, input StringDictionary) (result UpdateMetadataSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/metadata", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddon.go new file mode 100644 index 000000000000..cc7cd5e6cae2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddon.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdatePremierAddOnOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PremierAddOn +} + +// UpdatePremierAddOn ... +func (c WebAppsClient) UpdatePremierAddOn(ctx context.Context, id PremierAddonId, input PremierAddOnPatchResource) (result UpdatePremierAddOnOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddonslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddonslot.go new file mode 100644 index 000000000000..bd191cfc48ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddonslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdatePremierAddOnSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PremierAddOn +} + +// UpdatePremierAddOnSlot ... +func (c WebAppsClient) UpdatePremierAddOnSlot(ctx context.Context, id SlotPremierAddonId, input PremierAddOnPatchResource) (result UpdatePremierAddOnSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnection.go new file mode 100644 index 000000000000..b9428363eb7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnection.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateRelayServiceConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RelayServiceConnectionEntity +} + +// UpdateRelayServiceConnection ... +func (c WebAppsClient) UpdateRelayServiceConnection(ctx context.Context, id HybridConnectionId, input RelayServiceConnectionEntity) (result UpdateRelayServiceConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnectionslot.go new file mode 100644 index 000000000000..342f82cc8247 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnectionslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateRelayServiceConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RelayServiceConnectionEntity +} + +// UpdateRelayServiceConnectionSlot ... +func (c WebAppsClient) UpdateRelayServiceConnectionSlot(ctx context.Context, id SlotHybridConnectionId, input RelayServiceConnectionEntity) (result UpdateRelayServiceConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowed.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowed.go new file mode 100644 index 000000000000..f51bc4ec02f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowed.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateScmAllowedOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CsmPublishingCredentialsPoliciesEntity +} + +// UpdateScmAllowed ... +func (c WebAppsClient) UpdateScmAllowed(ctx context.Context, id commonids.AppServiceId, input CsmPublishingCredentialsPoliciesEntity) (result UpdateScmAllowedOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies/scm", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowedslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowedslot.go new file mode 100644 index 000000000000..5b49435a6503 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowedslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateScmAllowedSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CsmPublishingCredentialsPoliciesEntity +} + +// UpdateScmAllowedSlot ... +func (c WebAppsClient) UpdateScmAllowedSlot(ctx context.Context, id SlotId, input CsmPublishingCredentialsPoliciesEntity) (result UpdateScmAllowedSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies/scm", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettings.go new file mode 100644 index 000000000000..281722bf2a87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettings.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateSitePushSettingsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PushSettings +} + +// UpdateSitePushSettings ... +func (c WebAppsClient) UpdateSitePushSettings(ctx context.Context, id commonids.AppServiceId, input PushSettings) (result UpdateSitePushSettingsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/pushsettings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettingsslot.go new file mode 100644 index 000000000000..51f072f1e16e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettingsslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateSitePushSettingsSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PushSettings +} + +// UpdateSitePushSettingsSlot ... +func (c WebAppsClient) UpdateSitePushSettingsSlot(ctx context.Context, id SlotId, input PushSettings) (result UpdateSitePushSettingsSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/pushsettings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslot.go new file mode 100644 index 000000000000..886619914655 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Site +} + +// UpdateSlot ... +func (c WebAppsClient) UpdateSlot(ctx context.Context, id SlotId, input SitePatchResource) (result UpdateSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslotconfigurationnames.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslotconfigurationnames.go new file mode 100644 index 000000000000..5ca0ca0d0739 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslotconfigurationnames.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateSlotConfigurationNamesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SlotConfigNamesResource +} + +// UpdateSlotConfigurationNames ... +func (c WebAppsClient) UpdateSlotConfigurationNames(ctx context.Context, id commonids.AppServiceId, input SlotConfigNamesResource) (result UpdateSlotConfigurationNamesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/config/slotConfigNames", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrol.go new file mode 100644 index 000000000000..b83d1b887f2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrol.go @@ -0,0 +1,59 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateSourceControlOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteSourceControl +} + +// UpdateSourceControl ... +func (c WebAppsClient) UpdateSourceControl(ctx context.Context, id commonids.AppServiceId, input SiteSourceControl) (result UpdateSourceControlOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrolslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrolslot.go new file mode 100644 index 000000000000..bf6c8d203f26 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrolslot.go @@ -0,0 +1,58 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateSourceControlSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SiteSourceControl +} + +// UpdateSourceControlSlot ... +func (c WebAppsClient) UpdateSourceControlSlot(ctx context.Context, id SlotId, input SiteSourceControl) (result UpdateSourceControlSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheck.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheck.go new file mode 100644 index 000000000000..1aa5550a65f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheck.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateSwiftVirtualNetworkConnectionWithCheckOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SwiftVirtualNetwork +} + +// UpdateSwiftVirtualNetworkConnectionWithCheck ... +func (c WebAppsClient) UpdateSwiftVirtualNetworkConnectionWithCheck(ctx context.Context, id commonids.AppServiceId, input SwiftVirtualNetwork) (result UpdateSwiftVirtualNetworkConnectionWithCheckOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: fmt.Sprintf("%s/networkConfig/virtualNetwork", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheckslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheckslot.go new file mode 100644 index 000000000000..4d01cdcecebc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheckslot.go @@ -0,0 +1,56 @@ +package webapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateSwiftVirtualNetworkConnectionWithCheckSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SwiftVirtualNetwork +} + +// UpdateSwiftVirtualNetworkConnectionWithCheckSlot ... +func (c WebAppsClient) UpdateSwiftVirtualNetworkConnectionWithCheckSlot(ctx context.Context, id SlotId, input SwiftVirtualNetwork) (result UpdateSwiftVirtualNetworkConnectionWithCheckSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: fmt.Sprintf("%s/networkConfig/virtualNetwork", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnection.go new file mode 100644 index 000000000000..24214b278448 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnection.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateVnetConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetInfoResource +} + +// UpdateVnetConnection ... +func (c WebAppsClient) UpdateVnetConnection(ctx context.Context, id VirtualNetworkConnectionId, input VnetInfoResource) (result UpdateVnetConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongateway.go new file mode 100644 index 000000000000..e6f300d55177 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongateway.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateVnetConnectionGatewayOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetGateway +} + +// UpdateVnetConnectionGateway ... +func (c WebAppsClient) UpdateVnetConnectionGateway(ctx context.Context, id GatewayId, input VnetGateway) (result UpdateVnetConnectionGatewayOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongatewayslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongatewayslot.go new file mode 100644 index 000000000000..1f6c4787a311 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongatewayslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateVnetConnectionGatewaySlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetGateway +} + +// UpdateVnetConnectionGatewaySlot ... +func (c WebAppsClient) UpdateVnetConnectionGatewaySlot(ctx context.Context, id SlotVirtualNetworkConnectionGatewayId, input VnetGateway) (result UpdateVnetConnectionGatewaySlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectionslot.go new file mode 100644 index 000000000000..94364d465412 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectionslot.go @@ -0,0 +1,55 @@ +package webapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateVnetConnectionSlotOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetInfoResource +} + +// UpdateVnetConnectionSlot ... +func (c WebAppsClient) UpdateVnetConnectionSlot(ctx context.Context, id SlotVirtualNetworkConnectionId, input VnetInfoResource) (result UpdateVnetConnectionSlotOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedaudiencesvalidation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedaudiencesvalidation.go new file mode 100644 index 000000000000..da259d9fd385 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedaudiencesvalidation.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AllowedAudiencesValidation struct { + AllowedAudiences *[]string `json:"allowedAudiences,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedprincipals.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedprincipals.go new file mode 100644 index 000000000000..b17b5652dd2c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedprincipals.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AllowedPrincipals struct { + Groups *[]string `json:"groups,omitempty"` + Identities *[]string `json:"identities,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apidefinitioninfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apidefinitioninfo.go new file mode 100644 index 000000000000..152027e15e2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apidefinitioninfo.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApiDefinitionInfo struct { + Url *string `json:"url,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreference.go new file mode 100644 index 000000000000..62f12266d3ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreference.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApiKVReference struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApiKVReferenceProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreferenceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreferenceproperties.go new file mode 100644 index 000000000000..58a0f5398cc7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreferenceproperties.go @@ -0,0 +1,20 @@ +package webapps + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApiKVReferenceProperties struct { + ActiveVersion *string `json:"activeVersion,omitempty"` + Details *string `json:"details,omitempty"` + IdentityType *identity.SystemAndUserAssignedMap `json:"identityType,omitempty"` + Reference *string `json:"reference,omitempty"` + SecretName *string `json:"secretName,omitempty"` + SecretVersion *string `json:"secretVersion,omitempty"` + Source *ConfigReferenceSource `json:"source,omitempty"` + Status *ResolveStatus `json:"status,omitempty"` + VaultName *string `json:"vaultName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apimanagementconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apimanagementconfig.go new file mode 100644 index 000000000000..9acd3c842789 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apimanagementconfig.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApiManagementConfig struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apple.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apple.go new file mode 100644 index 000000000000..69e9769061ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apple.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Apple struct { + Enabled *bool `json:"enabled,omitempty"` + Login *LoginScopes `json:"login,omitempty"` + Registration *AppleRegistration `json:"registration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appleregistration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appleregistration.go new file mode 100644 index 000000000000..304a6b2b50fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appleregistration.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppleRegistration struct { + ClientId *string `json:"clientId,omitempty"` + ClientSecretSettingName *string `json:"clientSecretSettingName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_applicationlogsconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_applicationlogsconfig.go new file mode 100644 index 000000000000..9734bceb1942 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_applicationlogsconfig.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationLogsConfig struct { + AzureBlobStorage *AzureBlobStorageApplicationLogsConfig `json:"azureBlobStorage,omitempty"` + AzureTableStorage *AzureTableStorageApplicationLogsConfig `json:"azureTableStorage,omitempty"` + FileSystem *FileSystemApplicationLogsConfig `json:"fileSystem,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appregistration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appregistration.go new file mode 100644 index 000000000000..658b68d4c6e5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appregistration.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppRegistration struct { + AppId *string `json:"appId,omitempty"` + AppSecretSettingName *string `json:"appSecretSettingName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_armidwrapper.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_armidwrapper.go new file mode 100644 index 000000000000..f73fbd64bb24 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_armidwrapper.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ArmIdWrapper struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_authplatform.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_authplatform.go new file mode 100644 index 000000000000..c1222a45d4e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_authplatform.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AuthPlatform struct { + ConfigFilePath *string `json:"configFilePath,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + RuntimeVersion *string `json:"runtimeVersion,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealactions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealactions.go new file mode 100644 index 000000000000..c33d955c76ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealactions.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoHealActions struct { + ActionType *AutoHealActionType `json:"actionType,omitempty"` + CustomAction *AutoHealCustomAction `json:"customAction,omitempty"` + MinProcessExecutionTime *string `json:"minProcessExecutionTime,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealcustomaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealcustomaction.go new file mode 100644 index 000000000000..49bfb9eb35b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealcustomaction.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoHealCustomAction struct { + Exe *string `json:"exe,omitempty"` + Parameters *string `json:"parameters,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealrules.go new file mode 100644 index 000000000000..b96bc1ad965b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealrules.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoHealRules struct { + Actions *AutoHealActions `json:"actions,omitempty"` + Triggers *AutoHealTriggers `json:"triggers,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealtriggers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealtriggers.go new file mode 100644 index 000000000000..932862aab964 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealtriggers.go @@ -0,0 +1,13 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoHealTriggers struct { + PrivateBytesInKB *int64 `json:"privateBytesInKB,omitempty"` + Requests *RequestsBasedTrigger `json:"requests,omitempty"` + SlowRequests *SlowRequestsBasedTrigger `json:"slowRequests,omitempty"` + SlowRequestsWithPath *[]SlowRequestsBasedTrigger `json:"slowRequestsWithPath,omitempty"` + StatusCodes *[]StatusCodesBasedTrigger `json:"statusCodes,omitempty"` + StatusCodesRange *[]StatusCodesRangeBasedTrigger `json:"statusCodesRange,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectory.go new file mode 100644 index 000000000000..cda4c5114d27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectory.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureActiveDirectory struct { + Enabled *bool `json:"enabled,omitempty"` + IsAutoProvisioned *bool `json:"isAutoProvisioned,omitempty"` + Login *AzureActiveDirectoryLogin `json:"login,omitempty"` + Registration *AzureActiveDirectoryRegistration `json:"registration,omitempty"` + Validation *AzureActiveDirectoryValidation `json:"validation,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectorylogin.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectorylogin.go new file mode 100644 index 000000000000..590062cd0e1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectorylogin.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureActiveDirectoryLogin struct { + DisableWWWAuthenticate *bool `json:"disableWWWAuthenticate,omitempty"` + LoginParameters *[]string `json:"loginParameters,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryregistration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryregistration.go new file mode 100644 index 000000000000..8cb7ab16efb9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryregistration.go @@ -0,0 +1,13 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureActiveDirectoryRegistration struct { + ClientId *string `json:"clientId,omitempty"` + ClientSecretCertificateIssuer *string `json:"clientSecretCertificateIssuer,omitempty"` + ClientSecretCertificateSubjectAlternativeName *string `json:"clientSecretCertificateSubjectAlternativeName,omitempty"` + ClientSecretCertificateThumbprint *string `json:"clientSecretCertificateThumbprint,omitempty"` + ClientSecretSettingName *string `json:"clientSecretSettingName,omitempty"` + OpenIdIssuer *string `json:"openIdIssuer,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryvalidation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryvalidation.go new file mode 100644 index 000000000000..bd699d34a124 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryvalidation.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureActiveDirectoryValidation struct { + AllowedAudiences *[]string `json:"allowedAudiences,omitempty"` + DefaultAuthorizationPolicy *DefaultAuthorizationPolicy `json:"defaultAuthorizationPolicy,omitempty"` + JwtClaimChecks *JwtClaimChecks `json:"jwtClaimChecks,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstorageapplicationlogsconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstorageapplicationlogsconfig.go new file mode 100644 index 000000000000..d17b5f8ddb12 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstorageapplicationlogsconfig.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureBlobStorageApplicationLogsConfig struct { + Level *LogLevel `json:"level,omitempty"` + RetentionInDays *int64 `json:"retentionInDays,omitempty"` + SasUrl *string `json:"sasUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstoragehttplogsconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstoragehttplogsconfig.go new file mode 100644 index 000000000000..4bafbbd06e5f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstoragehttplogsconfig.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureBlobStorageHTTPLogsConfig struct { + Enabled *bool `json:"enabled,omitempty"` + RetentionInDays *int64 `json:"retentionInDays,omitempty"` + SasUrl *string `json:"sasUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebapps.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebapps.go new file mode 100644 index 000000000000..16d67230d5f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebapps.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureStaticWebApps struct { + Enabled *bool `json:"enabled,omitempty"` + Registration *AzureStaticWebAppsRegistration `json:"registration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebappsregistration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebappsregistration.go new file mode 100644 index 000000000000..bd78e405cfe2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebappsregistration.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureStaticWebAppsRegistration struct { + ClientId *string `json:"clientId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestorageinfovalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestorageinfovalue.go new file mode 100644 index 000000000000..6c3036bc8129 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestorageinfovalue.go @@ -0,0 +1,13 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureStorageInfoValue struct { + AccessKey *string `json:"accessKey,omitempty"` + AccountName *string `json:"accountName,omitempty"` + MountPath *string `json:"mountPath,omitempty"` + ShareName *string `json:"shareName,omitempty"` + State *AzureStorageState `json:"state,omitempty"` + Type *AzureStorageType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestoragepropertydictionaryresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestoragepropertydictionaryresource.go new file mode 100644 index 000000000000..6c7675fec3f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestoragepropertydictionaryresource.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureStoragePropertyDictionaryResource struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *map[string]AzureStorageInfoValue `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azuretablestorageapplicationlogsconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azuretablestorageapplicationlogsconfig.go new file mode 100644 index 000000000000..6a87bfc0dc90 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azuretablestorageapplicationlogsconfig.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureTableStorageApplicationLogsConfig struct { + Level *LogLevel `json:"level,omitempty"` + SasUrl string `json:"sasUrl"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitem.go new file mode 100644 index 000000000000..7bf578be3a9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitem.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupItem struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackupItemProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitemproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitemproperties.go new file mode 100644 index 000000000000..577e4eb1a23c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitemproperties.go @@ -0,0 +1,63 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupItemProperties struct { + BlobName *string `json:"blobName,omitempty"` + CorrelationId *string `json:"correlationId,omitempty"` + Created *string `json:"created,omitempty"` + Databases *[]DatabaseBackupSetting `json:"databases,omitempty"` + FinishedTimeStamp *string `json:"finishedTimeStamp,omitempty"` + Id *int64 `json:"id,omitempty"` + LastRestoreTimeStamp *string `json:"lastRestoreTimeStamp,omitempty"` + Log *string `json:"log,omitempty"` + Name *string `json:"name,omitempty"` + Scheduled *bool `json:"scheduled,omitempty"` + SizeInBytes *int64 `json:"sizeInBytes,omitempty"` + Status *BackupItemStatus `json:"status,omitempty"` + StorageAccountUrl *string `json:"storageAccountUrl,omitempty"` + WebsiteSizeInBytes *int64 `json:"websiteSizeInBytes,omitempty"` +} + +func (o *BackupItemProperties) GetCreatedAsTime() (*time.Time, error) { + if o.Created == nil { + return nil, nil + } + return dates.ParseAsFormat(o.Created, "2006-01-02T15:04:05Z07:00") +} + +func (o *BackupItemProperties) SetCreatedAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.Created = &formatted +} + +func (o *BackupItemProperties) GetFinishedTimeStampAsTime() (*time.Time, error) { + if o.FinishedTimeStamp == nil { + return nil, nil + } + return dates.ParseAsFormat(o.FinishedTimeStamp, "2006-01-02T15:04:05Z07:00") +} + +func (o *BackupItemProperties) SetFinishedTimeStampAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.FinishedTimeStamp = &formatted +} + +func (o *BackupItemProperties) GetLastRestoreTimeStampAsTime() (*time.Time, error) { + if o.LastRestoreTimeStamp == nil { + return nil, nil + } + return dates.ParseAsFormat(o.LastRestoreTimeStamp, "2006-01-02T15:04:05Z07:00") +} + +func (o *BackupItemProperties) SetLastRestoreTimeStampAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.LastRestoreTimeStamp = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequest.go new file mode 100644 index 000000000000..5247f8695cca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequest.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupRequest struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackupRequestProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequestproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequestproperties.go new file mode 100644 index 000000000000..8a3f52e475f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequestproperties.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupRequestProperties struct { + BackupName *string `json:"backupName,omitempty"` + BackupSchedule *BackupSchedule `json:"backupSchedule,omitempty"` + Databases *[]DatabaseBackupSetting `json:"databases,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + StorageAccountUrl string `json:"storageAccountUrl"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupschedule.go new file mode 100644 index 000000000000..8fb777f2e014 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupschedule.go @@ -0,0 +1,43 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupSchedule struct { + FrequencyInterval int64 `json:"frequencyInterval"` + FrequencyUnit FrequencyUnit `json:"frequencyUnit"` + KeepAtLeastOneBackup bool `json:"keepAtLeastOneBackup"` + LastExecutionTime *string `json:"lastExecutionTime,omitempty"` + RetentionPeriodInDays int64 `json:"retentionPeriodInDays"` + StartTime *string `json:"startTime,omitempty"` +} + +func (o *BackupSchedule) GetLastExecutionTimeAsTime() (*time.Time, error) { + if o.LastExecutionTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.LastExecutionTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *BackupSchedule) SetLastExecutionTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.LastExecutionTime = &formatted +} + +func (o *BackupSchedule) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *BackupSchedule) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_blobstoragetokenstore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_blobstoragetokenstore.go new file mode 100644 index 000000000000..002a55f2dadb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_blobstoragetokenstore.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BlobStorageTokenStore struct { + SasUrlSettingName *string `json:"sasUrlSettingName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_clientregistration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_clientregistration.go new file mode 100644 index 000000000000..a0983671ae08 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_clientregistration.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ClientRegistration struct { + ClientId *string `json:"clientId,omitempty"` + ClientSecretSettingName *string `json:"clientSecretSettingName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cloninginfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cloninginfo.go new file mode 100644 index 000000000000..0934bb9feccd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cloninginfo.go @@ -0,0 +1,18 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CloningInfo struct { + AppSettingsOverrides *map[string]string `json:"appSettingsOverrides,omitempty"` + CloneCustomHostNames *bool `json:"cloneCustomHostNames,omitempty"` + CloneSourceControl *bool `json:"cloneSourceControl,omitempty"` + ConfigureLoadBalancing *bool `json:"configureLoadBalancing,omitempty"` + CorrelationId *string `json:"correlationId,omitempty"` + HostingEnvironment *string `json:"hostingEnvironment,omitempty"` + Overwrite *bool `json:"overwrite,omitempty"` + SourceWebAppId string `json:"sourceWebAppId"` + SourceWebAppLocation *string `json:"sourceWebAppLocation,omitempty"` + TrafficManagerProfileId *string `json:"trafficManagerProfileId,omitempty"` + TrafficManagerProfileName *string `json:"trafficManagerProfileName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connectionstringdictionary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connectionstringdictionary.go new file mode 100644 index 000000000000..ce8d8b95927d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connectionstringdictionary.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionStringDictionary struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *map[string]ConnStringValueTypePair `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringinfo.go new file mode 100644 index 000000000000..a41ade2e9db0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringinfo.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnStringInfo struct { + ConnectionString *string `json:"connectionString,omitempty"` + Name *string `json:"name,omitempty"` + Type *ConnectionStringType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringvaluetypepair.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringvaluetypepair.go new file mode 100644 index 000000000000..a80c0c6b95e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringvaluetypepair.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnStringValueTypePair struct { + Type ConnectionStringType `json:"type"` + Value string `json:"value"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpustatistics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpustatistics.go new file mode 100644 index 000000000000..dd2b39645678 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpustatistics.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerCPUStatistics struct { + CpuUsage *ContainerCPUUsage `json:"cpuUsage,omitempty"` + OnlineCPUCount *int64 `json:"onlineCpuCount,omitempty"` + SystemCPUUsage *int64 `json:"systemCpuUsage,omitempty"` + ThrottlingData *ContainerThrottlingData `json:"throttlingData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpuusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpuusage.go new file mode 100644 index 000000000000..c7c0de7ff153 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpuusage.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerCPUUsage struct { + KernelModeUsage *int64 `json:"kernelModeUsage,omitempty"` + PerCPUUsage *[]int64 `json:"perCpuUsage,omitempty"` + TotalUsage *int64 `json:"totalUsage,omitempty"` + UserModeUsage *int64 `json:"userModeUsage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerinfo.go new file mode 100644 index 000000000000..e69d7c9d60a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerinfo.go @@ -0,0 +1,45 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerInfo struct { + CurrentCPUStats *ContainerCPUStatistics `json:"currentCpuStats,omitempty"` + CurrentTimeStamp *string `json:"currentTimeStamp,omitempty"` + Eth0 *ContainerNetworkInterfaceStatistics `json:"eth0,omitempty"` + Id *string `json:"id,omitempty"` + MemoryStats *ContainerMemoryStatistics `json:"memoryStats,omitempty"` + Name *string `json:"name,omitempty"` + PreviousCPUStats *ContainerCPUStatistics `json:"previousCpuStats,omitempty"` + PreviousTimeStamp *string `json:"previousTimeStamp,omitempty"` +} + +func (o *ContainerInfo) GetCurrentTimeStampAsTime() (*time.Time, error) { + if o.CurrentTimeStamp == nil { + return nil, nil + } + return dates.ParseAsFormat(o.CurrentTimeStamp, "2006-01-02T15:04:05Z07:00") +} + +func (o *ContainerInfo) SetCurrentTimeStampAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.CurrentTimeStamp = &formatted +} + +func (o *ContainerInfo) GetPreviousTimeStampAsTime() (*time.Time, error) { + if o.PreviousTimeStamp == nil { + return nil, nil + } + return dates.ParseAsFormat(o.PreviousTimeStamp, "2006-01-02T15:04:05Z07:00") +} + +func (o *ContainerInfo) SetPreviousTimeStampAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.PreviousTimeStamp = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containermemorystatistics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containermemorystatistics.go new file mode 100644 index 000000000000..766817d234f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containermemorystatistics.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerMemoryStatistics struct { + Limit *int64 `json:"limit,omitempty"` + MaxUsage *int64 `json:"maxUsage,omitempty"` + Usage *int64 `json:"usage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containernetworkinterfacestatistics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containernetworkinterfacestatistics.go new file mode 100644 index 000000000000..70eed77205c6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containernetworkinterfacestatistics.go @@ -0,0 +1,15 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerNetworkInterfaceStatistics struct { + RxBytes *int64 `json:"rxBytes,omitempty"` + RxDropped *int64 `json:"rxDropped,omitempty"` + RxErrors *int64 `json:"rxErrors,omitempty"` + RxPackets *int64 `json:"rxPackets,omitempty"` + TxBytes *int64 `json:"txBytes,omitempty"` + TxDropped *int64 `json:"txDropped,omitempty"` + TxErrors *int64 `json:"txErrors,omitempty"` + TxPackets *int64 `json:"txPackets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerthrottlingdata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerthrottlingdata.go new file mode 100644 index 000000000000..9a8399671cba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerthrottlingdata.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerThrottlingData struct { + Periods *int64 `json:"periods,omitempty"` + ThrottledPeriods *int64 `json:"throttledPeriods,omitempty"` + ThrottledTime *int64 `json:"throttledTime,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjob.go new file mode 100644 index 000000000000..960c0b21c35c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjob.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContinuousWebJob struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ContinuousWebJobProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjobproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjobproperties.go new file mode 100644 index 000000000000..ae1f697a8921 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjobproperties.go @@ -0,0 +1,17 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContinuousWebJobProperties struct { + DetailedStatus *string `json:"detailed_status,omitempty"` + Error *string `json:"error,omitempty"` + ExtraInfoUrl *string `json:"extra_info_url,omitempty"` + LogUrl *string `json:"log_url,omitempty"` + RunCommand *string `json:"run_command,omitempty"` + Settings *map[string]interface{} `json:"settings,omitempty"` + Status *ContinuousWebJobStatus `json:"status,omitempty"` + Url *string `json:"url,omitempty"` + UsingSdk *bool `json:"using_sdk,omitempty"` + WebJobType *WebJobType `json:"web_job_type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cookieexpiration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cookieexpiration.go new file mode 100644 index 000000000000..1acd40bff426 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cookieexpiration.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CookieExpiration struct { + Convention *CookieExpirationConvention `json:"convention,omitempty"` + TimeToExpiration *string `json:"timeToExpiration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_corssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_corssettings.go new file mode 100644 index 000000000000..58894d63e239 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_corssettings.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CorsSettings struct { + AllowedOrigins *[]string `json:"allowedOrigins,omitempty"` + SupportCredentials *bool `json:"supportCredentials,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatus.go new file mode 100644 index 000000000000..011d7f38b970 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatus.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CsmDeploymentStatus struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *CsmDeploymentStatusProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatusproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatusproperties.go new file mode 100644 index 000000000000..08a6ae20c118 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatusproperties.go @@ -0,0 +1,14 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CsmDeploymentStatusProperties struct { + DeploymentId *string `json:"deploymentId,omitempty"` + Errors *[]ErrorEntity `json:"errors,omitempty"` + FailedInstancesLogs *[]string `json:"failedInstancesLogs,omitempty"` + NumberOfInstancesFailed *int64 `json:"numberOfInstancesFailed,omitempty"` + NumberOfInstancesInProgress *int64 `json:"numberOfInstancesInProgress,omitempty"` + NumberOfInstancesSuccessful *int64 `json:"numberOfInstancesSuccessful,omitempty"` + Status *DeploymentBuildStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentity.go new file mode 100644 index 000000000000..dcdf32e913e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentity.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CsmPublishingCredentialsPoliciesEntity struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *CsmPublishingCredentialsPoliciesEntityProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentityproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentityproperties.go new file mode 100644 index 000000000000..bc91e5c0882f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentityproperties.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CsmPublishingCredentialsPoliciesEntityProperties struct { + Allow bool `json:"allow"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingprofileoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingprofileoptions.go new file mode 100644 index 000000000000..acf650553718 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingprofileoptions.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CsmPublishingProfileOptions struct { + Format *PublishingProfileFormat `json:"format,omitempty"` + IncludeDisasterRecoveryEndpoints *bool `json:"includeDisasterRecoveryEndpoints,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmslotentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmslotentity.go new file mode 100644 index 000000000000..086fe3ab931f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmslotentity.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CsmSlotEntity struct { + PreserveVnet bool `json:"preserveVnet"` + TargetSlot string `json:"targetSlot"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmusagequota.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmusagequota.go new file mode 100644 index 000000000000..7fad4d7865d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmusagequota.go @@ -0,0 +1,30 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CsmUsageQuota struct { + CurrentValue *int64 `json:"currentValue,omitempty"` + Limit *int64 `json:"limit,omitempty"` + Name *LocalizableString `json:"name,omitempty"` + NextResetTime *string `json:"nextResetTime,omitempty"` + Unit *string `json:"unit,omitempty"` +} + +func (o *CsmUsageQuota) GetNextResetTimeAsTime() (*time.Time, error) { + if o.NextResetTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.NextResetTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *CsmUsageQuota) SetNextResetTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.NextResetTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresult.go new file mode 100644 index 000000000000..965958b5906b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresult.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomHostnameAnalysisResult struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *CustomHostnameAnalysisResultProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresultproperties.go new file mode 100644 index 000000000000..e8641765248e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresultproperties.go @@ -0,0 +1,18 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomHostnameAnalysisResultProperties struct { + ARecords *[]string `json:"aRecords,omitempty"` + AlternateCNameRecords *[]string `json:"alternateCNameRecords,omitempty"` + AlternateTxtRecords *[]string `json:"alternateTxtRecords,omitempty"` + CNameRecords *[]string `json:"cNameRecords,omitempty"` + ConflictingAppResourceId *string `json:"conflictingAppResourceId,omitempty"` + CustomDomainVerificationFailureInfo *ErrorEntity `json:"customDomainVerificationFailureInfo,omitempty"` + CustomDomainVerificationTest *DnsVerificationTestResult `json:"customDomainVerificationTest,omitempty"` + HasConflictAcrossSubscription *bool `json:"hasConflictAcrossSubscription,omitempty"` + HasConflictOnScaleUnit *bool `json:"hasConflictOnScaleUnit,omitempty"` + IsHostnameAlreadyVerified *bool `json:"isHostnameAlreadyVerified,omitempty"` + TxtRecords *[]string `json:"txtRecords,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customopenidconnectprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customopenidconnectprovider.go new file mode 100644 index 000000000000..6131cc54b0f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customopenidconnectprovider.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomOpenIdConnectProvider struct { + Enabled *bool `json:"enabled,omitempty"` + Login *OpenIdConnectLogin `json:"login,omitempty"` + Registration *OpenIdConnectRegistration `json:"registration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_daprconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_daprconfig.go new file mode 100644 index 000000000000..4405627b6438 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_daprconfig.go @@ -0,0 +1,14 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DaprConfig struct { + AppId *string `json:"appId,omitempty"` + AppPort *int64 `json:"appPort,omitempty"` + EnableApiLogging *bool `json:"enableApiLogging,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + HTTPMaxRequestSize *int64 `json:"httpMaxRequestSize,omitempty"` + HTTPReadBufferSize *int64 `json:"httpReadBufferSize,omitempty"` + LogLevel *DaprLogLevel `json:"logLevel,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_databasebackupsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_databasebackupsetting.go new file mode 100644 index 000000000000..57baff31aa09 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_databasebackupsetting.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DatabaseBackupSetting struct { + ConnectionString *string `json:"connectionString,omitempty"` + ConnectionStringName *string `json:"connectionStringName,omitempty"` + DatabaseType DatabaseType `json:"databaseType"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_defaultauthorizationpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_defaultauthorizationpolicy.go new file mode 100644 index 000000000000..7cc4f0cf7239 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_defaultauthorizationpolicy.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DefaultAuthorizationPolicy struct { + AllowedApplications *[]string `json:"allowedApplications,omitempty"` + AllowedPrincipals *AllowedPrincipals `json:"allowedPrincipals,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequest.go new file mode 100644 index 000000000000..9ef816504155 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequest.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletedAppRestoreRequest struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *DeletedAppRestoreRequestProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequestproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequestproperties.go new file mode 100644 index 000000000000..48010e62a87d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequestproperties.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletedAppRestoreRequestProperties struct { + DeletedSiteId *string `json:"deletedSiteId,omitempty"` + RecoverConfiguration *bool `json:"recoverConfiguration,omitempty"` + SnapshotTime *string `json:"snapshotTime,omitempty"` + UseDRSecondary *bool `json:"useDRSecondary,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deployment.go new file mode 100644 index 000000000000..764e2891dd48 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deployment.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Deployment struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *DeploymentProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deploymentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deploymentproperties.go new file mode 100644 index 000000000000..62df75e64946 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deploymentproperties.go @@ -0,0 +1,46 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeploymentProperties struct { + Active *bool `json:"active,omitempty"` + Author *string `json:"author,omitempty"` + AuthorEmail *string `json:"author_email,omitempty"` + Deployer *string `json:"deployer,omitempty"` + Details *string `json:"details,omitempty"` + EndTime *string `json:"end_time,omitempty"` + Message *string `json:"message,omitempty"` + StartTime *string `json:"start_time,omitempty"` + Status *int64 `json:"status,omitempty"` +} + +func (o *DeploymentProperties) GetEndTimeAsTime() (*time.Time, error) { + if o.EndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *DeploymentProperties) SetEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndTime = &formatted +} + +func (o *DeploymentProperties) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *DeploymentProperties) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_enabledconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_enabledconfig.go new file mode 100644 index 000000000000..740c6a6f7503 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_enabledconfig.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EnabledConfig struct { + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_errorentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_errorentity.go new file mode 100644 index 000000000000..3d84f5ece58b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_errorentity.go @@ -0,0 +1,15 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ErrorEntity struct { + Code *string `json:"code,omitempty"` + Details *[]ErrorEntity `json:"details,omitempty"` + ExtendedCode *string `json:"extendedCode,omitempty"` + InnerErrors *[]ErrorEntity `json:"innerErrors,omitempty"` + Message *string `json:"message,omitempty"` + MessageTemplate *string `json:"messageTemplate,omitempty"` + Parameters *[]string `json:"parameters,omitempty"` + Target *string `json:"target,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_experiments.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_experiments.go new file mode 100644 index 000000000000..9e8a3418c841 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_experiments.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Experiments struct { + RampUpRules *[]RampUpRule `json:"rampUpRules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_extendedlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_extendedlocation.go new file mode 100644 index 000000000000..3f619b04f383 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_extendedlocation.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExtendedLocation struct { + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_facebook.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_facebook.go new file mode 100644 index 000000000000..834ae9712432 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_facebook.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Facebook struct { + Enabled *bool `json:"enabled,omitempty"` + GraphApiVersion *string `json:"graphApiVersion,omitempty"` + Login *LoginScopes `json:"login,omitempty"` + Registration *AppRegistration `json:"registration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemapplicationlogsconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemapplicationlogsconfig.go new file mode 100644 index 000000000000..89cb89d942ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemapplicationlogsconfig.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileSystemApplicationLogsConfig struct { + Level *LogLevel `json:"level,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemhttplogsconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemhttplogsconfig.go new file mode 100644 index 000000000000..f69fa8fecca7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemhttplogsconfig.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileSystemHTTPLogsConfig struct { + Enabled *bool `json:"enabled,omitempty"` + RetentionInDays *int64 `json:"retentionInDays,omitempty"` + RetentionInMb *int64 `json:"retentionInMb,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemtokenstore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemtokenstore.go new file mode 100644 index 000000000000..123a111d50bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemtokenstore.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileSystemTokenStore struct { + Directory *string `json:"directory,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_forwardproxy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_forwardproxy.go new file mode 100644 index 000000000000..897a226b7066 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_forwardproxy.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ForwardProxy struct { + Convention *ForwardProxyConvention `json:"convention,omitempty"` + CustomHostHeaderName *string `json:"customHostHeaderName,omitempty"` + CustomProtoHeaderName *string `json:"customProtoHeaderName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelope.go new file mode 100644 index 000000000000..d690c668b8a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelope.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FunctionEnvelope struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FunctionEnvelopeProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelopeproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelopeproperties.go new file mode 100644 index 000000000000..b32434f7616c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelopeproperties.go @@ -0,0 +1,20 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FunctionEnvelopeProperties struct { + Config *interface{} `json:"config,omitempty"` + ConfigHref *string `json:"config_href,omitempty"` + Files *map[string]string `json:"files,omitempty"` + FunctionAppId *string `json:"function_app_id,omitempty"` + Href *string `json:"href,omitempty"` + InvokeUrlTemplate *string `json:"invoke_url_template,omitempty"` + IsDisabled *bool `json:"isDisabled,omitempty"` + Language *string `json:"language,omitempty"` + ScriptHref *string `json:"script_href,omitempty"` + ScriptRootPathHref *string `json:"script_root_path_href,omitempty"` + SecretsFileHref *string `json:"secrets_file_href,omitempty"` + TestData *string `json:"test_data,omitempty"` + TestDataHref *string `json:"test_data_href,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionsecrets.go new file mode 100644 index 000000000000..daa46718fb3a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionsecrets.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FunctionSecrets struct { + Key *string `json:"key,omitempty"` + TriggerUrl *string `json:"trigger_url,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_github.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_github.go new file mode 100644 index 000000000000..0baa912b7f4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_github.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GitHub struct { + Enabled *bool `json:"enabled,omitempty"` + Login *LoginScopes `json:"login,omitempty"` + Registration *ClientRegistration `json:"registration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncodeconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncodeconfiguration.go new file mode 100644 index 000000000000..96e13fda5178 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncodeconfiguration.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GitHubActionCodeConfiguration struct { + RuntimeStack *string `json:"runtimeStack,omitempty"` + RuntimeVersion *string `json:"runtimeVersion,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactionconfiguration.go new file mode 100644 index 000000000000..3e0089953d84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactionconfiguration.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GitHubActionConfiguration struct { + CodeConfiguration *GitHubActionCodeConfiguration `json:"codeConfiguration,omitempty"` + ContainerConfiguration *GitHubActionContainerConfiguration `json:"containerConfiguration,omitempty"` + GenerateWorkflowFile *bool `json:"generateWorkflowFile,omitempty"` + IsLinux *bool `json:"isLinux,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncontainerconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncontainerconfiguration.go new file mode 100644 index 000000000000..0eb95a29ffb0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncontainerconfiguration.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GitHubActionContainerConfiguration struct { + ImageName *string `json:"imageName,omitempty"` + Password *string `json:"password,omitempty"` + ServerUrl *string `json:"serverUrl,omitempty"` + Username *string `json:"username,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_globalvalidation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_globalvalidation.go new file mode 100644 index 000000000000..e3f6446954e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_globalvalidation.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GlobalValidation struct { + ExcludedPaths *[]string `json:"excludedPaths,omitempty"` + RedirectToProvider *string `json:"redirectToProvider,omitempty"` + RequireAuthentication *bool `json:"requireAuthentication,omitempty"` + UnauthenticatedClientAction *UnauthenticatedClientActionV2 `json:"unauthenticatedClientAction,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_google.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_google.go new file mode 100644 index 000000000000..739f5aba70ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_google.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Google struct { + Enabled *bool `json:"enabled,omitempty"` + Login *LoginScopes `json:"login,omitempty"` + Registration *ClientRegistration `json:"registration,omitempty"` + Validation *AllowedAudiencesValidation `json:"validation,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_handlermapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_handlermapping.go new file mode 100644 index 000000000000..b5593f88002f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_handlermapping.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HandlerMapping struct { + Arguments *string `json:"arguments,omitempty"` + Extension *string `json:"extension,omitempty"` + ScriptProcessor *string `json:"scriptProcessor,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostingenvironmentprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostingenvironmentprofile.go new file mode 100644 index 000000000000..e75ca71ee327 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostingenvironmentprofile.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HostingEnvironmentProfile struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostkeys.go new file mode 100644 index 000000000000..af8cb6859792 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostkeys.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HostKeys struct { + FunctionKeys *map[string]string `json:"functionKeys,omitempty"` + MasterKey *string `json:"masterKey,omitempty"` + SystemKeys *map[string]string `json:"systemKeys,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebinding.go new file mode 100644 index 000000000000..4759b208afae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebinding.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HostNameBinding struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *HostNameBindingProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebindingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebindingproperties.go new file mode 100644 index 000000000000..89d397ba5fa1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebindingproperties.go @@ -0,0 +1,16 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HostNameBindingProperties struct { + AzureResourceName *string `json:"azureResourceName,omitempty"` + AzureResourceType *AzureResourceType `json:"azureResourceType,omitempty"` + CustomHostNameDnsRecordType *CustomHostNameDnsRecordType `json:"customHostNameDnsRecordType,omitempty"` + DomainId *string `json:"domainId,omitempty"` + HostNameType *HostNameType `json:"hostNameType,omitempty"` + SiteName *string `json:"siteName,omitempty"` + SslState *SslState `json:"sslState,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` + VirtualIP *string `json:"virtualIP,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamesslstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamesslstate.go new file mode 100644 index 000000000000..a330c5447ea4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamesslstate.go @@ -0,0 +1,13 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HostNameSslState struct { + HostType *HostType `json:"hostType,omitempty"` + Name *string `json:"name,omitempty"` + SslState *SslState `json:"sslState,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` + ToUpdate *bool `json:"toUpdate,omitempty"` + VirtualIP *string `json:"virtualIP,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httplogsconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httplogsconfig.go new file mode 100644 index 000000000000..006cccdc08fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httplogsconfig.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HTTPLogsConfig struct { + AzureBlobStorage *AzureBlobStorageHTTPLogsConfig `json:"azureBlobStorage,omitempty"` + FileSystem *FileSystemHTTPLogsConfig `json:"fileSystem,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettings.go new file mode 100644 index 000000000000..50a72c92e613 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettings.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HTTPSettings struct { + ForwardProxy *ForwardProxy `json:"forwardProxy,omitempty"` + RequireHTTPS *bool `json:"requireHttps,omitempty"` + Routes *HTTPSettingsRoutes `json:"routes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettingsroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettingsroutes.go new file mode 100644 index 000000000000..deb06f514340 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettingsroutes.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HTTPSettingsRoutes struct { + ApiPrefix *string `json:"apiPrefix,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnection.go new file mode 100644 index 000000000000..57e4841bb229 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnection.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridConnection struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *HybridConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnectionproperties.go new file mode 100644 index 000000000000..82c9d19bbb9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnectionproperties.go @@ -0,0 +1,15 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridConnectionProperties struct { + Hostname *string `json:"hostname,omitempty"` + Port *int64 `json:"port,omitempty"` + RelayArmUri *string `json:"relayArmUri,omitempty"` + RelayName *string `json:"relayName,omitempty"` + SendKeyName *string `json:"sendKeyName,omitempty"` + SendKeyValue *string `json:"sendKeyValue,omitempty"` + ServiceBusNamespace *string `json:"serviceBusNamespace,omitempty"` + ServiceBusSuffix *string `json:"serviceBusSuffix,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifier.go new file mode 100644 index 000000000000..134faaa6890b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifier.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Identifier struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IdentifierProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifierproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifierproperties.go new file mode 100644 index 000000000000..3826ff38a2ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifierproperties.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IdentifierProperties struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identityproviders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identityproviders.go new file mode 100644 index 000000000000..383fb8243f3d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identityproviders.go @@ -0,0 +1,16 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IdentityProviders struct { + Apple *Apple `json:"apple,omitempty"` + AzureActiveDirectory *AzureActiveDirectory `json:"azureActiveDirectory,omitempty"` + AzureStaticWebApps *AzureStaticWebApps `json:"azureStaticWebApps,omitempty"` + CustomOpenIdConnectProviders *map[string]CustomOpenIdConnectProvider `json:"customOpenIdConnectProviders,omitempty"` + Facebook *Facebook `json:"facebook,omitempty"` + GitHub *GitHub `json:"gitHub,omitempty"` + Google *Google `json:"google,omitempty"` + LegacyMicrosoftAccount *LegacyMicrosoftAccount `json:"legacyMicrosoftAccount,omitempty"` + Twitter *Twitter `json:"twitter,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_ipsecurityrestriction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_ipsecurityrestriction.go new file mode 100644 index 000000000000..2d96d9b6520c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_ipsecurityrestriction.go @@ -0,0 +1,18 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPSecurityRestriction struct { + Action *string `json:"action,omitempty"` + Description *string `json:"description,omitempty"` + Headers *map[string][]string `json:"headers,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + SubnetMask *string `json:"subnetMask,omitempty"` + SubnetTrafficTag *int64 `json:"subnetTrafficTag,omitempty"` + Tag *IPFilterTag `json:"tag,omitempty"` + VnetSubnetResourceId *string `json:"vnetSubnetResourceId,omitempty"` + VnetTrafficTag *int64 `json:"vnetTrafficTag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_jwtclaimchecks.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_jwtclaimchecks.go new file mode 100644 index 000000000000..be04286a8e96 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_jwtclaimchecks.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type JwtClaimChecks struct { + AllowedClientApplications *[]string `json:"allowedClientApplications,omitempty"` + AllowedGroups *[]string `json:"allowedGroups,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_keyinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_keyinfo.go new file mode 100644 index 000000000000..5463d9e53cec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_keyinfo.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KeyInfo struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_legacymicrosoftaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_legacymicrosoftaccount.go new file mode 100644 index 000000000000..77b7761115ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_legacymicrosoftaccount.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LegacyMicrosoftAccount struct { + Enabled *bool `json:"enabled,omitempty"` + Login *LoginScopes `json:"login,omitempty"` + Registration *ClientRegistration `json:"registration,omitempty"` + Validation *AllowedAudiencesValidation `json:"validation,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_localizablestring.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_localizablestring.go new file mode 100644 index 000000000000..1fac79f7d9ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_localizablestring.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalizableString struct { + LocalizedValue *string `json:"localizedValue,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_login.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_login.go new file mode 100644 index 000000000000..a8fee3b25d90 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_login.go @@ -0,0 +1,13 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Login struct { + AllowedExternalRedirectUrls *[]string `json:"allowedExternalRedirectUrls,omitempty"` + CookieExpiration *CookieExpiration `json:"cookieExpiration,omitempty"` + Nonce *Nonce `json:"nonce,omitempty"` + PreserveUrlFragmentsForLogins *bool `json:"preserveUrlFragmentsForLogins,omitempty"` + Routes *LoginRoutes `json:"routes,omitempty"` + TokenStore *TokenStore `json:"tokenStore,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginroutes.go new file mode 100644 index 000000000000..8009af99b437 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginroutes.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoginRoutes struct { + LogoutEndpoint *string `json:"logoutEndpoint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginscopes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginscopes.go new file mode 100644 index 000000000000..4b1160d55620 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginscopes.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoginScopes struct { + Scopes *[]string `json:"scopes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequest.go new file mode 100644 index 000000000000..7661e8391ae9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequest.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MigrateMySqlRequest struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *MigrateMySqlRequestProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequestproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequestproperties.go new file mode 100644 index 000000000000..0a9492d11bb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequestproperties.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MigrateMySqlRequestProperties struct { + ConnectionString string `json:"connectionString"` + MigrationType MySqlMigrationType `json:"migrationType"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatus.go new file mode 100644 index 000000000000..93e2c1806cd2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatus.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MigrateMySqlStatus struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *MigrateMySqlStatusProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatusproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatusproperties.go new file mode 100644 index 000000000000..bb707fc1768b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatusproperties.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MigrateMySqlStatusProperties struct { + LocalMySqlEnabled *bool `json:"localMySqlEnabled,omitempty"` + MigrationOperationStatus *OperationStatus `json:"migrationOperationStatus,omitempty"` + OperationId *string `json:"operationId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploy.go new file mode 100644 index 000000000000..27ad333e0e5c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploy.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MSDeploy struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *MSDeployProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploycore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploycore.go new file mode 100644 index 000000000000..e87d9f960ad5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploycore.go @@ -0,0 +1,14 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MSDeployCore struct { + AppOffline *bool `json:"appOffline,omitempty"` + ConnectionString *string `json:"connectionString,omitempty"` + DbType *string `json:"dbType,omitempty"` + PackageUri *string `json:"packageUri,omitempty"` + SetParameters *map[string]string `json:"setParameters,omitempty"` + SetParametersXmlFileUri *string `json:"setParametersXmlFileUri,omitempty"` + SkipAppData *bool `json:"skipAppData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylog.go new file mode 100644 index 000000000000..344db502e399 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylog.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MSDeployLog struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *MSDeployLogProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogentry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogentry.go new file mode 100644 index 000000000000..b300f240305c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogentry.go @@ -0,0 +1,28 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MSDeployLogEntry struct { + Message *string `json:"message,omitempty"` + Time *string `json:"time,omitempty"` + Type *MSDeployLogEntryType `json:"type,omitempty"` +} + +func (o *MSDeployLogEntry) GetTimeAsTime() (*time.Time, error) { + if o.Time == nil { + return nil, nil + } + return dates.ParseAsFormat(o.Time, "2006-01-02T15:04:05Z07:00") +} + +func (o *MSDeployLogEntry) SetTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.Time = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogproperties.go new file mode 100644 index 000000000000..4d30fd74a576 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogproperties.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MSDeployLogProperties struct { + Entries *[]MSDeployLogEntry `json:"entries,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeployproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeployproperties.go new file mode 100644 index 000000000000..2fdb5e36d605 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeployproperties.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MSDeployProperties struct { + AddOnPackages *[]MSDeployCore `json:"addOnPackages,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatus.go new file mode 100644 index 000000000000..9f782217369f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatus.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MSDeployStatus struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *MSDeployStatusProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatusproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatusproperties.go new file mode 100644 index 000000000000..739caae3f327 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatusproperties.go @@ -0,0 +1,42 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MSDeployStatusProperties struct { + Complete *bool `json:"complete,omitempty"` + Deployer *string `json:"deployer,omitempty"` + EndTime *string `json:"endTime,omitempty"` + ProvisioningState *MSDeployProvisioningState `json:"provisioningState,omitempty"` + StartTime *string `json:"startTime,omitempty"` +} + +func (o *MSDeployStatusProperties) GetEndTimeAsTime() (*time.Time, error) { + if o.EndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *MSDeployStatusProperties) SetEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndTime = &formatted +} + +func (o *MSDeployStatusProperties) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *MSDeployStatusProperties) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_namevaluepair.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_namevaluepair.go new file mode 100644 index 000000000000..db12fa3a3132 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_namevaluepair.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NameValuePair struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeatures.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeatures.go new file mode 100644 index 000000000000..34cbbf7f121f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeatures.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkFeatures struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkFeaturesProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeaturesproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeaturesproperties.go new file mode 100644 index 000000000000..a51a02604881 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeaturesproperties.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkFeaturesProperties struct { + HybridConnections *[]RelayServiceConnectionEntity `json:"hybridConnections,omitempty"` + HybridConnectionsV2 *[]HybridConnection `json:"hybridConnectionsV2,omitempty"` + VirtualNetworkConnection *VnetInfo `json:"virtualNetworkConnection,omitempty"` + VirtualNetworkName *string `json:"virtualNetworkName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networktrace.go new file mode 100644 index 000000000000..4c22aec67e90 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networktrace.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkTrace struct { + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_nonce.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_nonce.go new file mode 100644 index 000000000000..ae90e0008f5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_nonce.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Nonce struct { + NonceExpirationInterval *string `json:"nonceExpirationInterval,omitempty"` + ValidateNonce *bool `json:"validateNonce,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectclientcredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectclientcredential.go new file mode 100644 index 000000000000..11d3fe518863 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectclientcredential.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OpenIdConnectClientCredential struct { + ClientSecretSettingName *string `json:"clientSecretSettingName,omitempty"` + Method *ClientCredentialMethod `json:"method,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectconfig.go new file mode 100644 index 000000000000..c76119be6431 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectconfig.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OpenIdConnectConfig struct { + AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty"` + CertificationUri *string `json:"certificationUri,omitempty"` + Issuer *string `json:"issuer,omitempty"` + TokenEndpoint *string `json:"tokenEndpoint,omitempty"` + WellKnownOpenIdConfiguration *string `json:"wellKnownOpenIdConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectlogin.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectlogin.go new file mode 100644 index 000000000000..e8a1c2ae8ed3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectlogin.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OpenIdConnectLogin struct { + NameClaimType *string `json:"nameClaimType,omitempty"` + Scopes *[]string `json:"scopes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectregistration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectregistration.go new file mode 100644 index 000000000000..faf47478e0ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectregistration.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OpenIdConnectRegistration struct { + ClientCredential *OpenIdConnectClientCredential `json:"clientCredential,omitempty"` + ClientId *string `json:"clientId,omitempty"` + OpenIdConnectConfiguration *OpenIdConnectConfig `json:"openIdConnectConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_operation.go new file mode 100644 index 000000000000..19973cf19536 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_operation.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Operation struct { + CreatedTime *string `json:"createdTime,omitempty"` + Errors *[]ErrorEntity `json:"errors,omitempty"` + ExpirationTime *string `json:"expirationTime,omitempty"` + GeoMasterOperationId *string `json:"geoMasterOperationId,omitempty"` + Id *string `json:"id,omitempty"` + ModifiedTime *string `json:"modifiedTime,omitempty"` + Name *string `json:"name,omitempty"` + Status *OperationStatus `json:"status,omitempty"` +} + +func (o *Operation) GetCreatedTimeAsTime() (*time.Time, error) { + if o.CreatedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.CreatedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *Operation) SetCreatedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.CreatedTime = &formatted +} + +func (o *Operation) GetExpirationTimeAsTime() (*time.Time, error) { + if o.ExpirationTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.ExpirationTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *Operation) SetExpirationTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.ExpirationTime = &formatted +} + +func (o *Operation) GetModifiedTimeAsTime() (*time.Time, error) { + if o.ModifiedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.ModifiedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *Operation) SetModifiedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.ModifiedTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonresponse.go new file mode 100644 index 000000000000..9b5ecb7207b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonresponse.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PerfMonResponse struct { + Code *string `json:"code,omitempty"` + Data *PerfMonSet `json:"data,omitempty"` + Message *string `json:"message,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonsample.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonsample.go new file mode 100644 index 000000000000..d431429707be --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonsample.go @@ -0,0 +1,28 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PerfMonSample struct { + InstanceName *string `json:"instanceName,omitempty"` + Time *string `json:"time,omitempty"` + Value *float64 `json:"value,omitempty"` +} + +func (o *PerfMonSample) GetTimeAsTime() (*time.Time, error) { + if o.Time == nil { + return nil, nil + } + return dates.ParseAsFormat(o.Time, "2006-01-02T15:04:05Z07:00") +} + +func (o *PerfMonSample) SetTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.Time = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonset.go new file mode 100644 index 000000000000..3c4b44ec6473 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonset.go @@ -0,0 +1,42 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PerfMonSet struct { + EndTime *string `json:"endTime,omitempty"` + Name *string `json:"name,omitempty"` + StartTime *string `json:"startTime,omitempty"` + TimeGrain *string `json:"timeGrain,omitempty"` + Values *[]PerfMonSample `json:"values,omitempty"` +} + +func (o *PerfMonSet) GetEndTimeAsTime() (*time.Time, error) { + if o.EndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *PerfMonSet) SetEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndTime = &formatted +} + +func (o *PerfMonSet) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *PerfMonSet) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddon.go new file mode 100644 index 000000000000..7d64dfe405d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddon.go @@ -0,0 +1,14 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PremierAddOn struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *PremierAddOnProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresource.go new file mode 100644 index 000000000000..6d715b148dbd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresource.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PremierAddOnPatchResource struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PremierAddOnPatchResourceProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresourceproperties.go new file mode 100644 index 000000000000..6a330db952e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresourceproperties.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PremierAddOnPatchResourceProperties struct { + MarketplaceOffer *string `json:"marketplaceOffer,omitempty"` + MarketplacePublisher *string `json:"marketplacePublisher,omitempty"` + Product *string `json:"product,omitempty"` + Sku *string `json:"sku,omitempty"` + Vendor *string `json:"vendor,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonproperties.go new file mode 100644 index 000000000000..1a0c2eeb3eba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonproperties.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PremierAddOnProperties struct { + MarketplaceOffer *string `json:"marketplaceOffer,omitempty"` + MarketplacePublisher *string `json:"marketplacePublisher,omitempty"` + Product *string `json:"product,omitempty"` + Sku *string `json:"sku,omitempty"` + Vendor *string `json:"vendor,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccess.go new file mode 100644 index 000000000000..57bb75c3f6a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccess.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateAccess struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateAccessProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessproperties.go new file mode 100644 index 000000000000..654c66fb229a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessproperties.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateAccessProperties struct { + Enabled *bool `json:"enabled,omitempty"` + VirtualNetworks *[]PrivateAccessVirtualNetwork `json:"virtualNetworks,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccesssubnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccesssubnet.go new file mode 100644 index 000000000000..c0308f0a6b1c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccesssubnet.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateAccessSubnet struct { + Key *int64 `json:"key,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessvirtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessvirtualnetwork.go new file mode 100644 index 000000000000..1aa31d5386cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessvirtualnetwork.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateAccessVirtualNetwork struct { + Key *int64 `json:"key,omitempty"` + Name *string `json:"name,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + Subnets *[]PrivateAccessSubnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequest.go new file mode 100644 index 000000000000..33236562dda6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequest.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkConnectionApprovalRequest struct { + PrivateLinkServiceConnectionState *PrivateLinkConnectionState `json:"privateLinkServiceConnectionState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequestresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequestresource.go new file mode 100644 index 000000000000..73f676f5a32a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequestresource.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkConnectionApprovalRequestResource struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkConnectionApprovalRequest `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionstate.go new file mode 100644 index 000000000000..0cb41b46defb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionstate.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresource.go new file mode 100644 index 000000000000..8ad526f8d22d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresource.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkResource struct { + Id string `json:"id"` + Name string `json:"name"` + Properties PrivateLinkResourceProperties `json:"properties"` + Type string `json:"type"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceproperties.go new file mode 100644 index 000000000000..681e7763d0bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceproperties.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkResourceProperties struct { + GroupId *string `json:"groupId,omitempty"` + RequiredMembers *[]string `json:"requiredMembers,omitempty"` + RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceswrapper.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceswrapper.go new file mode 100644 index 000000000000..44ee0fa08c8f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceswrapper.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkResourcesWrapper struct { + Value []PrivateLinkResource `json:"value"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfo.go new file mode 100644 index 000000000000..fc0db143ae2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfo.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProcessInfo struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ProcessInfoProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfoproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfoproperties.go new file mode 100644 index 000000000000..705da9f398d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfoproperties.go @@ -0,0 +1,73 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProcessInfoProperties struct { + Children *[]string `json:"children,omitempty"` + CommandLine *string `json:"command_line,omitempty"` + DeploymentName *string `json:"deployment_name,omitempty"` + Description *string `json:"description,omitempty"` + EnvironmentVariables *map[string]string `json:"environment_variables,omitempty"` + FileName *string `json:"file_name,omitempty"` + HandleCount *int64 `json:"handle_count,omitempty"` + Href *string `json:"href,omitempty"` + Identifier *int64 `json:"identifier,omitempty"` + IisProfileTimeoutInSeconds *float64 `json:"iis_profile_timeout_in_seconds,omitempty"` + IsIisProfileRunning *bool `json:"is_iis_profile_running,omitempty"` + IsProfileRunning *bool `json:"is_profile_running,omitempty"` + IsScmSite *bool `json:"is_scm_site,omitempty"` + IsWebjob *bool `json:"is_webjob,omitempty"` + Minidump *string `json:"minidump,omitempty"` + ModuleCount *int64 `json:"module_count,omitempty"` + Modules *[]ProcessModuleInfo `json:"modules,omitempty"` + NonPagedSystemMemory *int64 `json:"non_paged_system_memory,omitempty"` + OpenFileHandles *[]string `json:"open_file_handles,omitempty"` + PagedMemory *int64 `json:"paged_memory,omitempty"` + PagedSystemMemory *int64 `json:"paged_system_memory,omitempty"` + Parent *string `json:"parent,omitempty"` + PeakPagedMemory *int64 `json:"peak_paged_memory,omitempty"` + PeakVirtualMemory *int64 `json:"peak_virtual_memory,omitempty"` + PeakWorkingSet *int64 `json:"peak_working_set,omitempty"` + PrivateMemory *int64 `json:"private_memory,omitempty"` + PrivilegedCpuTime *string `json:"privileged_cpu_time,omitempty"` + StartTime *string `json:"start_time,omitempty"` + ThreadCount *int64 `json:"thread_count,omitempty"` + Threads *[]ProcessThreadInfo `json:"threads,omitempty"` + TimeStamp *string `json:"time_stamp,omitempty"` + TotalCpuTime *string `json:"total_cpu_time,omitempty"` + UserCpuTime *string `json:"user_cpu_time,omitempty"` + UserName *string `json:"user_name,omitempty"` + VirtualMemory *int64 `json:"virtual_memory,omitempty"` + WorkingSet *int64 `json:"working_set,omitempty"` +} + +func (o *ProcessInfoProperties) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ProcessInfoProperties) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} + +func (o *ProcessInfoProperties) GetTimeStampAsTime() (*time.Time, error) { + if o.TimeStamp == nil { + return nil, nil + } + return dates.ParseAsFormat(o.TimeStamp, "2006-01-02T15:04:05Z07:00") +} + +func (o *ProcessInfoProperties) SetTimeStampAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.TimeStamp = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfo.go new file mode 100644 index 000000000000..9f12d6c8babc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfo.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProcessModuleInfo struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ProcessModuleInfoProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfoproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfoproperties.go new file mode 100644 index 000000000000..170aa09c2218 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfoproperties.go @@ -0,0 +1,18 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProcessModuleInfoProperties struct { + BaseAddress *string `json:"base_address,omitempty"` + FileDescription *string `json:"file_description,omitempty"` + FileName *string `json:"file_name,omitempty"` + FilePath *string `json:"file_path,omitempty"` + FileVersion *string `json:"file_version,omitempty"` + Href *string `json:"href,omitempty"` + IsDebug *bool `json:"is_debug,omitempty"` + Language *string `json:"language,omitempty"` + ModuleMemorySize *int64 `json:"module_memory_size,omitempty"` + Product *string `json:"product,omitempty"` + ProductVersion *string `json:"product_version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfo.go new file mode 100644 index 000000000000..f11e4d7370ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfo.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProcessThreadInfo struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ProcessThreadInfoProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfoproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfoproperties.go new file mode 100644 index 000000000000..e115c1477b67 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfoproperties.go @@ -0,0 +1,37 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProcessThreadInfoProperties struct { + BasePriority *int64 `json:"base_priority,omitempty"` + CurrentPriority *int64 `json:"current_priority,omitempty"` + Href *string `json:"href,omitempty"` + Identifier *int64 `json:"identifier,omitempty"` + PriorityLevel *string `json:"priority_level,omitempty"` + Process *string `json:"process,omitempty"` + StartAddress *string `json:"start_address,omitempty"` + StartTime *string `json:"start_time,omitempty"` + State *string `json:"state,omitempty"` + TotalProcessorTime *string `json:"total_processor_time,omitempty"` + UserProcessorTime *string `json:"user_processor_time,omitempty"` + WaitReason *string `json:"wait_reason,omitempty"` +} + +func (o *ProcessThreadInfoProperties) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ProcessThreadInfoProperties) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificate.go new file mode 100644 index 000000000000..41d2238cf357 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificate.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicCertificate struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicCertificateProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificateproperties.go new file mode 100644 index 000000000000..291d9a59a0fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificateproperties.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicCertificateProperties struct { + Blob *string `json:"blob,omitempty"` + PublicCertificateLocation *PublicCertificateLocation `json:"publicCertificateLocation,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettings.go new file mode 100644 index 000000000000..c233a60ea497 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettings.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PushSettings struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PushSettingsProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettingsproperties.go new file mode 100644 index 000000000000..bdf39a78d986 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettingsproperties.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PushSettingsProperties struct { + DynamicTagsJson *string `json:"dynamicTagsJson,omitempty"` + IsPushEnabled bool `json:"isPushEnabled"` + TagWhitelistJson *string `json:"tagWhitelistJson,omitempty"` + TagsRequiringAuth *string `json:"tagsRequiringAuth,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_rampuprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_rampuprule.go new file mode 100644 index 000000000000..a99e19c50855 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_rampuprule.go @@ -0,0 +1,15 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RampUpRule struct { + ActionHostName *string `json:"actionHostName,omitempty"` + ChangeDecisionCallbackUrl *string `json:"changeDecisionCallbackUrl,omitempty"` + ChangeIntervalInMinutes *int64 `json:"changeIntervalInMinutes,omitempty"` + ChangeStep *float64 `json:"changeStep,omitempty"` + MaxReroutePercentage *float64 `json:"maxReroutePercentage,omitempty"` + MinReroutePercentage *float64 `json:"minReroutePercentage,omitempty"` + Name *string `json:"name,omitempty"` + ReroutePercentage *float64 `json:"reroutePercentage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentity.go new file mode 100644 index 000000000000..a2bfbf4739ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentity.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RelayServiceConnectionEntity struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RelayServiceConnectionEntityProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentityproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentityproperties.go new file mode 100644 index 000000000000..608b034c0dfd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentityproperties.go @@ -0,0 +1,14 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RelayServiceConnectionEntityProperties struct { + BiztalkUri *string `json:"biztalkUri,omitempty"` + EntityConnectionString *string `json:"entityConnectionString,omitempty"` + EntityName *string `json:"entityName,omitempty"` + Hostname *string `json:"hostname,omitempty"` + Port *int64 `json:"port,omitempty"` + ResourceConnectionString *string `json:"resourceConnectionString,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresource.go new file mode 100644 index 000000000000..2657ec831612 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresource.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RemotePrivateEndpointConnectionARMResource struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RemotePrivateEndpointConnectionARMResourceProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresourceproperties.go new file mode 100644 index 000000000000..82a747ca53b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresourceproperties.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RemotePrivateEndpointConnectionARMResourceProperties struct { + IPAddresses *[]string `json:"ipAddresses,omitempty"` + PrivateEndpoint *ArmIdWrapper `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_requestsbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_requestsbasedtrigger.go new file mode 100644 index 000000000000..f8d9ec672d0c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_requestsbasedtrigger.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RequestsBasedTrigger struct { + Count *int64 `json:"count,omitempty"` + TimeInterval *string `json:"timeInterval,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_resourceconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_resourceconfig.go new file mode 100644 index 000000000000..14a70233fe95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_resourceconfig.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceConfig struct { + Cpu *float64 `json:"cpu,omitempty"` + Memory *string `json:"memory,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequest.go new file mode 100644 index 000000000000..c56dde6c7853 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequest.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestoreRequest struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RestoreRequestProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequestproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequestproperties.go new file mode 100644 index 000000000000..d352f67f61b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequestproperties.go @@ -0,0 +1,18 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestoreRequestProperties struct { + AdjustConnectionStrings *bool `json:"adjustConnectionStrings,omitempty"` + AppServicePlan *string `json:"appServicePlan,omitempty"` + BlobName *string `json:"blobName,omitempty"` + Databases *[]DatabaseBackupSetting `json:"databases,omitempty"` + HostingEnvironment *string `json:"hostingEnvironment,omitempty"` + IgnoreConflictingHostNames *bool `json:"ignoreConflictingHostNames,omitempty"` + IgnoreDatabases *bool `json:"ignoreDatabases,omitempty"` + OperationType *BackupRestoreOperationType `json:"operationType,omitempty"` + Overwrite bool `json:"overwrite"` + SiteName *string `json:"siteName,omitempty"` + StorageAccountUrl string `json:"storageAccountUrl"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_site.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_site.go new file mode 100644 index 000000000000..48c368249466 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_site.go @@ -0,0 +1,20 @@ +package webapps + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Site struct { + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Kind *string `json:"kind,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *SiteProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettings.go new file mode 100644 index 000000000000..b1a8431fdccf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettings.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteAuthSettings struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SiteAuthSettingsProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsproperties.go new file mode 100644 index 000000000000..46d05a778816 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsproperties.go @@ -0,0 +1,45 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteAuthSettingsProperties struct { + AadClaimsAuthorization *string `json:"aadClaimsAuthorization,omitempty"` + AdditionalLoginParams *[]string `json:"additionalLoginParams,omitempty"` + AllowedAudiences *[]string `json:"allowedAudiences,omitempty"` + AllowedExternalRedirectUrls *[]string `json:"allowedExternalRedirectUrls,omitempty"` + AuthFilePath *string `json:"authFilePath,omitempty"` + ClientId *string `json:"clientId,omitempty"` + ClientSecret *string `json:"clientSecret,omitempty"` + ClientSecretCertificateThumbprint *string `json:"clientSecretCertificateThumbprint,omitempty"` + ClientSecretSettingName *string `json:"clientSecretSettingName,omitempty"` + ConfigVersion *string `json:"configVersion,omitempty"` + DefaultProvider *BuiltInAuthenticationProvider `json:"defaultProvider,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + FacebookAppId *string `json:"facebookAppId,omitempty"` + FacebookAppSecret *string `json:"facebookAppSecret,omitempty"` + FacebookAppSecretSettingName *string `json:"facebookAppSecretSettingName,omitempty"` + FacebookOAuthScopes *[]string `json:"facebookOAuthScopes,omitempty"` + GitHubClientId *string `json:"gitHubClientId,omitempty"` + GitHubClientSecret *string `json:"gitHubClientSecret,omitempty"` + GitHubClientSecretSettingName *string `json:"gitHubClientSecretSettingName,omitempty"` + GitHubOAuthScopes *[]string `json:"gitHubOAuthScopes,omitempty"` + GoogleClientId *string `json:"googleClientId,omitempty"` + GoogleClientSecret *string `json:"googleClientSecret,omitempty"` + GoogleClientSecretSettingName *string `json:"googleClientSecretSettingName,omitempty"` + GoogleOAuthScopes *[]string `json:"googleOAuthScopes,omitempty"` + IsAuthFromFile *string `json:"isAuthFromFile,omitempty"` + Issuer *string `json:"issuer,omitempty"` + MicrosoftAccountClientId *string `json:"microsoftAccountClientId,omitempty"` + MicrosoftAccountClientSecret *string `json:"microsoftAccountClientSecret,omitempty"` + MicrosoftAccountClientSecretSettingName *string `json:"microsoftAccountClientSecretSettingName,omitempty"` + MicrosoftAccountOAuthScopes *[]string `json:"microsoftAccountOAuthScopes,omitempty"` + RuntimeVersion *string `json:"runtimeVersion,omitempty"` + TokenRefreshExtensionHours *float64 `json:"tokenRefreshExtensionHours,omitempty"` + TokenStoreEnabled *bool `json:"tokenStoreEnabled,omitempty"` + TwitterConsumerKey *string `json:"twitterConsumerKey,omitempty"` + TwitterConsumerSecret *string `json:"twitterConsumerSecret,omitempty"` + TwitterConsumerSecretSettingName *string `json:"twitterConsumerSecretSettingName,omitempty"` + UnauthenticatedClientAction *UnauthenticatedClientAction `json:"unauthenticatedClientAction,omitempty"` + ValidateIssuer *bool `json:"validateIssuer,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2.go new file mode 100644 index 000000000000..ee79ab128482 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteAuthSettingsV2 struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SiteAuthSettingsV2Properties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2properties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2properties.go new file mode 100644 index 000000000000..9fe4cea05651 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2properties.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteAuthSettingsV2Properties struct { + GlobalValidation *GlobalValidation `json:"globalValidation,omitempty"` + HTTPSettings *HTTPSettings `json:"httpSettings,omitempty"` + IdentityProviders *IdentityProviders `json:"identityProviders,omitempty"` + Login *Login `json:"login,omitempty"` + Platform *AuthPlatform `json:"platform,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneability.go new file mode 100644 index 000000000000..ff7a00792474 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneability.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteCloneability struct { + BlockingCharacteristics *[]SiteCloneabilityCriterion `json:"blockingCharacteristics,omitempty"` + BlockingFeatures *[]SiteCloneabilityCriterion `json:"blockingFeatures,omitempty"` + Result *CloneAbilityResult `json:"result,omitempty"` + UnsupportedFeatures *[]SiteCloneabilityCriterion `json:"unsupportedFeatures,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneabilitycriterion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneabilitycriterion.go new file mode 100644 index 000000000000..89a4c57de837 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneabilitycriterion.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteCloneabilityCriterion struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfig.go new file mode 100644 index 000000000000..faaa3834f5e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfig.go @@ -0,0 +1,97 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteConfig struct { + AcrUseManagedIdentityCreds *bool `json:"acrUseManagedIdentityCreds,omitempty"` + AcrUserManagedIdentityID *string `json:"acrUserManagedIdentityID,omitempty"` + AlwaysOn *bool `json:"alwaysOn,omitempty"` + ApiDefinition *ApiDefinitionInfo `json:"apiDefinition,omitempty"` + ApiManagementConfig *ApiManagementConfig `json:"apiManagementConfig,omitempty"` + AppCommandLine *string `json:"appCommandLine,omitempty"` + AppSettings *[]NameValuePair `json:"appSettings,omitempty"` + AutoHealEnabled *bool `json:"autoHealEnabled,omitempty"` + AutoHealRules *AutoHealRules `json:"autoHealRules,omitempty"` + AutoSwapSlotName *string `json:"autoSwapSlotName,omitempty"` + AzureStorageAccounts *map[string]AzureStorageInfoValue `json:"azureStorageAccounts,omitempty"` + ConnectionStrings *[]ConnStringInfo `json:"connectionStrings,omitempty"` + Cors *CorsSettings `json:"cors,omitempty"` + DefaultDocuments *[]string `json:"defaultDocuments,omitempty"` + DetailedErrorLoggingEnabled *bool `json:"detailedErrorLoggingEnabled,omitempty"` + DocumentRoot *string `json:"documentRoot,omitempty"` + ElasticWebAppScaleLimit *int64 `json:"elasticWebAppScaleLimit,omitempty"` + Experiments *Experiments `json:"experiments,omitempty"` + FtpsState *FtpsState `json:"ftpsState,omitempty"` + FunctionAppScaleLimit *int64 `json:"functionAppScaleLimit,omitempty"` + FunctionsRuntimeScaleMonitoringEnabled *bool `json:"functionsRuntimeScaleMonitoringEnabled,omitempty"` + HTTP20Enabled *bool `json:"http20Enabled,omitempty"` + HTTPLoggingEnabled *bool `json:"httpLoggingEnabled,omitempty"` + HandlerMappings *[]HandlerMapping `json:"handlerMappings,omitempty"` + HealthCheckPath *string `json:"healthCheckPath,omitempty"` + IPSecurityRestrictions *[]IPSecurityRestriction `json:"ipSecurityRestrictions,omitempty"` + IPSecurityRestrictionsDefaultAction *DefaultAction `json:"ipSecurityRestrictionsDefaultAction,omitempty"` + JavaContainer *string `json:"javaContainer,omitempty"` + JavaContainerVersion *string `json:"javaContainerVersion,omitempty"` + JavaVersion *string `json:"javaVersion,omitempty"` + KeyVaultReferenceIdentity *string `json:"keyVaultReferenceIdentity,omitempty"` + Limits *SiteLimits `json:"limits,omitempty"` + LinuxFxVersion *string `json:"linuxFxVersion,omitempty"` + LoadBalancing *SiteLoadBalancing `json:"loadBalancing,omitempty"` + LocalMySqlEnabled *bool `json:"localMySqlEnabled,omitempty"` + LogsDirectorySizeLimit *int64 `json:"logsDirectorySizeLimit,omitempty"` + MachineKey *SiteMachineKey `json:"machineKey,omitempty"` + ManagedPipelineMode *ManagedPipelineMode `json:"managedPipelineMode,omitempty"` + ManagedServiceIdentityId *int64 `json:"managedServiceIdentityId,omitempty"` + Metadata *[]NameValuePair `json:"metadata,omitempty"` + MinTlsCipherSuite *TlsCipherSuites `json:"minTlsCipherSuite,omitempty"` + MinTlsVersion *SupportedTlsVersions `json:"minTlsVersion,omitempty"` + MinimumElasticInstanceCount *int64 `json:"minimumElasticInstanceCount,omitempty"` + NetFrameworkVersion *string `json:"netFrameworkVersion,omitempty"` + NodeVersion *string `json:"nodeVersion,omitempty"` + NumberOfWorkers *int64 `json:"numberOfWorkers,omitempty"` + PhpVersion *string `json:"phpVersion,omitempty"` + PowerShellVersion *string `json:"powerShellVersion,omitempty"` + PreWarmedInstanceCount *int64 `json:"preWarmedInstanceCount,omitempty"` + PublicNetworkAccess *string `json:"publicNetworkAccess,omitempty"` + PublishingUsername *string `json:"publishingUsername,omitempty"` + Push *PushSettings `json:"push,omitempty"` + PythonVersion *string `json:"pythonVersion,omitempty"` + RemoteDebuggingEnabled *bool `json:"remoteDebuggingEnabled,omitempty"` + RemoteDebuggingVersion *string `json:"remoteDebuggingVersion,omitempty"` + RequestTracingEnabled *bool `json:"requestTracingEnabled,omitempty"` + RequestTracingExpirationTime *string `json:"requestTracingExpirationTime,omitempty"` + ScmIPSecurityRestrictions *[]IPSecurityRestriction `json:"scmIpSecurityRestrictions,omitempty"` + ScmIPSecurityRestrictionsDefaultAction *DefaultAction `json:"scmIpSecurityRestrictionsDefaultAction,omitempty"` + ScmIPSecurityRestrictionsUseMain *bool `json:"scmIpSecurityRestrictionsUseMain,omitempty"` + ScmMinTlsVersion *SupportedTlsVersions `json:"scmMinTlsVersion,omitempty"` + ScmType *ScmType `json:"scmType,omitempty"` + TracingOptions *string `json:"tracingOptions,omitempty"` + Use32BitWorkerProcess *bool `json:"use32BitWorkerProcess,omitempty"` + VirtualApplications *[]VirtualApplication `json:"virtualApplications,omitempty"` + VnetName *string `json:"vnetName,omitempty"` + VnetPrivatePortsCount *int64 `json:"vnetPrivatePortsCount,omitempty"` + VnetRouteAllEnabled *bool `json:"vnetRouteAllEnabled,omitempty"` + WebSocketsEnabled *bool `json:"webSocketsEnabled,omitempty"` + WebsiteTimeZone *string `json:"websiteTimeZone,omitempty"` + WindowsFxVersion *string `json:"windowsFxVersion,omitempty"` + XManagedServiceIdentityId *int64 `json:"xManagedServiceIdentityId,omitempty"` +} + +func (o *SiteConfig) GetRequestTracingExpirationTimeAsTime() (*time.Time, error) { + if o.RequestTracingExpirationTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.RequestTracingExpirationTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *SiteConfig) SetRequestTracingExpirationTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.RequestTracingExpirationTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigresource.go new file mode 100644 index 000000000000..46d60ffe0b99 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigresource.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteConfigResource struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SiteConfig `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfo.go new file mode 100644 index 000000000000..2fea88a6a47e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfo.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteConfigurationSnapshotInfo struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SiteConfigurationSnapshotInfoProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfoproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfoproperties.go new file mode 100644 index 000000000000..8907cc179db5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfoproperties.go @@ -0,0 +1,27 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteConfigurationSnapshotInfoProperties struct { + SnapshotId *int64 `json:"snapshotId,omitempty"` + Time *string `json:"time,omitempty"` +} + +func (o *SiteConfigurationSnapshotInfoProperties) GetTimeAsTime() (*time.Time, error) { + if o.Time == nil { + return nil, nil + } + return dates.ParseAsFormat(o.Time, "2006-01-02T15:04:05Z07:00") +} + +func (o *SiteConfigurationSnapshotInfoProperties) SetTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.Time = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfo.go new file mode 100644 index 000000000000..918563b2f1d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfo.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteExtensionInfo struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SiteExtensionInfoProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfoproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfoproperties.go new file mode 100644 index 000000000000..4a10138d54c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfoproperties.go @@ -0,0 +1,57 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteExtensionInfoProperties struct { + Authors *[]string `json:"authors,omitempty"` + Comment *string `json:"comment,omitempty"` + Description *string `json:"description,omitempty"` + DownloadCount *int64 `json:"download_count,omitempty"` + ExtensionId *string `json:"extension_id,omitempty"` + ExtensionType *SiteExtensionType `json:"extension_type,omitempty"` + ExtensionUrl *string `json:"extension_url,omitempty"` + FeedUrl *string `json:"feed_url,omitempty"` + IconUrl *string `json:"icon_url,omitempty"` + InstalledDateTime *string `json:"installed_date_time,omitempty"` + InstallerCommandLineParams *string `json:"installer_command_line_params,omitempty"` + LicenseUrl *string `json:"license_url,omitempty"` + LocalIsLatestVersion *bool `json:"local_is_latest_version,omitempty"` + LocalPath *string `json:"local_path,omitempty"` + ProjectUrl *string `json:"project_url,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + PublishedDateTime *string `json:"published_date_time,omitempty"` + Summary *string `json:"summary,omitempty"` + Title *string `json:"title,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (o *SiteExtensionInfoProperties) GetInstalledDateTimeAsTime() (*time.Time, error) { + if o.InstalledDateTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.InstalledDateTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *SiteExtensionInfoProperties) SetInstalledDateTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.InstalledDateTime = &formatted +} + +func (o *SiteExtensionInfoProperties) GetPublishedDateTimeAsTime() (*time.Time, error) { + if o.PublishedDateTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.PublishedDateTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *SiteExtensionInfoProperties) SetPublishedDateTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.PublishedDateTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelimits.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelimits.go new file mode 100644 index 000000000000..271933cbb7df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelimits.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteLimits struct { + MaxDiskSizeInMb *int64 `json:"maxDiskSizeInMb,omitempty"` + MaxMemoryInMb *int64 `json:"maxMemoryInMb,omitempty"` + MaxPercentageCPU *float64 `json:"maxPercentageCpu,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfig.go new file mode 100644 index 000000000000..91bb4451cdef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfig.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteLogsConfig struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SiteLogsConfigProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfigproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfigproperties.go new file mode 100644 index 000000000000..1b853da7ad6e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfigproperties.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteLogsConfigProperties struct { + ApplicationLogs *ApplicationLogsConfig `json:"applicationLogs,omitempty"` + DetailedErrorMessages *EnabledConfig `json:"detailedErrorMessages,omitempty"` + FailedRequestsTracing *EnabledConfig `json:"failedRequestsTracing,omitempty"` + HTTPLogs *HTTPLogsConfig `json:"httpLogs,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitemachinekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitemachinekey.go new file mode 100644 index 000000000000..c6d65bc957de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitemachinekey.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteMachineKey struct { + Decryption *string `json:"decryption,omitempty"` + DecryptionKey *string `json:"decryptionKey,omitempty"` + Validation *string `json:"validation,omitempty"` + ValidationKey *string `json:"validationKey,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresource.go new file mode 100644 index 000000000000..ca1829f5c667 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresource.go @@ -0,0 +1,17 @@ +package webapps + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SitePatchResource struct { + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SitePatchResourceProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresourceproperties.go new file mode 100644 index 000000000000..f9d877d4c32d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresourceproperties.go @@ -0,0 +1,78 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SitePatchResourceProperties struct { + AvailabilityState *SiteAvailabilityState `json:"availabilityState,omitempty"` + ClientAffinityEnabled *bool `json:"clientAffinityEnabled,omitempty"` + ClientCertEnabled *bool `json:"clientCertEnabled,omitempty"` + ClientCertExclusionPaths *string `json:"clientCertExclusionPaths,omitempty"` + ClientCertMode *ClientCertMode `json:"clientCertMode,omitempty"` + CloningInfo *CloningInfo `json:"cloningInfo,omitempty"` + ContainerSize *int64 `json:"containerSize,omitempty"` + CustomDomainVerificationId *string `json:"customDomainVerificationId,omitempty"` + DailyMemoryTimeQuota *int64 `json:"dailyMemoryTimeQuota,omitempty"` + DefaultHostName *string `json:"defaultHostName,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + EnabledHostNames *[]string `json:"enabledHostNames,omitempty"` + HTTPSOnly *bool `json:"httpsOnly,omitempty"` + HostNameSslStates *[]HostNameSslState `json:"hostNameSslStates,omitempty"` + HostNames *[]string `json:"hostNames,omitempty"` + HostNamesDisabled *bool `json:"hostNamesDisabled,omitempty"` + HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` + HyperV *bool `json:"hyperV,omitempty"` + InProgressOperationId *string `json:"inProgressOperationId,omitempty"` + IsDefaultContainer *bool `json:"isDefaultContainer,omitempty"` + IsXenon *bool `json:"isXenon,omitempty"` + KeyVaultReferenceIdentity *string `json:"keyVaultReferenceIdentity,omitempty"` + LastModifiedTimeUtc *string `json:"lastModifiedTimeUtc,omitempty"` + MaxNumberOfWorkers *int64 `json:"maxNumberOfWorkers,omitempty"` + OutboundIPAddresses *string `json:"outboundIpAddresses,omitempty"` + PossibleOutboundIPAddresses *string `json:"possibleOutboundIpAddresses,omitempty"` + RedundancyMode *RedundancyMode `json:"redundancyMode,omitempty"` + RepositorySiteName *string `json:"repositorySiteName,omitempty"` + Reserved *bool `json:"reserved,omitempty"` + ResourceGroup *string `json:"resourceGroup,omitempty"` + ScmSiteAlsoStopped *bool `json:"scmSiteAlsoStopped,omitempty"` + ServerFarmId *string `json:"serverFarmId,omitempty"` + SiteConfig *SiteConfig `json:"siteConfig,omitempty"` + SlotSwapStatus *SlotSwapStatus `json:"slotSwapStatus,omitempty"` + State *string `json:"state,omitempty"` + StorageAccountRequired *bool `json:"storageAccountRequired,omitempty"` + SuspendedTill *string `json:"suspendedTill,omitempty"` + TargetSwapSlot *string `json:"targetSwapSlot,omitempty"` + TrafficManagerHostNames *[]string `json:"trafficManagerHostNames,omitempty"` + UsageState *UsageState `json:"usageState,omitempty"` + VirtualNetworkSubnetId *string `json:"virtualNetworkSubnetId,omitempty"` +} + +func (o *SitePatchResourceProperties) GetLastModifiedTimeUtcAsTime() (*time.Time, error) { + if o.LastModifiedTimeUtc == nil { + return nil, nil + } + return dates.ParseAsFormat(o.LastModifiedTimeUtc, "2006-01-02T15:04:05Z07:00") +} + +func (o *SitePatchResourceProperties) SetLastModifiedTimeUtcAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.LastModifiedTimeUtc = &formatted +} + +func (o *SitePatchResourceProperties) GetSuspendedTillAsTime() (*time.Time, error) { + if o.SuspendedTill == nil { + return nil, nil + } + return dates.ParseAsFormat(o.SuspendedTill, "2006-01-02T15:04:05Z07:00") +} + +func (o *SitePatchResourceProperties) SetSuspendedTillAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.SuspendedTill = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflag.go new file mode 100644 index 000000000000..fd18d5d39f69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflag.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SitePhpErrorLogFlag struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SitePhpErrorLogFlagProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflagproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflagproperties.go new file mode 100644 index 000000000000..4a9465a064b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflagproperties.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SitePhpErrorLogFlagProperties struct { + LocalLogErrors *string `json:"localLogErrors,omitempty"` + LocalLogErrorsMaxLength *string `json:"localLogErrorsMaxLength,omitempty"` + MasterLogErrors *string `json:"masterLogErrors,omitempty"` + MasterLogErrorsMaxLength *string `json:"masterLogErrorsMaxLength,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteproperties.go new file mode 100644 index 000000000000..2652a0f07ad3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteproperties.go @@ -0,0 +1,86 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteProperties struct { + AvailabilityState *SiteAvailabilityState `json:"availabilityState,omitempty"` + ClientAffinityEnabled *bool `json:"clientAffinityEnabled,omitempty"` + ClientCertEnabled *bool `json:"clientCertEnabled,omitempty"` + ClientCertExclusionPaths *string `json:"clientCertExclusionPaths,omitempty"` + ClientCertMode *ClientCertMode `json:"clientCertMode,omitempty"` + CloningInfo *CloningInfo `json:"cloningInfo,omitempty"` + ContainerSize *int64 `json:"containerSize,omitempty"` + CustomDomainVerificationId *string `json:"customDomainVerificationId,omitempty"` + DailyMemoryTimeQuota *int64 `json:"dailyMemoryTimeQuota,omitempty"` + DaprConfig *DaprConfig `json:"daprConfig,omitempty"` + DefaultHostName *string `json:"defaultHostName,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + EnabledHostNames *[]string `json:"enabledHostNames,omitempty"` + HTTPSOnly *bool `json:"httpsOnly,omitempty"` + HostNameSslStates *[]HostNameSslState `json:"hostNameSslStates,omitempty"` + HostNames *[]string `json:"hostNames,omitempty"` + HostNamesDisabled *bool `json:"hostNamesDisabled,omitempty"` + HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` + HyperV *bool `json:"hyperV,omitempty"` + InProgressOperationId *string `json:"inProgressOperationId,omitempty"` + IsDefaultContainer *bool `json:"isDefaultContainer,omitempty"` + IsXenon *bool `json:"isXenon,omitempty"` + KeyVaultReferenceIdentity *string `json:"keyVaultReferenceIdentity,omitempty"` + LastModifiedTimeUtc *string `json:"lastModifiedTimeUtc,omitempty"` + ManagedEnvironmentId *string `json:"managedEnvironmentId,omitempty"` + MaxNumberOfWorkers *int64 `json:"maxNumberOfWorkers,omitempty"` + OutboundIPAddresses *string `json:"outboundIpAddresses,omitempty"` + PossibleOutboundIPAddresses *string `json:"possibleOutboundIpAddresses,omitempty"` + PublicNetworkAccess *string `json:"publicNetworkAccess,omitempty"` + RedundancyMode *RedundancyMode `json:"redundancyMode,omitempty"` + RepositorySiteName *string `json:"repositorySiteName,omitempty"` + Reserved *bool `json:"reserved,omitempty"` + ResourceConfig *ResourceConfig `json:"resourceConfig,omitempty"` + ResourceGroup *string `json:"resourceGroup,omitempty"` + ScmSiteAlsoStopped *bool `json:"scmSiteAlsoStopped,omitempty"` + ServerFarmId *string `json:"serverFarmId,omitempty"` + SiteConfig *SiteConfig `json:"siteConfig,omitempty"` + SlotSwapStatus *SlotSwapStatus `json:"slotSwapStatus,omitempty"` + State *string `json:"state,omitempty"` + StorageAccountRequired *bool `json:"storageAccountRequired,omitempty"` + SuspendedTill *string `json:"suspendedTill,omitempty"` + TargetSwapSlot *string `json:"targetSwapSlot,omitempty"` + TrafficManagerHostNames *[]string `json:"trafficManagerHostNames,omitempty"` + UsageState *UsageState `json:"usageState,omitempty"` + VirtualNetworkSubnetId *string `json:"virtualNetworkSubnetId,omitempty"` + VnetContentShareEnabled *bool `json:"vnetContentShareEnabled,omitempty"` + VnetImagePullEnabled *bool `json:"vnetImagePullEnabled,omitempty"` + VnetRouteAllEnabled *bool `json:"vnetRouteAllEnabled,omitempty"` + WorkloadProfileName *string `json:"workloadProfileName,omitempty"` +} + +func (o *SiteProperties) GetLastModifiedTimeUtcAsTime() (*time.Time, error) { + if o.LastModifiedTimeUtc == nil { + return nil, nil + } + return dates.ParseAsFormat(o.LastModifiedTimeUtc, "2006-01-02T15:04:05Z07:00") +} + +func (o *SiteProperties) SetLastModifiedTimeUtcAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.LastModifiedTimeUtc = &formatted +} + +func (o *SiteProperties) GetSuspendedTillAsTime() (*time.Time, error) { + if o.SuspendedTill == nil { + return nil, nil + } + return dates.ParseAsFormat(o.SuspendedTill, "2006-01-02T15:04:05Z07:00") +} + +func (o *SiteProperties) SetSuspendedTillAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.SuspendedTill = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrol.go new file mode 100644 index 000000000000..8b8a43b83b15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrol.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteSourceControl struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SiteSourceControlProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrolproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrolproperties.go new file mode 100644 index 000000000000..f19c33a2a345 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrolproperties.go @@ -0,0 +1,14 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SiteSourceControlProperties struct { + Branch *string `json:"branch,omitempty"` + DeploymentRollbackEnabled *bool `json:"deploymentRollbackEnabled,omitempty"` + GitHubActionConfiguration *GitHubActionConfiguration `json:"gitHubActionConfiguration,omitempty"` + IsGitHubAction *bool `json:"isGitHubAction,omitempty"` + IsManualIntegration *bool `json:"isManualIntegration,omitempty"` + IsMercurial *bool `json:"isMercurial,omitempty"` + RepoUrl *string `json:"repoUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignames.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignames.go new file mode 100644 index 000000000000..34cbe7ce3541 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignames.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SlotConfigNames struct { + AppSettingNames *[]string `json:"appSettingNames,omitempty"` + AzureStorageConfigNames *[]string `json:"azureStorageConfigNames,omitempty"` + ConnectionStringNames *[]string `json:"connectionStringNames,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignamesresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignamesresource.go new file mode 100644 index 000000000000..dea993a310dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignamesresource.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SlotConfigNamesResource struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SlotConfigNames `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifference.go new file mode 100644 index 000000000000..433c86817c4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifference.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SlotDifference struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SlotDifferenceProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifferenceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifferenceproperties.go new file mode 100644 index 000000000000..79f90d274fa8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifferenceproperties.go @@ -0,0 +1,14 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SlotDifferenceProperties struct { + Description *string `json:"description,omitempty"` + DiffRule *string `json:"diffRule,omitempty"` + Level *string `json:"level,omitempty"` + SettingName *string `json:"settingName,omitempty"` + SettingType *string `json:"settingType,omitempty"` + ValueInCurrentSlot *string `json:"valueInCurrentSlot,omitempty"` + ValueInTargetSlot *string `json:"valueInTargetSlot,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotswapstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotswapstatus.go new file mode 100644 index 000000000000..c9eb5b7eeff2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotswapstatus.go @@ -0,0 +1,28 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SlotSwapStatus struct { + DestinationSlotName *string `json:"destinationSlotName,omitempty"` + SourceSlotName *string `json:"sourceSlotName,omitempty"` + TimestampUtc *string `json:"timestampUtc,omitempty"` +} + +func (o *SlotSwapStatus) GetTimestampUtcAsTime() (*time.Time, error) { + if o.TimestampUtc == nil { + return nil, nil + } + return dates.ParseAsFormat(o.TimestampUtc, "2006-01-02T15:04:05Z07:00") +} + +func (o *SlotSwapStatus) SetTimestampUtcAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.TimestampUtc = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slowrequestsbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slowrequestsbasedtrigger.go new file mode 100644 index 000000000000..6d2bb3b50506 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slowrequestsbasedtrigger.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SlowRequestsBasedTrigger struct { + Count *int64 `json:"count,omitempty"` + Path *string `json:"path,omitempty"` + TimeInterval *string `json:"timeInterval,omitempty"` + TimeTaken *string `json:"timeTaken,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshot.go new file mode 100644 index 000000000000..6a113202c946 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshot.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Snapshot struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SnapshotProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotproperties.go new file mode 100644 index 000000000000..e6cf11407ff8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotproperties.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SnapshotProperties struct { + Time *string `json:"time,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrecoverysource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrecoverysource.go new file mode 100644 index 000000000000..5a9d31cacbb5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrecoverysource.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SnapshotRecoverySource struct { + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequest.go new file mode 100644 index 000000000000..f3b15067bd68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequest.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SnapshotRestoreRequest struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SnapshotRestoreRequestProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequestproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequestproperties.go new file mode 100644 index 000000000000..43d7139eb35a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequestproperties.go @@ -0,0 +1,13 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SnapshotRestoreRequestProperties struct { + IgnoreConflictingHostNames *bool `json:"ignoreConflictingHostNames,omitempty"` + Overwrite bool `json:"overwrite"` + RecoverConfiguration *bool `json:"recoverConfiguration,omitempty"` + RecoverySource *SnapshotRecoverySource `json:"recoverySource,omitempty"` + SnapshotTime *string `json:"snapshotTime,omitempty"` + UseDRSecondary *bool `json:"useDRSecondary,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesbasedtrigger.go new file mode 100644 index 000000000000..38028980ea1e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesbasedtrigger.go @@ -0,0 +1,13 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StatusCodesBasedTrigger struct { + Count *int64 `json:"count,omitempty"` + Path *string `json:"path,omitempty"` + Status *int64 `json:"status,omitempty"` + SubStatus *int64 `json:"subStatus,omitempty"` + TimeInterval *string `json:"timeInterval,omitempty"` + Win32Status *int64 `json:"win32Status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesrangebasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesrangebasedtrigger.go new file mode 100644 index 000000000000..399920aec5aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesrangebasedtrigger.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StatusCodesRangeBasedTrigger struct { + Count *int64 `json:"count,omitempty"` + Path *string `json:"path,omitempty"` + StatusCodes *string `json:"statusCodes,omitempty"` + TimeInterval *string `json:"timeInterval,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptions.go new file mode 100644 index 000000000000..45da1f0d070b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptions.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageMigrationOptions struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *StorageMigrationOptionsProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptionsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptionsproperties.go new file mode 100644 index 000000000000..102ddb713f61 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptionsproperties.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageMigrationOptionsProperties struct { + AzurefilesConnectionString string `json:"azurefilesConnectionString"` + AzurefilesShare string `json:"azurefilesShare"` + BlockWriteAccessToSite *bool `json:"blockWriteAccessToSite,omitempty"` + SwitchSiteAfterMigration *bool `json:"switchSiteAfterMigration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponse.go new file mode 100644 index 000000000000..9422d63effd9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponse.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageMigrationResponse struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *StorageMigrationResponseProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponseproperties.go new file mode 100644 index 000000000000..780c084c6648 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponseproperties.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageMigrationResponseProperties struct { + OperationId *string `json:"operationId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_stringdictionary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_stringdictionary.go new file mode 100644 index 000000000000..20fcaaa92b1a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_stringdictionary.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StringDictionary struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetwork.go new file mode 100644 index 000000000000..db095809863d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetwork.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SwiftVirtualNetwork struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SwiftVirtualNetworkProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetworkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetworkproperties.go new file mode 100644 index 000000000000..8c1ca0faa388 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetworkproperties.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SwiftVirtualNetworkProperties struct { + SubnetResourceId *string `json:"subnetResourceId,omitempty"` + SwiftSupported *bool `json:"swiftSupported,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_tokenstore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_tokenstore.go new file mode 100644 index 000000000000..4668774ac257 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_tokenstore.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TokenStore struct { + AzureBlobStorage *BlobStorageTokenStore `json:"azureBlobStorage,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + FileSystem *FileSystemTokenStore `json:"fileSystem,omitempty"` + TokenRefreshExtensionHours *float64 `json:"tokenRefreshExtensionHours,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistory.go new file mode 100644 index 000000000000..2eb9852d4b7d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistory.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TriggeredJobHistory struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *TriggeredJobHistoryProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistoryproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistoryproperties.go new file mode 100644 index 000000000000..37c8ad7df32d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistoryproperties.go @@ -0,0 +1,8 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TriggeredJobHistoryProperties struct { + Runs *[]TriggeredJobRun `json:"runs,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobrun.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobrun.go new file mode 100644 index 000000000000..695a8d5a98de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobrun.go @@ -0,0 +1,48 @@ +package webapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TriggeredJobRun struct { + Duration *string `json:"duration,omitempty"` + EndTime *string `json:"end_time,omitempty"` + ErrorUrl *string `json:"error_url,omitempty"` + JobName *string `json:"job_name,omitempty"` + OutputUrl *string `json:"output_url,omitempty"` + StartTime *string `json:"start_time,omitempty"` + Status *TriggeredWebJobStatus `json:"status,omitempty"` + Trigger *string `json:"trigger,omitempty"` + Url *string `json:"url,omitempty"` + WebJobId *string `json:"web_job_id,omitempty"` + WebJobName *string `json:"web_job_name,omitempty"` +} + +func (o *TriggeredJobRun) GetEndTimeAsTime() (*time.Time, error) { + if o.EndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *TriggeredJobRun) SetEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndTime = &formatted +} + +func (o *TriggeredJobRun) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *TriggeredJobRun) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjob.go new file mode 100644 index 000000000000..aab21f2dfae0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjob.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TriggeredWebJob struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *TriggeredWebJobProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjobproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjobproperties.go new file mode 100644 index 000000000000..0205e0bc246a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjobproperties.go @@ -0,0 +1,19 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TriggeredWebJobProperties struct { + Error *string `json:"error,omitempty"` + ExtraInfoUrl *string `json:"extra_info_url,omitempty"` + HistoryUrl *string `json:"history_url,omitempty"` + LatestRun *TriggeredJobRun `json:"latest_run,omitempty"` + PublicNetworkAccess *string `json:"publicNetworkAccess,omitempty"` + RunCommand *string `json:"run_command,omitempty"` + SchedulerLogsUrl *string `json:"scheduler_logs_url,omitempty"` + Settings *map[string]interface{} `json:"settings,omitempty"` + StorageAccountRequired *bool `json:"storageAccountRequired,omitempty"` + Url *string `json:"url,omitempty"` + UsingSdk *bool `json:"using_sdk,omitempty"` + WebJobType *WebJobType `json:"web_job_type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitter.go new file mode 100644 index 000000000000..16018b814adc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitter.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Twitter struct { + Enabled *bool `json:"enabled,omitempty"` + Registration *TwitterRegistration `json:"registration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitterregistration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitterregistration.go new file mode 100644 index 000000000000..15d70794ab75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitterregistration.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TwitterRegistration struct { + ConsumerKey *string `json:"consumerKey,omitempty"` + ConsumerSecretSettingName *string `json:"consumerSecretSettingName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_user.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_user.go new file mode 100644 index 000000000000..0be0f9a35072 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_user.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type User struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *UserProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_userproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_userproperties.go new file mode 100644 index 000000000000..42d228f76dec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_userproperties.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UserProperties struct { + PublishingPassword *string `json:"publishingPassword,omitempty"` + PublishingPasswordHash *string `json:"publishingPasswordHash,omitempty"` + PublishingPasswordHashSalt *string `json:"publishingPasswordHashSalt,omitempty"` + PublishingUserName string `json:"publishingUserName"` + ScmUri *string `json:"scmUri,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualapplication.go new file mode 100644 index 000000000000..cd9a20e0a979 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualapplication.go @@ -0,0 +1,11 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualApplication struct { + PhysicalPath *string `json:"physicalPath,omitempty"` + PreloadEnabled *bool `json:"preloadEnabled,omitempty"` + VirtualDirectories *[]VirtualDirectory `json:"virtualDirectories,omitempty"` + VirtualPath *string `json:"virtualPath,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualdirectory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualdirectory.go new file mode 100644 index 000000000000..e12dd8d0b49e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualdirectory.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualDirectory struct { + PhysicalPath *string `json:"physicalPath,omitempty"` + VirtualPath *string `json:"virtualPath,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgateway.go new file mode 100644 index 000000000000..59ce757342bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgateway.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetGateway struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VnetGatewayProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgatewayproperties.go new file mode 100644 index 000000000000..e90b78642ee7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgatewayproperties.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetGatewayProperties struct { + VnetName *string `json:"vnetName,omitempty"` + VpnPackageUri string `json:"vpnPackageUri"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinfo.go new file mode 100644 index 000000000000..9ef7b52d7de7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinfo.go @@ -0,0 +1,14 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetInfo struct { + CertBlob *string `json:"certBlob,omitempty"` + CertThumbprint *string `json:"certThumbprint,omitempty"` + DnsServers *string `json:"dnsServers,omitempty"` + IsSwift *bool `json:"isSwift,omitempty"` + ResyncRequired *bool `json:"resyncRequired,omitempty"` + Routes *[]VnetRoute `json:"routes,omitempty"` + VnetResourceId *string `json:"vnetResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinforesource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinforesource.go new file mode 100644 index 000000000000..6b6193e0fee1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinforesource.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetInfoResource struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VnetInfo `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetroute.go new file mode 100644 index 000000000000..58365af2214e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetroute.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetRoute struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VnetRouteProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetrouteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetrouteproperties.go new file mode 100644 index 000000000000..00d288ce7d75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetrouteproperties.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetRouteProperties struct { + EndAddress *string `json:"endAddress,omitempty"` + RouteType *RouteType `json:"routeType,omitempty"` + StartAddress *string `json:"startAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjob.go new file mode 100644 index 000000000000..6dfbc3f0a583 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjob.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebJob struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *WebJobProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjobproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjobproperties.go new file mode 100644 index 000000000000..b67f1af63a06 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjobproperties.go @@ -0,0 +1,14 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebJobProperties struct { + Error *string `json:"error,omitempty"` + ExtraInfoUrl *string `json:"extra_info_url,omitempty"` + RunCommand *string `json:"run_command,omitempty"` + Settings *map[string]interface{} `json:"settings,omitempty"` + Url *string `json:"url,omitempty"` + UsingSdk *bool `json:"using_sdk,omitempty"` + WebJobType *WebJobType `json:"web_job_type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatus.go new file mode 100644 index 000000000000..7cf30ebf35a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatus.go @@ -0,0 +1,12 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebSiteInstanceStatus struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *WebSiteInstanceStatusProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatusproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatusproperties.go new file mode 100644 index 000000000000..fac5b723630b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatusproperties.go @@ -0,0 +1,13 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebSiteInstanceStatusProperties struct { + ConsoleUrl *string `json:"consoleUrl,omitempty"` + Containers *map[string]ContainerInfo `json:"containers,omitempty"` + DetectorUrl *string `json:"detectorUrl,omitempty"` + HealthCheckUrl *string `json:"healthCheckUrl,omitempty"` + State *SiteRuntimeState `json:"state,omitempty"` + StatusUrl *string `json:"statusUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowartifacts.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowartifacts.go new file mode 100644 index 000000000000..524984818892 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowartifacts.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkflowArtifacts struct { + AppSettings *interface{} `json:"appSettings,omitempty"` + Files *map[string]interface{} `json:"files,omitempty"` + FilesToDelete *[]string `json:"filesToDelete,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelope.go new file mode 100644 index 000000000000..6f4ea5ce5965 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelope.go @@ -0,0 +1,13 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkflowEnvelope struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *WorkflowEnvelopeProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelopeproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelopeproperties.go new file mode 100644 index 000000000000..a14bffda962e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelopeproperties.go @@ -0,0 +1,10 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkflowEnvelopeProperties struct { + Files *map[string]interface{} `json:"files,omitempty"` + FlowState *WorkflowState `json:"flowState,omitempty"` + Health *WorkflowHealth `json:"health,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowhealth.go new file mode 100644 index 000000000000..f9ec376ba05f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowhealth.go @@ -0,0 +1,9 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkflowHealth struct { + Error *ErrorEntity `json:"error,omitempty"` + State WorkflowHealthState `json:"state"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/predicates.go new file mode 100644 index 000000000000..a1ca5255822a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/predicates.go @@ -0,0 +1,760 @@ +package webapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApiKVReferenceOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p ApiKVReferenceOperationPredicate) Matches(input ApiKVReference) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type BackupItemOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p BackupItemOperationPredicate) Matches(input BackupItem) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type ContinuousWebJobOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p ContinuousWebJobOperationPredicate) Matches(input ContinuousWebJob) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type CsmDeploymentStatusOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p CsmDeploymentStatusOperationPredicate) Matches(input CsmDeploymentStatus) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type CsmPublishingCredentialsPoliciesEntityOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p CsmPublishingCredentialsPoliciesEntityOperationPredicate) Matches(input CsmPublishingCredentialsPoliciesEntity) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type CsmUsageQuotaOperationPredicate struct { + CurrentValue *int64 + Limit *int64 + NextResetTime *string + Unit *string +} + +func (p CsmUsageQuotaOperationPredicate) Matches(input CsmUsageQuota) bool { + + if p.CurrentValue != nil && (input.CurrentValue == nil || *p.CurrentValue != *input.CurrentValue) { + return false + } + + if p.Limit != nil && (input.Limit == nil || *p.Limit != *input.Limit) { + return false + } + + if p.NextResetTime != nil && (input.NextResetTime == nil || *p.NextResetTime != *input.NextResetTime) { + return false + } + + if p.Unit != nil && (input.Unit == nil || *p.Unit != *input.Unit) { + return false + } + + return true +} + +type DeploymentOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p DeploymentOperationPredicate) Matches(input Deployment) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type FunctionEnvelopeOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p FunctionEnvelopeOperationPredicate) Matches(input FunctionEnvelope) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type HostNameBindingOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p HostNameBindingOperationPredicate) Matches(input HostNameBinding) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type IdentifierOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p IdentifierOperationPredicate) Matches(input Identifier) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type PerfMonResponseOperationPredicate struct { + Code *string + Message *string +} + +func (p PerfMonResponseOperationPredicate) Matches(input PerfMonResponse) bool { + + if p.Code != nil && (input.Code == nil || *p.Code != *input.Code) { + return false + } + + if p.Message != nil && (input.Message == nil || *p.Message != *input.Message) { + return false + } + + return true +} + +type ProcessInfoOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p ProcessInfoOperationPredicate) Matches(input ProcessInfo) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type ProcessModuleInfoOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p ProcessModuleInfoOperationPredicate) Matches(input ProcessModuleInfo) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type ProcessThreadInfoOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p ProcessThreadInfoOperationPredicate) Matches(input ProcessThreadInfo) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type PublicCertificateOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p PublicCertificateOperationPredicate) Matches(input PublicCertificate) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type RemotePrivateEndpointConnectionARMResourceOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p RemotePrivateEndpointConnectionARMResourceOperationPredicate) Matches(input RemotePrivateEndpointConnectionARMResource) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type SiteOperationPredicate struct { + Id *string + Kind *string + Location *string + Name *string + Type *string +} + +func (p SiteOperationPredicate) Matches(input Site) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Location != nil && *p.Location != input.Location { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type SiteConfigResourceOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p SiteConfigResourceOperationPredicate) Matches(input SiteConfigResource) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type SiteConfigurationSnapshotInfoOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p SiteConfigurationSnapshotInfoOperationPredicate) Matches(input SiteConfigurationSnapshotInfo) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type SiteExtensionInfoOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p SiteExtensionInfoOperationPredicate) Matches(input SiteExtensionInfo) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type SlotDifferenceOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p SlotDifferenceOperationPredicate) Matches(input SlotDifference) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type SnapshotOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p SnapshotOperationPredicate) Matches(input Snapshot) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type TriggeredJobHistoryOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p TriggeredJobHistoryOperationPredicate) Matches(input TriggeredJobHistory) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type TriggeredWebJobOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p TriggeredWebJobOperationPredicate) Matches(input TriggeredWebJob) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type WebJobOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p WebJobOperationPredicate) Matches(input WebJob) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type WebSiteInstanceStatusOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p WebSiteInstanceStatusOperationPredicate) Matches(input WebSiteInstanceStatus) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type WorkflowEnvelopeOperationPredicate struct { + Id *string + Kind *string + Location *string + Name *string + Type *string +} + +func (p WorkflowEnvelopeOperationPredicate) Matches(input WorkflowEnvelope) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/version.go new file mode 100644 index 000000000000..71c919c2360f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/version.go @@ -0,0 +1,12 @@ +package webapps + +import "fmt" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-01-01" + +func userAgent() string { + return fmt.Sprintf("hashicorp/go-azure-sdk/webapps/%s", defaultApiVersion) +} diff --git a/vendor/modules.txt b/vendor/modules.txt index d3f8d7d27c08..fd7382ea1e71 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -991,6 +991,8 @@ github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/comm github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis +github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders +github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01 github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub github.com/hashicorp/go-azure-sdk/sdk/auth From 5d1eafa3f56cfb4a974173bf47602112bcfc3cdd Mon Sep 17 00:00:00 2001 From: Xiaxin Date: Thu, 4 Jan 2024 16:10:47 +0800 Subject: [PATCH 2/6] update sdk for linux web app --- internal/clients/client.go | 4 +- internal/services/appservice/client/client.go | 15 +- .../appservice/helpers/auth_v2_schema.go | 736 +++++++++++++++++- .../helpers/common_web_app_schema.go | 394 ++++++++++ .../helpers/linux_web_app_schema.go | 182 +++-- .../appservice/helpers/publish_app.go | 101 +++ .../appservice/helpers/shared_schema.go | 442 +++++++++++ .../appservice/helpers/web_app_slot_schema.go | 143 ++-- .../appservice/linux_web_app_data_source.go | 161 ++-- .../appservice/linux_web_app_resource.go | 394 +++++----- .../appservice/linux_web_app_slot_resource.go | 437 ++++++----- 11 files changed, 2361 insertions(+), 648 deletions(-) diff --git a/internal/clients/client.go b/internal/clients/client.go index f1a776d27bfb..58c6d51af439 100644 --- a/internal/clients/client.go +++ b/internal/clients/client.go @@ -315,7 +315,9 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error if client.AppPlatform, err = appPlatform.NewClient(o); err != nil { return fmt.Errorf("building clients for AppPlatform: %+v", err) } - client.AppService = appService.NewClient(o) + if client.AppService, err = appService.NewClient(o); err != nil { + return fmt.Errorf("building clients for AppService: %+v", err) + } if client.ArcKubernetes, err = arckubernetes.NewClient(o); err != nil { return fmt.Errorf("building clients for ArcKubernetes: %+v", err) } diff --git a/internal/services/appservice/client/client.go b/internal/services/appservice/client/client.go index 478019cf055f..d57303d624e8 100644 --- a/internal/services/appservice/client/client.go +++ b/internal/services/appservice/client/client.go @@ -6,6 +6,7 @@ package client import ( "fmt" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders" "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/common" "github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web" @@ -15,7 +16,9 @@ type Client struct { AppServiceEnvironmentClient *web.AppServiceEnvironmentsClient BaseClient *web.BaseClient ServicePlanClient *web.AppServicePlansClient - WebAppsClient *webapps.WebAppsClient + WebAppsClient *web.AppsClient + LinuxWebAppsClient *webapps.WebAppsClient + AvailabilityClient *resourceproviders.ResourceProvidersClient } func NewClient(o *common.ClientOptions) (*Client, error) { @@ -25,11 +28,14 @@ func NewClient(o *common.ClientOptions) (*Client, error) { baseClient := web.NewWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) o.ConfigureClient(&baseClient.Client, o.ResourceManagerAuthorizer) - webAppServiceClient, err := webapps.NewWebAppsClientWithBaseURI(o.Environment.ResourceManager) + webAppServiceClient := web.NewAppsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) + o.ConfigureClient(&webAppServiceClient.Client, o.ResourceManagerAuthorizer) + + linuxWebAppServiceClient, err := webapps.NewWebAppsClientWithBaseURI(o.Environment.ResourceManager) if err != nil { return nil, fmt.Errorf("building WebApps client: %+v", err) } - o.Configure(webAppServiceClient.Client, o.Authorizers.ResourceManager) + o.Configure(linuxWebAppServiceClient.Client, o.Authorizers.ResourceManager) servicePlanClient := web.NewAppServicePlansClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) o.ConfigureClient(&servicePlanClient.Client, o.ResourceManagerAuthorizer) @@ -38,6 +44,7 @@ func NewClient(o *common.ClientOptions) (*Client, error) { AppServiceEnvironmentClient: &appServiceEnvironmentClient, BaseClient: &baseClient, ServicePlanClient: &servicePlanClient, - WebAppsClient: webAppServiceClient, + LinuxWebAppsClient: linuxWebAppServiceClient, + WebAppsClient: &webAppServiceClient, }, nil } diff --git a/internal/services/appservice/helpers/auth_v2_schema.go b/internal/services/appservice/helpers/auth_v2_schema.go index 62c706e7f099..2dc0899f0392 100644 --- a/internal/services/appservice/helpers/auth_v2_schema.go +++ b/internal/services/appservice/helpers/auth_v2_schema.go @@ -8,6 +8,7 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -528,6 +529,64 @@ func expandAuthV2LoginSettings(input []AuthV2Login) *web.Login { return result } +func expandAuthV2LoginSettingsLinuxWebApps(input []AuthV2Login) *webapps.Login { + if len(input) == 0 { + return nil + } + login := input[0] + result := &webapps.Login{ + Routes: &webapps.LoginRoutes{}, + TokenStore: &webapps.TokenStore{ + Enabled: pointer.To(login.TokenStoreEnabled), + FileSystem: &webapps.FileSystemTokenStore{}, + AzureBlobStorage: &webapps.BlobStorageTokenStore{}, + }, + PreserveUrlFragmentsForLogins: pointer.To(login.PreserveURLFragmentsForLogins), + Nonce: &webapps.Nonce{ + ValidateNonce: pointer.To(login.ValidateNonce), + NonceExpirationInterval: pointer.To(login.NonceExpirationTime), + }, + CookieExpiration: &webapps.CookieExpiration{ + Convention: pointer.To(webapps.CookieExpirationConvention(login.CookieExpirationConvention)), + TimeToExpiration: pointer.To(login.CookieExpirationTime), + }, + } + + if login.TokenFilesystemPath != "" || login.TokenBlobStorageSAS != "" { + result.TokenStore.Enabled = pointer.To(true) + if login.TokenFilesystemPath != "" { + result.TokenStore.FileSystem = &webapps.FileSystemTokenStore{ + Directory: pointer.To(login.TokenFilesystemPath), + } + } + if login.TokenBlobStorageSAS != "" { + result.TokenStore.AzureBlobStorage = &webapps.BlobStorageTokenStore{ + SasUrlSettingName: pointer.To(login.TokenBlobStorageSAS), + } + } + } + + if login.LogoutEndpoint != "" { + result.Routes = &webapps.LoginRoutes{ + LogoutEndpoint: pointer.To(login.LogoutEndpoint), + } + } + result.TokenStore.TokenRefreshExtensionHours = pointer.To(login.TokenRefreshExtension) + if login.TokenFilesystemPath != "" { + result.TokenStore.FileSystem = &webapps.FileSystemTokenStore{ + Directory: pointer.To(login.TokenFilesystemPath), + } + } + if login.TokenBlobStorageSAS != "" { + result.TokenStore.AzureBlobStorage = &webapps.BlobStorageTokenStore{ + SasUrlSettingName: pointer.To(login.TokenBlobStorageSAS), + } + } + result.AllowedExternalRedirectUrls = pointer.To(login.AllowedExternalRedirectURLs) + + return result +} + func flattenAuthV2LoginSettings(input *web.Login) []AuthV2Login { if input == nil { return []AuthV2Login{} @@ -563,6 +622,43 @@ func flattenAuthV2LoginSettings(input *web.Login) []AuthV2Login { return []AuthV2Login{result} } +func flattenAuthV2LoginSettingsLinuxWebApps(input *webapps.Login) []AuthV2Login { + if input == nil { + return []AuthV2Login{} + } + result := AuthV2Login{ + PreserveURLFragmentsForLogins: pointer.From(input.PreserveUrlFragmentsForLogins), + AllowedExternalRedirectURLs: pointer.From(input.AllowedExternalRedirectUrls), + } + if routes := input.Routes; routes != nil { + result.LogoutEndpoint = pointer.From(routes.LogoutEndpoint) + } + if token := input.TokenStore; token != nil { + result.TokenStoreEnabled = pointer.From(token.Enabled) + result.TokenRefreshExtension = pointer.From(token.TokenRefreshExtensionHours) + if fs := token.FileSystem; fs != nil { + result.TokenFilesystemPath = pointer.From(fs.Directory) + } + if bs := token.AzureBlobStorage; bs != nil { + result.TokenBlobStorageSAS = pointer.From(bs.SasUrlSettingName) + } + } + + if nonce := input.Nonce; nonce != nil { + result.NonceExpirationTime = pointer.From(nonce.NonceExpirationInterval) + result.ValidateNonce = pointer.From(nonce.ValidateNonce) + } + + if cookie := input.CookieExpiration; cookie != nil { + result.CookieExpirationTime = pointer.From(cookie.TimeToExpiration) + if cookie.Convention != nil { + result.CookieExpirationConvention = string(*cookie.Convention) + } + } + + return []AuthV2Login{result} +} + type AppleAuthV2Settings struct { ClientId string `tfschema:"client_id"` ClientSecretSettingName string `tfschema:"client_secret_setting_name"` @@ -664,6 +760,26 @@ func expandAppleAuthV2Settings(input []AppleAuthV2Settings) *web.Apple { } } +func expandAppleAuthV2SettingsLinuxWebApps(input []AppleAuthV2Settings) *webapps.Apple { + if len(input) == 1 { + apple := input[0] + return &webapps.Apple{ + Enabled: pointer.To(true), + Registration: &webapps.AppleRegistration{ + ClientId: pointer.To(apple.ClientId), + ClientSecretSettingName: pointer.To(apple.ClientSecretSettingName), + }, + Login: &webapps.LoginScopes{ + Scopes: pointer.To(apple.LoginScopes), + }, + } + } + + return &webapps.Apple{ + Enabled: pointer.To(false), + } +} + func flattenAppleAuthV2Settings(input *web.Apple) []AppleAuthV2Settings { if input == nil || !pointer.From(input.Enabled) { return []AppleAuthV2Settings{} @@ -682,6 +798,24 @@ func flattenAppleAuthV2Settings(input *web.Apple) []AppleAuthV2Settings { return []AppleAuthV2Settings{result} } +func flattenAppleAuthV2SettingsLinuxWebApps(input *webapps.Apple) []AppleAuthV2Settings { + if input == nil || !pointer.From(input.Enabled) { + return []AppleAuthV2Settings{} + } + result := AppleAuthV2Settings{} + + props := *input + if reg := props.Registration; reg != nil { + result.ClientId = pointer.From(reg.ClientId) + result.ClientSecretSettingName = pointer.From(reg.ClientSecretSettingName) + } + if loginScopes := props.Login; loginScopes != nil { + result.LoginScopes = pointer.From(loginScopes.Scopes) + } + + return []AppleAuthV2Settings{result} +} + type AadAuthV2Settings struct { TenantAuthURI string `tfschema:"tenant_auth_endpoint"` // Maps to OpenIDIssuer, takes the form `https://login.microsoftonline.com/v2.0/{tenant-guid}/` ClientId string `tfschema:"client_id"` @@ -998,6 +1132,78 @@ func expandAadAuthV2Settings(input []AadAuthV2Settings) *web.AzureActiveDirector return result } +func expandAadAuthV2SettingsLinuxWebApps(input []AadAuthV2Settings) *webapps.AzureActiveDirectory { + result := &webapps.AzureActiveDirectory{ + Enabled: pointer.To(false), + } + + if len(input) == 1 { + aad := input[0] + result = &webapps.AzureActiveDirectory{ + Enabled: pointer.To(true), + Registration: &webapps.AzureActiveDirectoryRegistration{ + OpenIdIssuer: pointer.To(aad.TenantAuthURI), + ClientId: pointer.To(aad.ClientId), + }, + Login: &webapps.AzureActiveDirectoryLogin{ + DisableWWWAuthenticate: pointer.To(aad.DisableWWWAuth), + }, + } + + if aad.ClientSecretSettingName != "" { + result.Registration.ClientSecretSettingName = pointer.To(aad.ClientSecretSettingName) + } + + if aad.ClientSecretCertificateThumbprint != "" { + result.Registration.ClientSecretCertificateThumbprint = pointer.To(aad.ClientSecretCertificateThumbprint) + } + + if len(aad.LoginParameters) > 0 { + params := make([]string, 0) + for k, v := range aad.LoginParameters { + params = append(params, fmt.Sprintf("%s=%s", k, v)) + } + result.Login.LoginParameters = ¶ms + } + + if len(aad.JWTAllowedGroups) != 0 || len(aad.JWTAllowedClientApps) != 0 { + if result.Validation == nil { + result.Validation = &webapps.AzureActiveDirectoryValidation{} + } + result.Validation.JwtClaimChecks = &webapps.JwtClaimChecks{} + if len(aad.JWTAllowedGroups) != 0 { + result.Validation.JwtClaimChecks.AllowedGroups = pointer.To(aad.JWTAllowedGroups) + } + if len(aad.JWTAllowedClientApps) != 0 { + result.Validation.JwtClaimChecks.AllowedClientApplications = pointer.To(aad.JWTAllowedClientApps) + } + } + + if len(aad.AllowedGroups) > 0 || len(aad.AllowedIdentities) > 0 { + if result.Validation == nil { + result.Validation = &webapps.AzureActiveDirectoryValidation{} + } + result.Validation.DefaultAuthorizationPolicy = &webapps.DefaultAuthorizationPolicy{ + AllowedPrincipals: &webapps.AllowedPrincipals{}, + } + if len(aad.AllowedGroups) > 0 { + result.Validation.DefaultAuthorizationPolicy.AllowedPrincipals.Groups = pointer.To(aad.AllowedGroups) + } + if len(aad.AllowedIdentities) > 0 { + result.Validation.DefaultAuthorizationPolicy.AllowedPrincipals.Identities = pointer.To(aad.AllowedIdentities) + } + } + if len(aad.AllowedAudiences) > 0 { + if result.Validation == nil { + result.Validation = &webapps.AzureActiveDirectoryValidation{} + } + result.Validation.AllowedAudiences = pointer.To(aad.AllowedAudiences) + } + } + + return result +} + func flattenAadAuthV2Settings(input *web.AzureActiveDirectory) []AadAuthV2Settings { if input == nil || !pointer.From(input.Enabled) { return []AadAuthV2Settings{} @@ -1046,6 +1252,54 @@ func flattenAadAuthV2Settings(input *web.AzureActiveDirectory) []AadAuthV2Settin return []AadAuthV2Settings{result} } +func flattenAadAuthV2SettingsLinuxWebApps(input *webapps.AzureActiveDirectory) []AadAuthV2Settings { + if input == nil || !pointer.From(input.Enabled) { + return []AadAuthV2Settings{} + } + + result := AadAuthV2Settings{} + + if reg := input.Registration; reg != nil { + result.TenantAuthURI = pointer.From(reg.OpenIdIssuer) + result.ClientId = pointer.From(reg.ClientId) + result.ClientSecretSettingName = pointer.From(reg.ClientSecretSettingName) + result.ClientSecretCertificateThumbprint = pointer.From(reg.ClientSecretCertificateThumbprint) + } + + if login := input.Login; login != nil { + result.DisableWWWAuth = pointer.From(login.DisableWWWAuthenticate) + if loginParamsRaw := login.LoginParameters; loginParamsRaw != nil { + loginParams := make(map[string]string) + for _, v := range *loginParamsRaw { + parts := strings.Split(v, "=") + if len(parts) == 2 && parts[0] != "" { + loginParams[parts[0]] = parts[1] + } + } + result.LoginParameters = loginParams + } + + } + + if validation := input.Validation; validation != nil { + if validation.AllowedAudiences != nil { + result.AllowedAudiences = *validation.AllowedAudiences + } + if jwt := validation.JwtClaimChecks; jwt != nil { + result.JWTAllowedGroups = pointer.From(jwt.AllowedGroups) + result.JWTAllowedClientApps = pointer.From(jwt.AllowedClientApplications) + } + if defaultPolicy := validation.DefaultAuthorizationPolicy; defaultPolicy != nil { + result.AllowedApplications = pointer.From(defaultPolicy.AllowedApplications) + if defaultPolicy.AllowedPrincipals != nil { + result.AllowedGroups = pointer.From(defaultPolicy.AllowedPrincipals.Groups) + result.AllowedIdentities = pointer.From(defaultPolicy.AllowedPrincipals.Identities) + } + } + } + + return []AadAuthV2Settings{result} +} type StaticWebAppAuthV2Settings struct { ClientId string `tfschema:"client_id"` @@ -1112,6 +1366,22 @@ func expandStaticWebAppAuthV2Settings(input []StaticWebAppAuthV2Settings) *web.A } } +func expandStaticWebAppAuthV2SettingsLinuxWebApps(input []StaticWebAppAuthV2Settings) *webapps.AzureStaticWebApps { + if len(input) == 1 { + swa := input[0] + return &webapps.AzureStaticWebApps{ + Enabled: pointer.To(true), + Registration: &webapps.AzureStaticWebAppsRegistration{ + ClientId: pointer.To(swa.ClientId), + }, + } + } + + return &webapps.AzureStaticWebApps{ + Enabled: pointer.To(false), + } +} + func flattenStaticWebAppAuthV2Settings(input *web.AzureStaticWebApps) []StaticWebAppAuthV2Settings { if input == nil || (input.Enabled != nil && !*input.Enabled) { return []StaticWebAppAuthV2Settings{} @@ -1128,6 +1398,22 @@ func flattenStaticWebAppAuthV2Settings(input *web.AzureStaticWebApps) []StaticWe return []StaticWebAppAuthV2Settings{result} } +func flattenStaticWebAppAuthV2SettingsLinuxWebApps(input *webapps.AzureStaticWebApps) []StaticWebAppAuthV2Settings { + if input == nil || (input.Enabled != nil && !*input.Enabled) { + return []StaticWebAppAuthV2Settings{} + } + + result := StaticWebAppAuthV2Settings{} + + if props := input; props != nil && pointer.From(props.Enabled) { + if props.Registration != nil { + result.ClientId = pointer.From(props.Registration.ClientId) + } + } + + return []StaticWebAppAuthV2Settings{result} +} + type CustomOIDCAuthV2Settings struct { Name string `tfschema:"name"` ClientId string `tfschema:"client_id"` @@ -1351,30 +1637,66 @@ func expandCustomOIDCAuthV2Settings(input []CustomOIDCAuthV2Settings) map[string return result } -func flattenCustomOIDCAuthV2Settings(input map[string]*web.CustomOpenIDConnectProvider) []CustomOIDCAuthV2Settings { +func expandCustomOIDCAuthV2SettingsLinuxWebApps(input []CustomOIDCAuthV2Settings) *map[string]webapps.CustomOpenIdConnectProvider { if len(input) == 0 { - return []CustomOIDCAuthV2Settings{} + return nil } - - result := make([]CustomOIDCAuthV2Settings, 0) - for k, v := range input { - if !pointer.From(v.Enabled) { + result := make(map[string]webapps.CustomOpenIdConnectProvider) + for _, v := range input { + if v.Name == "" { continue - } else { - provider := CustomOIDCAuthV2Settings{ - Name: k, - } - if reg := v.Registration; reg != nil { - provider.ClientId = pointer.From(reg.ClientID) - if reg.ClientCredential != nil { - provider.ClientSecretSettingName = pointer.From(reg.ClientCredential.ClientSecretSettingName) - provider.ClientCredentialMethod = string(reg.ClientCredential.Method) - } - if config := reg.OpenIDConnectConfiguration; config != nil { - provider.OpenIDConfigurationEndpoint = pointer.From(config.WellKnownOpenIDConfiguration) - provider.AuthorizationEndpoint = pointer.From(config.AuthorizationEndpoint) - provider.TokenEndpoint = pointer.From(config.TokenEndpoint) - provider.IssuerEndpoint = pointer.From(config.Issuer) + } + provider := webapps.CustomOpenIdConnectProvider{ + Enabled: pointer.To(true), + Registration: &webapps.OpenIdConnectRegistration{ + ClientId: pointer.To(v.ClientId), + ClientCredential: &webapps.OpenIdConnectClientCredential{ + Method: pointer.To(webapps.ClientCredentialMethodClientSecretPost), + ClientSecretSettingName: pointer.To(fmt.Sprintf("%s_PROVIDER_AUTHENTICATION_SECRET", strings.ToUpper(v.Name))), + }, + OpenIdConnectConfiguration: &webapps.OpenIdConnectConfig{ + WellKnownOpenIdConfiguration: pointer.To(v.OpenIDConfigurationEndpoint), + }, + }, + Login: &webapps.OpenIdConnectLogin{ + Scopes: pointer.To(v.Scopes), + }, + } + + if v.NameClaimType != "" { + provider.Login.NameClaimType = pointer.To(v.NameClaimType) + } + + result[v.Name] = provider + } + + return &result +} + +func flattenCustomOIDCAuthV2Settings(input map[string]*web.CustomOpenIDConnectProvider) []CustomOIDCAuthV2Settings { + if len(input) == 0 { + return []CustomOIDCAuthV2Settings{} + } + + result := make([]CustomOIDCAuthV2Settings, 0) + for k, v := range input { + if !pointer.From(v.Enabled) { + continue + } else { + provider := CustomOIDCAuthV2Settings{ + Name: k, + } + if reg := v.Registration; reg != nil { + provider.ClientId = pointer.From(reg.ClientID) + if reg.ClientCredential != nil { + provider.ClientSecretSettingName = pointer.From(reg.ClientCredential.ClientSecretSettingName) + provider.ClientCredentialMethod = string(reg.ClientCredential.Method) + } + if config := reg.OpenIDConnectConfiguration; config != nil { + provider.OpenIDConfigurationEndpoint = pointer.From(config.WellKnownOpenIDConfiguration) + provider.AuthorizationEndpoint = pointer.From(config.AuthorizationEndpoint) + provider.TokenEndpoint = pointer.From(config.TokenEndpoint) + provider.IssuerEndpoint = pointer.From(config.Issuer) provider.CertificationURI = pointer.From(config.CertificationURI) } } @@ -1391,6 +1713,48 @@ func flattenCustomOIDCAuthV2Settings(input map[string]*web.CustomOpenIDConnectPr return result } +func flattenCustomOIDCAuthV2SettingsLinuxWebApps(input *map[string]webapps.CustomOpenIdConnectProvider) []CustomOIDCAuthV2Settings { + if input == nil { + return []CustomOIDCAuthV2Settings{} + } + + result := make([]CustomOIDCAuthV2Settings, 0) + for k, v := range *input { + if !pointer.From(v.Enabled) { + continue + } else { + provider := CustomOIDCAuthV2Settings{ + Name: k, + } + if reg := v.Registration; reg != nil { + provider.ClientId = pointer.From(reg.ClientId) + if reg.ClientCredential != nil { + provider.ClientSecretSettingName = pointer.From(reg.ClientCredential.ClientSecretSettingName) + if reg.ClientCredential != nil && reg.ClientCredential.Method != nil { + provider.ClientCredentialMethod = string(*reg.ClientCredential.Method) + } + } + if config := reg.OpenIdConnectConfiguration; config != nil { + provider.OpenIDConfigurationEndpoint = pointer.From(config.WellKnownOpenIdConfiguration) + provider.AuthorizationEndpoint = pointer.From(config.AuthorizationEndpoint) + provider.TokenEndpoint = pointer.From(config.TokenEndpoint) + provider.IssuerEndpoint = pointer.From(config.Issuer) + provider.CertificationURI = pointer.From(config.CertificationUri) + } + } + if login := v.Login; login != nil { + if login.Scopes != nil { + provider.Scopes = *login.Scopes + } + provider.NameClaimType = pointer.From(login.NameClaimType) + } + result = append(result, provider) + } + } + + return result +} + type FacebookAuthV2Settings struct { AppId string `tfschema:"app_id"` AppSecretSettingName string `tfschema:"app_secret_setting_name"` @@ -1512,6 +1876,30 @@ func expandFacebookAuthV2Settings(input []FacebookAuthV2Settings) *web.Facebook } } +func expandFacebookAuthV2SettingsLinuxWebApps(input []FacebookAuthV2Settings) *webapps.Facebook { + if len(input) == 1 { + facebook := input[0] + result := &webapps.Facebook{ + Enabled: pointer.To(true), + Registration: &webapps.AppRegistration{ + AppId: pointer.To(facebook.AppId), + AppSecretSettingName: pointer.To(facebook.AppSecretSettingName), + }, + } + + result.GraphApiVersion = pointer.To(facebook.GraphAPIVersion) + result.Login = &webapps.LoginScopes{ + Scopes: pointer.To(facebook.LoginScopes), + } + + return result + } + + return &webapps.Facebook{ + Enabled: pointer.To(false), + } +} + func flattenFacebookAuthV2Settings(input *web.Facebook) []FacebookAuthV2Settings { if input == nil || !pointer.From(input.Enabled) { return []FacebookAuthV2Settings{} @@ -1532,6 +1920,26 @@ func flattenFacebookAuthV2Settings(input *web.Facebook) []FacebookAuthV2Settings return []FacebookAuthV2Settings{result} } +func flattenFacebookAuthV2SettingsLinuxWebApps(input *webapps.Facebook) []FacebookAuthV2Settings { + if input == nil || !pointer.From(input.Enabled) { + return []FacebookAuthV2Settings{} + } + + result := FacebookAuthV2Settings{ + GraphAPIVersion: pointer.From(input.GraphApiVersion), + } + + if reg := input.Registration; reg != nil { + result.AppId = pointer.From(reg.AppId) + result.AppSecretSettingName = pointer.From(reg.AppSecretSettingName) + } + if login := input.Login; login != nil { + result.LoginScopes = pointer.From(login.Scopes) + } + + return []FacebookAuthV2Settings{result} +} + type GithubAuthV2Settings struct { ClientId string `tfschema:"client_id"` ClientSecretSettingName string `tfschema:"client_secret_setting_name"` @@ -1634,6 +2042,28 @@ func expandGitHubAuthV2Settings(input []GithubAuthV2Settings) *web.GitHub { } } +func expandGitHubAuthV2SettingsLinuxWebApps(input []GithubAuthV2Settings) *webapps.GitHub { + if len(input) == 1 { + github := input[0] + result := &webapps.GitHub{ + Enabled: pointer.To(true), + Registration: &webapps.ClientRegistration{ + ClientId: pointer.To(github.ClientId), + ClientSecretSettingName: pointer.To(github.ClientSecretSettingName), + }, + Login: &webapps.LoginScopes{ + Scopes: pointer.To(github.LoginScopes), + }, + } + + return result + } + + return &webapps.GitHub{ + Enabled: pointer.To(false), + } +} + func flattenGitHubAuthV2Settings(input *web.GitHub) []GithubAuthV2Settings { if input == nil || !pointer.From(input.Enabled) { return []GithubAuthV2Settings{} @@ -1652,6 +2082,24 @@ func flattenGitHubAuthV2Settings(input *web.GitHub) []GithubAuthV2Settings { return []GithubAuthV2Settings{result} } +func flattenGitHubAuthV2SettingsLinuxWebApps(input *webapps.GitHub) []GithubAuthV2Settings { + if input == nil || !pointer.From(input.Enabled) { + return []GithubAuthV2Settings{} + } + + result := GithubAuthV2Settings{} + + if reg := input.Registration; reg != nil { + result.ClientId = pointer.From(reg.ClientId) + result.ClientSecretSettingName = pointer.From(reg.ClientSecretSettingName) + } + if login := input.Login; login != nil && login.Scopes != nil { + result.LoginScopes = pointer.From(login.Scopes) + } + + return []GithubAuthV2Settings{result} +} + type GoogleAuthV2Settings struct { ClientId string `tfschema:"client_id"` ClientSecretSettingName string `tfschema:"client_secret_setting_name"` @@ -1779,6 +2227,30 @@ func expandGoogleAuthV2Settings(input []GoogleAuthV2Settings) *web.Google { } } +func expandGoogleAuthV2SettingsLinuxWebApps(input []GoogleAuthV2Settings) *webapps.Google { + if len(input) == 1 { + google := input[0] + return &webapps.Google{ + Enabled: pointer.To(true), + Registration: &webapps.ClientRegistration{ + ClientId: pointer.To(google.ClientId), + ClientSecretSettingName: pointer.To(google.ClientSecretSettingName), + }, + Validation: &webapps.AllowedAudiencesValidation{ + AllowedAudiences: pointer.To(google.AllowedAudiences), + }, + Login: &webapps.LoginScopes{ + Scopes: pointer.To(google.LoginScopes), + }, + } + + } + + return &webapps.Google{ + Enabled: pointer.To(false), + } +} + func flattenGoogleAuthV2Settings(input *web.Google) []GoogleAuthV2Settings { if input == nil || !pointer.From(input.Enabled) { return []GoogleAuthV2Settings{} @@ -1800,6 +2272,27 @@ func flattenGoogleAuthV2Settings(input *web.Google) []GoogleAuthV2Settings { return []GoogleAuthV2Settings{result} } +func flattenGoogleAuthV2SettingsLinuxWebApps(input *webapps.Google) []GoogleAuthV2Settings { + if input == nil || !pointer.From(input.Enabled) { + return []GoogleAuthV2Settings{} + } + + result := GoogleAuthV2Settings{} + + if reg := input.Registration; reg != nil { + result.ClientId = pointer.From(reg.ClientId) + result.ClientSecretSettingName = pointer.From(reg.ClientSecretSettingName) + } + if login := input.Login; login != nil && login.Scopes != nil { + result.LoginScopes = *login.Scopes + } + if val := input.Validation; val != nil && val.AllowedAudiences != nil { + result.LoginScopes = *val.AllowedAudiences + } + + return []GoogleAuthV2Settings{result} +} + type MicrosoftAuthV2Settings struct { ClientId string `tfschema:"client_id"` ClientSecretSettingName string `tfschema:"client_secret_setting_name"` @@ -1925,6 +2418,29 @@ func expandMicrosoftAuthV2Settings(input []MicrosoftAuthV2Settings) *web.LegacyM } } +func expandMicrosoftAuthV2SettingsLinuxWebApps(input []MicrosoftAuthV2Settings) *webapps.LegacyMicrosoftAccount { + if len(input) == 1 { + msft := input[0] + return &webapps.LegacyMicrosoftAccount{ + Enabled: pointer.To(true), + Registration: &webapps.ClientRegistration{ + ClientId: pointer.To(msft.ClientId), + ClientSecretSettingName: pointer.To(msft.ClientSecretSettingName), + }, + Validation: &webapps.AllowedAudiencesValidation{ + AllowedAudiences: pointer.To(msft.AllowedAudiences), + }, + Login: &webapps.LoginScopes{ + Scopes: pointer.To(msft.LoginScopes), + }, + } + } + + return &webapps.LegacyMicrosoftAccount{ + Enabled: pointer.To(false), + } +} + func flattenMicrosoftAuthV2Settings(input *web.LegacyMicrosoftAccount) []MicrosoftAuthV2Settings { if input == nil || !pointer.From(input.Enabled) { return []MicrosoftAuthV2Settings{} @@ -1946,6 +2462,27 @@ func flattenMicrosoftAuthV2Settings(input *web.LegacyMicrosoftAccount) []Microso return []MicrosoftAuthV2Settings{result} } +func flattenMicrosoftAuthV2SettingsLinuxWebApps(input *webapps.LegacyMicrosoftAccount) []MicrosoftAuthV2Settings { + if input == nil || !pointer.From(input.Enabled) { + return []MicrosoftAuthV2Settings{} + } + + result := MicrosoftAuthV2Settings{} + + if reg := input.Registration; reg != nil { + result.ClientId = pointer.From(reg.ClientId) + result.ClientSecretSettingName = pointer.From(reg.ClientSecretSettingName) + } + if login := input.Login; login != nil && login.Scopes != nil { + result.LoginScopes = *login.Scopes + } + if val := input.Validation; val != nil && val.AllowedAudiences != nil { + result.LoginScopes = *val.AllowedAudiences + } + + return []MicrosoftAuthV2Settings{result} +} + type TwitterAuthV2Settings struct { ConsumerKey string `tfschema:"consumer_key"` ConsumerSecretSettingName string `tfschema:"consumer_secret_setting_name"` @@ -2026,6 +2563,25 @@ func expandTwitterAuthV2Settings(input []TwitterAuthV2Settings) *web.Twitter { } } +func expandTwitterAuthV2SettingsLinuxWebApps(input []TwitterAuthV2Settings) *webapps.Twitter { + if len(input) == 1 { + twitter := input[0] + result := &webapps.Twitter{ + Enabled: pointer.To(true), + Registration: &webapps.TwitterRegistration{ + ConsumerKey: pointer.To(twitter.ConsumerKey), + ConsumerSecretSettingName: pointer.To(twitter.ConsumerSecretSettingName), + }, + } + + return result + } + + return &webapps.Twitter{ + Enabled: pointer.To(false), + } +} + func flattenTwitterAuthV2Settings(input *web.Twitter) []TwitterAuthV2Settings { if input == nil || !pointer.From(input.Enabled) { return []TwitterAuthV2Settings{} @@ -2043,6 +2599,23 @@ func flattenTwitterAuthV2Settings(input *web.Twitter) []TwitterAuthV2Settings { return nil } +func flattenTwitterAuthV2SettingsLinuxWebApps(input *webapps.Twitter) []TwitterAuthV2Settings { + if input == nil || !pointer.From(input.Enabled) { + return []TwitterAuthV2Settings{} + } + + if pointer.From(input.Enabled) { + result := TwitterAuthV2Settings{} + if reg := input.Registration; reg != nil { + result.ConsumerKey = pointer.From(reg.ConsumerKey) + result.ConsumerSecretSettingName = pointer.From(reg.ConsumerSecretSettingName) + } + return []TwitterAuthV2Settings{result} + } + + return nil +} + func ExpandAuthV2Settings(input []AuthV2Settings) *web.SiteAuthSettingsV2 { result := &web.SiteAuthSettingsV2{} if len(input) != 1 { @@ -2107,6 +2680,70 @@ func ExpandAuthV2Settings(input []AuthV2Settings) *web.SiteAuthSettingsV2 { return result } +func ExpandAuthV2SettingsLinuxWebApps(input []AuthV2Settings) *webapps.SiteAuthSettingsV2 { + result := &webapps.SiteAuthSettingsV2{} + if len(input) != 1 { + return result + } + + settings := input[0] + + props := &webapps.SiteAuthSettingsV2Properties{ + Platform: &webapps.AuthPlatform{ + Enabled: pointer.To(settings.AuthEnabled), + RuntimeVersion: pointer.To(settings.RuntimeVersion), + }, + GlobalValidation: &webapps.GlobalValidation{ + RequireAuthentication: pointer.To(settings.RequireAuth), + UnauthenticatedClientAction: pointer.To(webapps.UnauthenticatedClientActionV2(settings.UnauthenticatedAction)), + ExcludedPaths: pointer.To(settings.ExcludedPaths), + }, + IdentityProviders: &webapps.IdentityProviders{ + AzureActiveDirectory: expandAadAuthV2SettingsLinuxWebApps(settings.AzureActiveDirectoryAuth), + Facebook: expandFacebookAuthV2SettingsLinuxWebApps(settings.FacebookAuth), + GitHub: expandGitHubAuthV2SettingsLinuxWebApps(settings.GithubAuth), + Google: expandGoogleAuthV2SettingsLinuxWebApps(settings.GoogleAuth), + Twitter: expandTwitterAuthV2SettingsLinuxWebApps(settings.TwitterAuth), + CustomOpenIdConnectProviders: expandCustomOIDCAuthV2SettingsLinuxWebApps(settings.CustomOIDCAuth), + LegacyMicrosoftAccount: expandMicrosoftAuthV2SettingsLinuxWebApps(settings.MicrosoftAuth), + Apple: expandAppleAuthV2SettingsLinuxWebApps(settings.AppleAuth), + AzureStaticWebApps: expandStaticWebAppAuthV2SettingsLinuxWebApps(settings.AzureStaticWebAuth), + }, + Login: expandAuthV2LoginSettingsLinuxWebApps(settings.Login), + HTTPSettings: &webapps.HTTPSettings{ + RequireHTTPS: pointer.To(settings.RequireHTTPS), + Routes: &webapps.HTTPSettingsRoutes{ + ApiPrefix: pointer.To(settings.HttpRoutesAPIPrefix), + }, + ForwardProxy: &webapps.ForwardProxy{ + Convention: pointer.To(webapps.ForwardProxyConvention(settings.ForwardProxyConvention)), + }, + }, + } + + // Platform + if settings.ConfigFilePath != "" { + props.Platform.ConfigFilePath = pointer.To(settings.ConfigFilePath) + } + + // Global + if settings.DefaultAuthProvider != "" { + props.GlobalValidation.RedirectToProvider = pointer.To(settings.DefaultAuthProvider) + } + + // HTTP + if settings.ForwardProxyCustomHostHeaderName != "" { + props.HTTPSettings.ForwardProxy.CustomHostHeaderName = pointer.To(settings.ForwardProxyCustomHostHeaderName) + } + if settings.ForwardProxyCustomSchemeHeaderName != "" { + props.HTTPSettings.ForwardProxy.CustomProtoHeaderName = pointer.To(settings.ForwardProxyCustomSchemeHeaderName) + } + + result.Properties = props + + return result +} + func FlattenAuthV2Settings(input web.SiteAuthSettingsV2) []AuthV2Settings { if input.SiteAuthSettingsV2Properties == nil { return []AuthV2Settings{} @@ -2159,3 +2796,60 @@ func FlattenAuthV2Settings(input web.SiteAuthSettingsV2) []AuthV2Settings { return []AuthV2Settings{result} } + +func FlattenAuthV2SettingsLinuxWebApps(input *webapps.SiteAuthSettingsV2) []AuthV2Settings { + if input == nil || input.Properties == nil { + return []AuthV2Settings{} + } + + settings := *input.Properties + + result := AuthV2Settings{} + + if platform := settings.Platform; platform != nil { + result.AuthEnabled = pointer.From(platform.Enabled) + result.RuntimeVersion = pointer.From(platform.RuntimeVersion) + result.ConfigFilePath = pointer.From(platform.ConfigFilePath) + } + + if global := settings.GlobalValidation; global != nil { + result.RequireAuth = pointer.From(global.RequireAuthentication) + result.DefaultAuthProvider = pointer.From(global.RedirectToProvider) + result.ExcludedPaths = pointer.From(global.ExcludedPaths) + if global.UnauthenticatedClientAction != nil { + result.UnauthenticatedAction = string(*global.UnauthenticatedClientAction) + } + } + + if http := settings.HTTPSettings; http != nil { + result.RequireHTTPS = pointer.From(http.RequireHTTPS) + if http.Routes != nil { + result.HttpRoutesAPIPrefix = pointer.From(http.Routes.ApiPrefix) + } + if fp := http.ForwardProxy; fp != nil { + result.ForwardProxyCustomHostHeaderName = pointer.From(fp.CustomHostHeaderName) + result.ForwardProxyCustomSchemeHeaderName = pointer.From(fp.CustomProtoHeaderName) + if fp.Convention != nil { + result.ForwardProxyConvention = string(*fp.Convention) + } + } + } + + if login := settings.Login; login != nil { + result.Login = flattenAuthV2LoginSettingsLinuxWebApps(login) + } + + if authProviders := settings.IdentityProviders; authProviders != nil { + result.AppleAuth = flattenAppleAuthV2SettingsLinuxWebApps(authProviders.Apple) + result.AzureActiveDirectoryAuth = flattenAadAuthV2SettingsLinuxWebApps(authProviders.AzureActiveDirectory) + result.AzureStaticWebAuth = flattenStaticWebAppAuthV2SettingsLinuxWebApps(authProviders.AzureStaticWebApps) + result.CustomOIDCAuth = flattenCustomOIDCAuthV2SettingsLinuxWebApps(authProviders.CustomOpenIdConnectProviders) + result.FacebookAuth = flattenFacebookAuthV2SettingsLinuxWebApps(authProviders.Facebook) + result.GithubAuth = flattenGitHubAuthV2SettingsLinuxWebApps(authProviders.GitHub) + result.GoogleAuth = flattenGoogleAuthV2SettingsLinuxWebApps(authProviders.Google) + result.MicrosoftAuth = flattenMicrosoftAuthV2SettingsLinuxWebApps(authProviders.LegacyMicrosoftAccount) + result.TwitterAuth = flattenTwitterAuthV2SettingsLinuxWebApps(authProviders.Twitter) + } + + return []AuthV2Settings{result} +} diff --git a/internal/services/appservice/helpers/common_web_app_schema.go b/internal/services/appservice/helpers/common_web_app_schema.go index 392aafb4e312..375d0f3d6281 100644 --- a/internal/services/appservice/helpers/common_web_app_schema.go +++ b/internal/services/appservice/helpers/common_web_app_schema.go @@ -9,6 +9,7 @@ import ( "github.com/Azure/go-autorest/autorest/date" "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web" @@ -876,6 +877,67 @@ func ExpandLogsConfig(config []LogsConfig) *web.SiteLogsConfig { return result } +func ExpandLogsConfigLinuxWebApps(config []LogsConfig) webapps.SiteLogsConfig { + result := webapps.SiteLogsConfig{} + if len(config) == 0 { + return result + } + + result.Properties = &webapps.SiteLogsConfigProperties{} + + logsConfig := config[0] + + if len(logsConfig.ApplicationLogs) == 1 { + appLogs := logsConfig.ApplicationLogs[0] + result.Properties.ApplicationLogs = &webapps.ApplicationLogsConfig{ + FileSystem: &webapps.FileSystemApplicationLogsConfig{ + Level: pointer.To(webapps.LogLevel(appLogs.FileSystemLevel)), + }, + } + if len(appLogs.AzureBlobStorage) == 1 { + appLogsBlobs := appLogs.AzureBlobStorage[0] + result.Properties.ApplicationLogs.AzureBlobStorage = &webapps.AzureBlobStorageApplicationLogsConfig{ + Level: pointer.To(webapps.LogLevel(appLogsBlobs.Level)), + SasUrl: pointer.To(appLogsBlobs.SasUrl), + RetentionInDays: pointer.To(int64(appLogsBlobs.RetentionInDays)), + } + } + } + + if len(logsConfig.HttpLogs) == 1 { + httpLogs := logsConfig.HttpLogs[0] + result.Properties.HTTPLogs = &webapps.HTTPLogsConfig{} + + if len(httpLogs.FileSystems) == 1 { + httpLogFileSystem := httpLogs.FileSystems[0] + result.Properties.HTTPLogs.FileSystem = &webapps.FileSystemHTTPLogsConfig{ + Enabled: pointer.To(true), + RetentionInMb: pointer.To(int64(httpLogFileSystem.RetentionMB)), + RetentionInDays: pointer.To(int64(httpLogFileSystem.RetentionDays)), + } + } + + if len(httpLogs.AzureBlobStorage) == 1 { + httpLogsBlobStorage := httpLogs.AzureBlobStorage[0] + result.Properties.HTTPLogs.AzureBlobStorage = &webapps.AzureBlobStorageHTTPLogsConfig{ + Enabled: pointer.To(httpLogsBlobStorage.SasUrl != ""), + SasUrl: pointer.To(httpLogsBlobStorage.SasUrl), + RetentionInDays: pointer.To(int64(httpLogsBlobStorage.RetentionInDays)), + } + } + } + + result.Properties.DetailedErrorMessages = &webapps.EnabledConfig{ + Enabled: pointer.To(logsConfig.DetailedErrorMessages), + } + + result.Properties.FailedRequestsTracing = &webapps.EnabledConfig{ + Enabled: pointer.To(logsConfig.FailedRequestTracing), + } + + return result +} + func ExpandBackupConfig(backupConfigs []Backup) (*web.BackupRequest, error) { result := &web.BackupRequest{} if len(backupConfigs) == 0 { @@ -907,6 +969,37 @@ func ExpandBackupConfig(backupConfigs []Backup) (*web.BackupRequest, error) { return result, nil } +func ExpandBackupConfigLinuxWebApps(backupConfigs []Backup) (*webapps.BackupRequest, error) { + result := &webapps.BackupRequest{} + if len(backupConfigs) == 0 { + return result, nil + } + + backupConfig := backupConfigs[0] + backupSchedule := backupConfig.Schedule[0] + result.Properties = &webapps.BackupRequestProperties{ + Enabled: pointer.To(backupConfig.Enabled), + BackupName: pointer.To(backupConfig.Name), + StorageAccountUrl: backupConfig.StorageAccountUrl, + BackupSchedule: &webapps.BackupSchedule{ + FrequencyInterval: int64(backupSchedule.FrequencyInterval), + FrequencyUnit: webapps.FrequencyUnit(backupSchedule.FrequencyUnit), + KeepAtLeastOneBackup: backupSchedule.KeepAtLeastOneBackup, + RetentionPeriodInDays: int64(backupSchedule.RetentionPeriodDays), + }, + } + + if backupSchedule.StartTime != "" { + dateTimeToStart, err := time.Parse(time.RFC3339, backupSchedule.StartTime) + if err != nil { + return nil, fmt.Errorf("parsing back up start_time: %+v", err) + } + result.Properties.BackupSchedule.StartTime = pointer.To(date.Time{Time: dateTimeToStart}.String()) + } + + return result, nil +} + func ExpandStorageConfig(storageConfigs []StorageAccount) *web.AzureStoragePropertyDictionaryResource { storageAccounts := make(map[string]*web.AzureStorageInfoValue) result := &web.AzureStoragePropertyDictionaryResource{} @@ -930,6 +1023,29 @@ func ExpandStorageConfig(storageConfigs []StorageAccount) *web.AzureStoragePrope return result } +func ExpandStorageConfigLinuxWebApps(storageConfigs []StorageAccount) webapps.AzureStoragePropertyDictionaryResource { + storageAccounts := make(map[string]webapps.AzureStorageInfoValue) + result := webapps.AzureStoragePropertyDictionaryResource{} + if len(storageConfigs) == 0 { + result.Properties = &storageAccounts + return result + } + + for _, v := range storageConfigs { + storageAccounts[v.Name] = webapps.AzureStorageInfoValue{ + Type: pointer.To(webapps.AzureStorageType(v.Type)), + AccountName: pointer.To(v.AccountName), + ShareName: pointer.To(v.ShareName), + AccessKey: pointer.To(v.AccessKey), + MountPath: pointer.To(v.MountPath), + } + } + + result.Properties = &storageAccounts + + return result +} + func ExpandConnectionStrings(connectionStringsConfig []ConnectionString) *web.ConnectionStringDictionary { result := &web.ConnectionStringDictionary{} if len(connectionStringsConfig) == 0 { @@ -948,6 +1064,24 @@ func ExpandConnectionStrings(connectionStringsConfig []ConnectionString) *web.Co return result } +func ExpandConnectionStringsLinuxWebApps(connectionStringsConfig []ConnectionString) webapps.ConnectionStringDictionary { + result := webapps.ConnectionStringDictionary{} + if len(connectionStringsConfig) == 0 { + return result + } + + connectionStrings := make(map[string]webapps.ConnStringValueTypePair) + for _, v := range connectionStringsConfig { + connectionStrings[v.Name] = webapps.ConnStringValueTypePair{ + Value: v.Value, + Type: webapps.ConnectionStringType(v.Type), + } + } + result.Properties = &connectionStrings + + return result +} + func expandVirtualApplications(virtualApplicationConfig []VirtualApplication) *[]web.VirtualApplication { if len(virtualApplicationConfig) == 0 { return nil @@ -1061,6 +1195,44 @@ func FlattenBackupConfig(backupRequest web.BackupRequest) []Backup { return []Backup{backup} } +func FlattenBackupConfigLinuxWebApps(backupRequest *webapps.BackupRequest) []Backup { + if backupRequest == nil || backupRequest.Properties == nil { + return []Backup{} + } + props := *backupRequest.Properties + backup := Backup{} + if props.BackupName != nil { + backup.Name = *props.BackupName + } + + backup.StorageAccountUrl = props.StorageAccountUrl + + if props.Enabled != nil { + backup.Enabled = *props.Enabled + } + + if schedule := props.BackupSchedule; schedule != nil { + backupSchedule := BackupSchedule{ + FrequencyUnit: string(schedule.FrequencyUnit), + FrequencyInterval: int(schedule.FrequencyInterval), + KeepAtLeastOneBackup: schedule.KeepAtLeastOneBackup, + RetentionPeriodDays: int(schedule.RetentionPeriodInDays), + } + + if schedule.StartTime != nil { + backupSchedule.StartTime = *schedule.StartTime + } + + if schedule.LastExecutionTime != nil { + backupSchedule.LastExecutionTime = *schedule.LastExecutionTime + } + + backup.Schedule = []BackupSchedule{backupSchedule} + } + + return []Backup{backup} +} + func FlattenLogsConfig(logsConfig web.SiteLogsConfig) []LogsConfig { if logsConfig.SiteLogsConfigProperties == nil { return []LogsConfig{} @@ -1143,6 +1315,89 @@ func FlattenLogsConfig(logsConfig web.SiteLogsConfig) []LogsConfig { return []LogsConfig{logs} } +func FlattenLogsConfigLinuxWebApps(logsConfig *webapps.SiteLogsConfig) []LogsConfig { + if logsConfig == nil || logsConfig.Properties == nil { + return []LogsConfig{} + } + props := *logsConfig.Properties + if onlyDefaultLoggingConfigLinuxWebApps(props) { + return nil + } + + logs := LogsConfig{} + + if props.ApplicationLogs != nil { + appLogs := *props.ApplicationLogs + applicationLog := ApplicationLog{} + + if appLogs.FileSystem != nil && appLogs.FileSystem.Level != nil && *appLogs.FileSystem.Level != webapps.LogLevelOff { + applicationLog.FileSystemLevel = string(*appLogs.FileSystem.Level) + if appLogs.AzureBlobStorage != nil && appLogs.AzureBlobStorage.Level != nil && *appLogs.AzureBlobStorage.Level != webapps.LogLevelOff { + blobStorage := AzureBlobStorage{} + if appLogs.AzureTableStorage.Level != nil { + blobStorage.Level = string(*appLogs.AzureBlobStorage.Level) + } + + blobStorage.SasUrl = pointer.From(appLogs.AzureBlobStorage.SasUrl) + + blobStorage.RetentionInDays = int(pointer.From(appLogs.AzureBlobStorage.RetentionInDays)) + + applicationLog.AzureBlobStorage = []AzureBlobStorage{blobStorage} + } + logs.ApplicationLogs = []ApplicationLog{applicationLog} + } + } + + if props.HTTPLogs != nil { + httpLogs := *props.HTTPLogs + httpLog := HttpLog{} + + if httpLogs.FileSystem != nil && (httpLogs.FileSystem.Enabled != nil && *httpLogs.FileSystem.Enabled) { + fileSystem := LogsFileSystem{} + if httpLogs.FileSystem.RetentionInMb != nil { + fileSystem.RetentionMB = int(*httpLogs.FileSystem.RetentionInMb) + } + + if httpLogs.FileSystem.RetentionInDays != nil { + fileSystem.RetentionDays = int(*httpLogs.FileSystem.RetentionInDays) + } + + httpLog.FileSystems = []LogsFileSystem{fileSystem} + } + + if httpLogs.AzureBlobStorage != nil && (httpLogs.AzureBlobStorage.Enabled != nil && *httpLogs.AzureBlobStorage.Enabled) { + blobStorage := AzureBlobStorageHttp{} + if httpLogs.AzureBlobStorage.SasUrl != nil { + blobStorage.SasUrl = *httpLogs.AzureBlobStorage.SasUrl + } + + if httpLogs.AzureBlobStorage.RetentionInDays != nil { + blobStorage.RetentionInDays = int(*httpLogs.AzureBlobStorage.RetentionInDays) + } + + if blobStorage.RetentionInDays != 0 || blobStorage.SasUrl != "" { + httpLog.AzureBlobStorage = []AzureBlobStorageHttp{blobStorage} + } + } + + if httpLog.FileSystems != nil || httpLog.AzureBlobStorage != nil { + logs.HttpLogs = []HttpLog{httpLog} + } + } + + // logs.DetailedErrorMessages = false + if props.DetailedErrorMessages != nil && props.DetailedErrorMessages.Enabled != nil { + logs.DetailedErrorMessages = *props.DetailedErrorMessages.Enabled + } + + // logs.FailedRequestTracing = false + if props.FailedRequestsTracing != nil && props.FailedRequestsTracing.Enabled != nil { + logs.FailedRequestTracing = *props.FailedRequestsTracing.Enabled + } + + return []LogsConfig{logs} +} + func onlyDefaultLoggingConfig(props web.SiteLogsConfigProperties) bool { if props.ApplicationLogs == nil || props.HTTPLogs == nil || props.FailedRequestsTracing == nil || props.DetailedErrorMessages == nil { return false @@ -1168,6 +1423,31 @@ func onlyDefaultLoggingConfig(props web.SiteLogsConfigProperties) bool { return true } +func onlyDefaultLoggingConfigLinuxWebApps(props webapps.SiteLogsConfigProperties) bool { + if props.ApplicationLogs == nil || props.HTTPLogs == nil || props.FailedRequestsTracing == nil || props.DetailedErrorMessages == nil { + return false + } + if props.ApplicationLogs.FileSystem != nil && props.ApplicationLogs.FileSystem.Level != nil && *props.ApplicationLogs.FileSystem.Level != webapps.LogLevelOff { + return false + } + if props.ApplicationLogs.AzureBlobStorage != nil && props.ApplicationLogs.AzureBlobStorage.Level != nil && *props.ApplicationLogs.AzureBlobStorage.Level != webapps.LogLevelOff { + return false + } + if props.HTTPLogs.FileSystem != nil && props.HTTPLogs.FileSystem.Enabled != nil && (*props.HTTPLogs.FileSystem.Enabled) { + return false + } + if props.HTTPLogs.AzureBlobStorage != nil && props.HTTPLogs.AzureBlobStorage.Enabled != nil && (*props.HTTPLogs.AzureBlobStorage.Enabled) { + return false + } + if props.FailedRequestsTracing.Enabled == nil || *props.FailedRequestsTracing.Enabled { + return false + } + if props.DetailedErrorMessages.Enabled == nil || *props.DetailedErrorMessages.Enabled { + return false + } + return true +} + func FlattenStorageAccounts(appStorageAccounts web.AzureStoragePropertyDictionaryResource) []StorageAccount { if len(appStorageAccounts.Properties) == 0 { return []StorageAccount{} @@ -1200,6 +1480,40 @@ func FlattenStorageAccounts(appStorageAccounts web.AzureStoragePropertyDictionar return storageAccounts } +func FlattenStorageAccountsLinuxWebApps(appStorageAccounts *webapps.AzureStoragePropertyDictionaryResource) []StorageAccount { + if appStorageAccounts.Properties == nil { + return []StorageAccount{} + } + var storageAccounts []StorageAccount + for k, v := range *appStorageAccounts.Properties { + storageAccount := StorageAccount{ + Name: k, + } + if v.Type != nil { + storageAccount.Type = string(*v.Type) + } + if v.AccountName != nil { + storageAccount.AccountName = *v.AccountName + } + + if v.ShareName != nil { + storageAccount.ShareName = *v.ShareName + } + + if v.AccessKey != nil { + storageAccount.AccessKey = *v.AccessKey + } + + if v.MountPath != nil { + storageAccount.MountPath = *v.MountPath + } + + storageAccounts = append(storageAccounts, storageAccount) + } + + return storageAccounts +} + func FlattenConnectionStrings(appConnectionStrings web.ConnectionStringDictionary) []ConnectionString { if len(appConnectionStrings.Properties) == 0 { return []ConnectionString{} @@ -1219,6 +1533,24 @@ func FlattenConnectionStrings(appConnectionStrings web.ConnectionStringDictionar return connectionStrings } +func FlattenConnectionStringsLinuxWebApps(appConnectionStrings *webapps.ConnectionStringDictionary) []ConnectionString { + if appConnectionStrings.Properties == nil { + return []ConnectionString{} + } + var connectionStrings []ConnectionString + for k, v := range *appConnectionStrings.Properties { + connectionString := ConnectionString{ + Name: k, + Type: string(v.Type), + Value: v.Value, + } + + connectionStrings = append(connectionStrings, connectionString) + } + + return connectionStrings +} + func ExpandAppSettingsForUpdate(siteConfigSettings *[]web.NameValuePair) *web.StringDictionary { appSettings := make(map[string]*string) if siteConfigSettings == nil { @@ -1238,6 +1570,25 @@ func ExpandAppSettingsForUpdate(siteConfigSettings *[]web.NameValuePair) *web.St } } +func ExpandAppSettingsForUpdateLinuxWebApps(siteConfigSettings *[]webapps.NameValuePair) *webapps.StringDictionary { + appSettings := make(map[string]string) + if siteConfigSettings == nil { + return &webapps.StringDictionary{ + Properties: &appSettings, + } + } + + for _, v := range *siteConfigSettings { + if name := pointer.From(v.Name); name != "" && pointer.From(v.Value) != "" { + appSettings[name] = *v.Value + } + } + + return &webapps.StringDictionary{ + Properties: &appSettings, + } +} + func ExpandAppSettingsForCreate(settings map[string]string) *[]web.NameValuePair { if len(settings) > 0 { result := make([]web.NameValuePair, 0) @@ -1252,6 +1603,20 @@ func ExpandAppSettingsForCreate(settings map[string]string) *[]web.NameValuePair return nil } +func ExpandAppSettingsForCreateLinuxWebApp(settings map[string]string) *[]webapps.NameValuePair { + if len(settings) > 0 { + result := make([]webapps.NameValuePair, 0) + for k, v := range settings { + result = append(result, webapps.NameValuePair{ + Name: pointer.To(k), + Value: pointer.To(v), + }) + } + return &result + } + return nil +} + // FilterManagedAppSettings removes app_settings values from the state that are controlled directly be schema properties. func FilterManagedAppSettings(input map[string]string) map[string]string { unmanagedSettings := []string{ @@ -1372,6 +1737,35 @@ func DisabledLogsConfig() *web.SiteLogsConfig { } } +func DisabledLogsConfigLinuxWebApps() webapps.SiteLogsConfig { + return webapps.SiteLogsConfig{ + Properties: &webapps.SiteLogsConfigProperties{ + DetailedErrorMessages: &webapps.EnabledConfig{ + Enabled: pointer.To(false), + }, + FailedRequestsTracing: &webapps.EnabledConfig{ + Enabled: pointer.To(false), + }, + ApplicationLogs: &webapps.ApplicationLogsConfig{ + FileSystem: &webapps.FileSystemApplicationLogsConfig{ + Level: pointer.To(webapps.LogLevelOff), + }, + AzureBlobStorage: &webapps.AzureBlobStorageApplicationLogsConfig{ + Level: pointer.To(webapps.LogLevelOff), + }, + }, + HTTPLogs: &webapps.HTTPLogsConfig{ + FileSystem: &webapps.FileSystemHTTPLogsConfig{ + Enabled: pointer.To(false), + }, + AzureBlobStorage: &webapps.AzureBlobStorageHTTPLogsConfig{ + Enabled: pointer.To(false), + }, + }, + }, + } +} + func IsFreeOrSharedServicePlan(inputSKU string) bool { result := false for _, sku := range freeSkus { diff --git a/internal/services/appservice/helpers/linux_web_app_schema.go b/internal/services/appservice/helpers/linux_web_app_schema.go index 5671b30d9606..049469abae97 100644 --- a/internal/services/appservice/helpers/linux_web_app_schema.go +++ b/internal/services/appservice/helpers/linux_web_app_schema.go @@ -155,10 +155,10 @@ func SiteConfigSchemaLinux() *pluginsdk.Schema { "managed_pipeline_mode": { Type: pluginsdk.TypeString, Optional: true, - Default: string(web.ManagedPipelineModeIntegrated), + Default: string(webapps.ManagedPipelineModeIntegrated), ValidateFunc: validation.StringInSlice([]string{ - string(web.ManagedPipelineModeClassic), - string(web.ManagedPipelineModeIntegrated), + string(webapps.ManagedPipelineModeClassic), + string(webapps.ManagedPipelineModeIntegrated), }, false), }, @@ -198,11 +198,11 @@ func SiteConfigSchemaLinux() *pluginsdk.Schema { "ftps_state": { Type: pluginsdk.TypeString, Optional: true, - Default: string(web.FtpsStateDisabled), + Default: string(webapps.FtpsStateDisabled), ValidateFunc: validation.StringInSlice([]string{ - string(web.FtpsStateAllAllowed), - string(web.FtpsStateDisabled), - string(web.FtpsStateFtpsOnly), + string(webapps.FtpsStateAllAllowed), + string(webapps.FtpsStateDisabled), + string(webapps.FtpsStateFtpsOnly), }, false), }, @@ -229,22 +229,22 @@ func SiteConfigSchemaLinux() *pluginsdk.Schema { "minimum_tls_version": { Type: pluginsdk.TypeString, Optional: true, - Default: string(web.SupportedTLSVersionsOneFullStopTwo), + Default: string(webapps.SupportedTlsVersionsOnePointTwo), ValidateFunc: validation.StringInSlice([]string{ - string(web.SupportedTLSVersionsOneFullStopZero), - string(web.SupportedTLSVersionsOneFullStopOne), - string(web.SupportedTLSVersionsOneFullStopTwo), + string(webapps.SupportedTlsVersionsOnePointZero), + string(webapps.SupportedTlsVersionsOnePointOne), + string(webapps.SupportedTlsVersionsOnePointTwo), }, false), }, "scm_minimum_tls_version": { Type: pluginsdk.TypeString, Optional: true, - Default: string(web.SupportedTLSVersionsOneFullStopTwo), + Default: string(webapps.SupportedTlsVersionsOnePointTwo), ValidateFunc: validation.StringInSlice([]string{ - string(web.SupportedTLSVersionsOneFullStopZero), - string(web.SupportedTLSVersionsOneFullStopOne), - string(web.SupportedTLSVersionsOneFullStopTwo), + string(webapps.SupportedTlsVersionsOnePointZero), + string(webapps.SupportedTlsVersionsOnePointOne), + string(webapps.SupportedTlsVersionsOnePointTwo), }, false), }, @@ -488,7 +488,7 @@ func autoHealActionSchemaLinux() *pluginsdk.Schema { Type: pluginsdk.TypeString, Required: true, ValidateFunc: validation.StringInSlice([]string{ - string(web.AutoHealActionTypeRecycle), + string(webapps.AutoHealActionTypeRecycle), }, false), }, @@ -727,34 +727,34 @@ func autoHealTriggerSchemaLinuxComputed() *pluginsdk.Schema { } } -func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*w.SiteConfig, error) { +func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*webapps.SiteConfig, error) { expanded := &webapps.SiteConfig{} expanded.AlwaysOn = pointer.To(s.AlwaysOn) expanded.AcrUseManagedIdentityCreds = pointer.To(s.UseManagedIdentityACR) expanded.HTTP20Enabled = pointer.To(s.Http2Enabled) expanded.ScmIPSecurityRestrictionsUseMain = pointer.To(s.ScmUseMainIpRestriction) - expanded.LocalMySQLEnabled = pointer.To(s.LocalMysql) - expanded.LoadBalancing = web.SiteLoadBalancing(s.LoadBalancing) - expanded.ManagedPipelineMode = web.ManagedPipelineMode(s.ManagedPipelineMode) + expanded.LocalMySqlEnabled = pointer.To(s.LocalMysql) + expanded.LoadBalancing = pointer.To(webapps.SiteLoadBalancing(s.LoadBalancing)) + expanded.ManagedPipelineMode = pointer.To(webapps.ManagedPipelineMode(s.ManagedPipelineMode)) expanded.RemoteDebuggingEnabled = pointer.To(s.RemoteDebugging) expanded.Use32BitWorkerProcess = pointer.To(s.Use32BitWorker) expanded.WebSocketsEnabled = pointer.To(s.WebSockets) - expanded.FtpsState = web.FtpsState(s.FtpsState) - expanded.MinTLSVersion = web.SupportedTLSVersions(s.MinTlsVersion) - expanded.ScmMinTLSVersion = web.SupportedTLSVersions(s.ScmMinTlsVersion) + expanded.FtpsState = pointer.To(webapps.FtpsState(s.FtpsState)) + expanded.MinTlsVersion = pointer.To(webapps.SupportedTlsVersions(s.MinTlsVersion)) + expanded.ScmMinTlsVersion = pointer.To(webapps.SupportedTlsVersions(s.ScmMinTlsVersion)) expanded.AutoHealEnabled = pointer.To(s.AutoHeal) expanded.VnetRouteAllEnabled = pointer.To(s.VnetRouteAllEnabled) if s.ApiManagementConfigId != "" { - expanded.APIManagementConfig = &web.APIManagementConfig{ - ID: pointer.To(s.ApiManagementConfigId), + expanded.ApiManagementConfig = &webapps.ApiManagementConfig{ + Id: pointer.To(s.ApiManagementConfigId), } } if s.ApiDefinition != "" { - expanded.APIDefinition = &web.APIDefinitionInfo{ - URL: pointer.To(s.ApiDefinition), + expanded.ApiDefinition = &webapps.ApiDefinitionInfo{ + Url: pointer.To(s.ApiDefinition), } } @@ -813,7 +813,7 @@ func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*w.Sit } } - expanded.AppSettings = ExpandAppSettingsForCreate(appSettings) + expanded.AppSettings = ExpandAppSettingsForCreateLinuxWebApp(appSettings) if s.ContainerRegistryMSI != "" { expanded.AcrUserManagedIdentityID = pointer.To(s.ContainerRegistryMSI) @@ -824,7 +824,7 @@ func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*w.Sit } if len(s.IpRestriction) != 0 { - ipRestrictions, err := ExpandIpRestrictions(s.IpRestriction) + ipRestrictions, err := ExpandIpRestrictionsLinuxWebApps(s.IpRestriction) if err != nil { return nil, err } @@ -833,7 +833,7 @@ func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*w.Sit } if len(s.ScmIpRestriction) != 0 { - ipRestrictions, err := ExpandIpRestrictions(s.ScmIpRestriction) + ipRestrictions, err := ExpandIpRestrictionsLinuxWebApps(s.ScmIpRestriction) if err != nil { return nil, err } @@ -850,11 +850,11 @@ func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*w.Sit } if s.NumberOfWorkers != 0 { - expanded.NumberOfWorkers = pointer.To(int32(s.NumberOfWorkers)) + expanded.NumberOfWorkers = pointer.To(int64(s.NumberOfWorkers)) } if len(s.Cors) != 0 { - expanded.Cors = ExpandCorsSettings(s.Cors) + expanded.Cors = ExpandCorsSettingsLinuxWebApps(s.Cors) } if len(s.AutoHealSettings) == 1 { @@ -864,13 +864,13 @@ func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*w.Sit return expanded, nil } -func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *web.SiteConfig, appSettings map[string]string) (*web.SiteConfig, error) { +func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *webapps.SiteConfig, appSettings map[string]string) (*webapps.SiteConfig, error) { expanded := *existing expanded.AcrUseManagedIdentityCreds = pointer.To(s.UseManagedIdentityACR) expanded.AutoHealEnabled = pointer.To(s.AutoHeal) expanded.HTTP20Enabled = pointer.To(s.Http2Enabled) - expanded.LocalMySQLEnabled = pointer.To(s.LocalMysql) + expanded.LocalMySqlEnabled = pointer.To(s.LocalMysql) expanded.RemoteDebuggingEnabled = pointer.To(s.RemoteDebugging) expanded.ScmIPSecurityRestrictionsUseMain = pointer.To(s.ScmUseMainIpRestriction) expanded.Use32BitWorkerProcess = pointer.To(s.Use32BitWorker) @@ -878,14 +878,14 @@ func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existin expanded.VnetRouteAllEnabled = pointer.To(s.VnetRouteAllEnabled) if metadata.ResourceData.HasChange("site_config.0.api_management_api_id") { - expanded.APIManagementConfig = &web.APIManagementConfig{ - ID: pointer.To(s.ApiManagementConfigId), + expanded.ApiManagementConfig = &webapps.ApiManagementConfig{ + Id: pointer.To(s.ApiManagementConfigId), } } if metadata.ResourceData.HasChange("site_config.0.api_definition_url") { - expanded.APIDefinition = &web.APIDefinitionInfo{ - URL: pointer.To(s.ApiDefinition), + expanded.ApiDefinition = &webapps.ApiDefinitionInfo{ + Url: pointer.To(s.ApiDefinition), } } @@ -948,7 +948,7 @@ func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existin } } - expanded.AppSettings = ExpandAppSettingsForCreate(appSettings) + expanded.AppSettings = ExpandAppSettingsForCreateLinuxWebApp(appSettings) if metadata.ResourceData.HasChange("site_config.0.container_registry_managed_identity_client_id") { expanded.AcrUserManagedIdentityID = pointer.To(s.ContainerRegistryMSI) @@ -959,7 +959,7 @@ func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existin } if metadata.ResourceData.HasChange("site_config.0.ip_restriction") { - ipRestrictions, err := ExpandIpRestrictions(s.IpRestriction) + ipRestrictions, err := ExpandIpRestrictionsLinuxWebApps(s.IpRestriction) if err != nil { return nil, err } @@ -967,7 +967,7 @@ func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existin } if metadata.ResourceData.HasChange("site_config.0.scm_ip_restriction") { - scmIpRestrictions, err := ExpandIpRestrictions(s.ScmIpRestriction) + scmIpRestrictions, err := ExpandIpRestrictionsLinuxWebApps(s.ScmIpRestriction) if err != nil { return nil, err } @@ -975,11 +975,11 @@ func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existin } if metadata.ResourceData.HasChange("site_config.0.load_balancing_mode") { - expanded.LoadBalancing = web.SiteLoadBalancing(s.LoadBalancing) + expanded.LoadBalancing = pointer.To(webapps.SiteLoadBalancing(s.LoadBalancing)) } if metadata.ResourceData.HasChange("site_config.0.managed_pipeline_mode") { - expanded.ManagedPipelineMode = web.ManagedPipelineMode(s.ManagedPipelineMode) + expanded.ManagedPipelineMode = pointer.To(webapps.ManagedPipelineMode(s.ManagedPipelineMode)) } if metadata.ResourceData.HasChange("site_config.0.remote_debugging_version") { @@ -987,7 +987,7 @@ func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existin } if metadata.ResourceData.HasChange("site_config.0.ftps_state") { - expanded.FtpsState = web.FtpsState(s.FtpsState) + expanded.FtpsState = pointer.To(webapps.FtpsState(s.FtpsState)) } if metadata.ResourceData.HasChange("site_config.0.health_check_path") { @@ -995,21 +995,21 @@ func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existin } if metadata.ResourceData.HasChange("site_config.0.worker_count") { - expanded.NumberOfWorkers = pointer.To(int32(s.NumberOfWorkers)) + expanded.NumberOfWorkers = pointer.To(int64(s.NumberOfWorkers)) } if metadata.ResourceData.HasChange("site_config.0.minimum_tls_version") { - expanded.MinTLSVersion = web.SupportedTLSVersions(s.MinTlsVersion) + expanded.MinTlsVersion = pointer.To(webapps.SupportedTlsVersions(s.MinTlsVersion)) } if metadata.ResourceData.HasChange("site_config.0.scm_minimum_tls_version") { - expanded.ScmMinTLSVersion = web.SupportedTLSVersions(s.ScmMinTlsVersion) + expanded.ScmMinTlsVersion = pointer.To(webapps.SupportedTlsVersions(s.ScmMinTlsVersion)) } if metadata.ResourceData.HasChange("site_config.0.cors") { - cors := ExpandCorsSettings(s.Cors) + cors := ExpandCorsSettingsLinuxWebApps(s.Cors) if cors == nil { - cors = &web.CorsSettings{ + cors = &webapps.CorsSettings{ AllowedOrigins: &[]string{}, } } @@ -1023,7 +1023,7 @@ func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existin return &expanded, nil } -func (s *SiteConfigLinux) Flatten(appSiteConfig *web.SiteConfig) { +func (s *SiteConfigLinux) Flatten(appSiteConfig *webapps.SiteConfig) { if appSiteConfig != nil { s.AlwaysOn = pointer.From(appSiteConfig.AlwaysOn) s.AppCommandLine = pointer.From(appSiteConfig.AppCommandLine) @@ -1033,32 +1033,45 @@ func (s *SiteConfigLinux) Flatten(appSiteConfig *web.SiteConfig) { s.DetailedErrorLogging = pointer.From(appSiteConfig.DetailedErrorLoggingEnabled) s.DefaultDocuments = pointer.From(appSiteConfig.DefaultDocuments) s.Http2Enabled = pointer.From(appSiteConfig.HTTP20Enabled) - s.IpRestriction = FlattenIpRestrictions(appSiteConfig.IPSecurityRestrictions) - s.ManagedPipelineMode = string(appSiteConfig.ManagedPipelineMode) - s.ScmType = string(appSiteConfig.ScmType) - s.FtpsState = string(appSiteConfig.FtpsState) + s.IpRestriction = FlattenIpRestrictionsLinuxWebApps(appSiteConfig.IPSecurityRestrictions) s.HealthCheckPath = pointer.From(appSiteConfig.HealthCheckPath) - s.LoadBalancing = string(appSiteConfig.LoadBalancing) - s.LocalMysql = pointer.From(appSiteConfig.LocalMySQLEnabled) - s.MinTlsVersion = string(appSiteConfig.MinTLSVersion) + s.LocalMysql = pointer.From(appSiteConfig.LocalMySqlEnabled) s.NumberOfWorkers = int(pointer.From(appSiteConfig.NumberOfWorkers)) s.RemoteDebugging = pointer.From(appSiteConfig.RemoteDebuggingEnabled) s.RemoteDebuggingVersion = strings.ToUpper(pointer.From(appSiteConfig.RemoteDebuggingVersion)) - s.ScmIpRestriction = FlattenIpRestrictions(appSiteConfig.ScmIPSecurityRestrictions) - s.ScmMinTlsVersion = string(appSiteConfig.ScmMinTLSVersion) + s.ScmIpRestriction = FlattenIpRestrictionsLinuxWebApps(appSiteConfig.ScmIPSecurityRestrictions) s.ScmUseMainIpRestriction = pointer.From(appSiteConfig.ScmIPSecurityRestrictionsUseMain) s.Use32BitWorker = pointer.From(appSiteConfig.Use32BitWorkerProcess) s.UseManagedIdentityACR = pointer.From(appSiteConfig.AcrUseManagedIdentityCreds) s.WebSockets = pointer.From(appSiteConfig.WebSocketsEnabled) s.VnetRouteAllEnabled = pointer.From(appSiteConfig.VnetRouteAllEnabled) - s.Cors = FlattenCorsSettings(appSiteConfig.Cors) + s.Cors = FlattenCorsSettingsLinuxWebApps(appSiteConfig.Cors) - if appSiteConfig.APIManagementConfig != nil { - s.ApiManagementConfigId = pointer.From(appSiteConfig.APIManagementConfig.ID) + if appSiteConfig.ManagedPipelineMode != nil { + s.ManagedPipelineMode = string(*appSiteConfig.ManagedPipelineMode) + } + if appSiteConfig.ScmType != nil { + s.ScmType = string(*appSiteConfig.ScmType) + } + if appSiteConfig.FtpsState != nil { + s.FtpsState = string(*appSiteConfig.FtpsState) + } + if appSiteConfig.LoadBalancing != nil { + s.LoadBalancing = string(*appSiteConfig.LoadBalancing) + } + if appSiteConfig.MinTlsVersion != nil { + s.MinTlsVersion = string(*appSiteConfig.MinTlsVersion) + } + if appSiteConfig.ScmMinTlsVersion != nil { + s.ScmMinTlsVersion = string(*appSiteConfig.ScmMinTlsVersion) } - if appSiteConfig.APIDefinition != nil { - s.ApiDefinition = pointer.From(appSiteConfig.APIDefinition.URL) + if appSiteConfig.ApiManagementConfig != nil { + s.ApiManagementConfigId = pointer.From(appSiteConfig.ApiManagementConfig.Id) + } + + if appSiteConfig.ApiDefinition != nil { + s.ApiDefinition = pointer.From(appSiteConfig.ApiDefinition.Url) } if appSiteConfig.LinuxFxVersion != nil { @@ -1135,21 +1148,21 @@ func (s *SiteConfigLinux) DecodeDockerDeprecatedAppStack(input map[string]string s.ApplicationStack = []ApplicationStackLinux{applicationStack} } -func expandAutoHealSettingsLinux(autoHealSettings []AutoHealSettingLinux) *web.AutoHealRules { +func expandAutoHealSettingsLinux(autoHealSettings []AutoHealSettingLinux) *webapps.AutoHealRules { if len(autoHealSettings) == 0 { return nil } - result := &web.AutoHealRules{ - Triggers: &web.AutoHealTriggers{}, - Actions: &web.AutoHealActions{}, + result := &webapps.AutoHealRules{ + Triggers: &webapps.AutoHealTriggers{}, + Actions: &webapps.AutoHealActions{}, } autoHeal := autoHealSettings[0] if len(autoHeal.Actions) > 0 { action := autoHeal.Actions[0] - result.Actions.ActionType = web.AutoHealActionType(action.ActionType) + result.Actions.ActionType = pointer.To(webapps.AutoHealActionType(action.ActionType)) result.Actions.MinProcessExecutionTime = pointer.To(action.MinimumProcessTime) } @@ -1159,17 +1172,17 @@ func expandAutoHealSettingsLinux(autoHealSettings []AutoHealSettingLinux) *web.A triggers := autoHeal.Triggers[0] if len(triggers.Requests) == 1 { - result.Triggers.Requests = &web.RequestsBasedTrigger{ - Count: pointer.To(int32(triggers.Requests[0].Count)), + result.Triggers.Requests = &webapps.RequestsBasedTrigger{ + Count: pointer.To(int64(triggers.Requests[0].Count)), TimeInterval: pointer.To(triggers.Requests[0].Interval), } } if len(triggers.SlowRequests) == 1 { - result.Triggers.SlowRequests = &web.SlowRequestsBasedTrigger{ + result.Triggers.SlowRequests = &webapps.SlowRequestsBasedTrigger{ TimeTaken: pointer.To(triggers.SlowRequests[0].TimeTaken), TimeInterval: pointer.To(triggers.SlowRequests[0].Interval), - Count: pointer.To(int32(triggers.SlowRequests[0].Count)), + Count: pointer.To(int64(triggers.SlowRequests[0].Count)), } if triggers.SlowRequests[0].Path != "" { result.Triggers.SlowRequests.Path = pointer.To(triggers.SlowRequests[0].Path) @@ -1177,15 +1190,15 @@ func expandAutoHealSettingsLinux(autoHealSettings []AutoHealSettingLinux) *web.A } if len(triggers.StatusCodes) > 0 { - statusCodeTriggers := make([]web.StatusCodesBasedTrigger, 0) - statusCodeRangeTriggers := make([]web.StatusCodesRangeBasedTrigger, 0) + statusCodeTriggers := make([]webapps.StatusCodesBasedTrigger, 0) + statusCodeRangeTriggers := make([]webapps.StatusCodesRangeBasedTrigger, 0) for _, s := range triggers.StatusCodes { - statusCodeTrigger := web.StatusCodesBasedTrigger{} - statusCodeRangeTrigger := web.StatusCodesRangeBasedTrigger{} + statusCodeTrigger := webapps.StatusCodesBasedTrigger{} + statusCodeRangeTrigger := webapps.StatusCodesRangeBasedTrigger{} parts := strings.Split(s.StatusCodeRange, "-") if len(parts) == 2 { statusCodeRangeTrigger.StatusCodes = pointer.To(s.StatusCodeRange) - statusCodeRangeTrigger.Count = pointer.To(int32(s.Count)) + statusCodeRangeTrigger.Count = pointer.To(int64(s.Count)) statusCodeRangeTrigger.TimeInterval = pointer.To(s.Interval) if s.Path != "" { statusCodeRangeTrigger.Path = pointer.To(s.Path) @@ -1194,9 +1207,9 @@ func expandAutoHealSettingsLinux(autoHealSettings []AutoHealSettingLinux) *web.A } else { statusCode, err := strconv.Atoi(s.StatusCodeRange) if err == nil { - statusCodeTrigger.Status = pointer.To(int32(statusCode)) + statusCodeTrigger.Status = pointer.To(int64(statusCode)) } - statusCodeTrigger.Count = pointer.To(int32(s.Count)) + statusCodeTrigger.Count = pointer.To(int64(s.Count)) statusCodeTrigger.TimeInterval = pointer.To(s.Interval) if s.Path != "" { statusCodeTrigger.Path = pointer.To(s.Path) @@ -1211,7 +1224,7 @@ func expandAutoHealSettingsLinux(autoHealSettings []AutoHealSettingLinux) *web.A return result } -func flattenAutoHealSettingsLinux(autoHealRules *web.AutoHealRules) []AutoHealSettingLinux { +func flattenAutoHealSettingsLinux(autoHealRules *webapps.AutoHealRules) []AutoHealSettingLinux { if autoHealRules == nil { return []AutoHealSettingLinux{} } @@ -1289,9 +1302,12 @@ func flattenAutoHealSettingsLinux(autoHealRules *web.AutoHealRules) []AutoHealSe // Actions if autoHealRules.Actions != nil { actions := *autoHealRules.Actions - + actionType := "" + if actions.ActionType != nil { + actionType = string(*actions.ActionType) + } result.Actions = []AutoHealActionLinux{{ - ActionType: string(actions.ActionType), + ActionType: actionType, MinimumProcessTime: pointer.From(actions.MinProcessExecutionTime), }} } diff --git a/internal/services/appservice/helpers/publish_app.go b/internal/services/appservice/helpers/publish_app.go index c0e7ced806ef..26b591c5e30c 100644 --- a/internal/services/appservice/helpers/publish_app.go +++ b/internal/services/appservice/helpers/publish_app.go @@ -12,6 +12,8 @@ import ( "os" "time" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web" ) @@ -50,6 +52,35 @@ func GetCredentialsAndPublish(ctx context.Context, client *web.AppsClient, resou return nil } +func GetCredentialsAndPublishLinuxWebApps(ctx context.Context, client *webapps.WebAppsClient, siteId commonids.AppServiceId, sourceFile string) error { + site, err := client.Get(ctx, siteId) + if err != nil || site.Model == nil || site.Model.Properties == nil { + return fmt.Errorf("reading site %s to perform zip deploy: %+v", siteId, err) + } + props := *site.Model.Properties + if sslStates := props.HostNameSslStates; sslStates != nil { + for _, v := range *sslStates { + if v.Name != nil && *v.Name != "" && v.HostType != nil && *v.HostType == webapps.HostTypeRepository { + user, passwd, err := GetSitePublishingCredentialsLinuxWebApps(ctx, client, siteId) + if err != nil { + return err + } + httpsHost := fmt.Sprintf("https://%s", *v.Name) + + if err := PublishZipDeployLocalFileKuduPush(ctx, httpsHost, user, *passwd, client.Client.UserAgent, sourceFile); err != nil { + return fmt.Errorf("publishing source (%s) to site %s : %+v", sourceFile, siteId, err) + } + + continue + } + } + } else { + return fmt.Errorf("could not determine SCM Site name for Site %s for Zip Deployment", siteId) + } + + return nil +} + func GetCredentialsAndPublishSlot(ctx context.Context, client *web.AppsClient, resourceGroup string, siteName string, sourceFile string, slotName string) error { site, err := client.GetSlot(ctx, resourceGroup, siteName, slotName) if err != nil || site.SiteProperties == nil { @@ -79,6 +110,35 @@ func GetCredentialsAndPublishSlot(ctx context.Context, client *web.AppsClient, r return nil } +func GetCredentialsAndPublishSlotLinuxWebApps(ctx context.Context, client *webapps.WebAppsClient, slotId webapps.SlotId, sourceFile string) error { + site, err := client.GetSlot(ctx, slotId) + if err != nil || site.Model == nil || site.Model.Properties == nil { + return fmt.Errorf("reading site %s to perform zip deploy: %+v", slotId.SiteName, err) + } + props := *site.Model.Properties + if sslStates := props.HostNameSslStates; sslStates != nil { + for _, v := range *sslStates { + if v.Name != nil && *v.Name != "" && v.HostType != nil && *v.HostType == webapps.HostTypeRepository { + user, passwd, err := GetSitePublishingCredentialsSlotLinuxWebApps(ctx, client, slotId) + if err != nil { + return err + } + httpsHost := fmt.Sprintf("https://%s", *v.Name) + + if err := PublishZipDeployLocalFileKuduPush(ctx, httpsHost, user, *passwd, client.Client.UserAgent, sourceFile); err != nil { + return fmt.Errorf("publishing source (%s) to site %s (Resource Group %s): %+v", sourceFile, slotId.SiteName, slotId.ResourceGroupName, err) + } + + continue + } + } + } else { + return fmt.Errorf("could not determine SCM Site name for Site %s (Resource Group %s) for Zip Deployment", slotId.SiteName, slotId.ResourceGroupName) + } + + return nil +} + func GetSitePublishingCredentials(ctx context.Context, client *web.AppsClient, resourceGroup string, siteName string) (user *string, passwd *string, err error) { siteCredentialsFuture, err := client.ListPublishingCredentials(ctx, resourceGroup, siteName) if err != nil { @@ -98,6 +158,27 @@ func GetSitePublishingCredentials(ctx context.Context, client *web.AppsClient, r return siteCredentials.PublishingUserName, siteCredentials.PublishingPassword, err } +func GetSitePublishingCredentialsLinuxWebApps(ctx context.Context, client *webapps.WebAppsClient, siteId commonids.AppServiceId) (user string, passwd *string, err error) { + result, err := client.ListPublishingCredentials(ctx, siteId) + if err != nil { + return "", nil, fmt.Errorf("listing Site Publishing Credential information for %s : %+v", siteId, err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return "", nil, fmt.Errorf("polling after ListPublishingCredentials: %+v", err) + } + + var publishingUser webapps.User + if err := json.NewDecoder(result.HttpResponse.Body).Decode(&publishingUser); err != nil { + return "", nil, fmt.Errorf("reading Site Publishing Credential information for %s : %+v", siteId, err) + } + + if publishingUser.Properties == nil || publishingUser.Properties.PublishingUserName == "" || publishingUser.Properties.PublishingPassword == nil { + return "", nil, fmt.Errorf("site credentials for Site %s were empty", siteId) + } + return publishingUser.Properties.PublishingUserName, publishingUser.Properties.PublishingPassword, err +} + func GetSitePublishingCredentialsSlot(ctx context.Context, client *web.AppsClient, resourceGroup string, siteName string, slotName string) (user *string, passwd *string, err error) { siteCredentialsFuture, err := client.ListPublishingCredentialsSlot(ctx, resourceGroup, siteName, slotName) if err != nil { @@ -117,6 +198,26 @@ func GetSitePublishingCredentialsSlot(ctx context.Context, client *web.AppsClien return siteCredentials.PublishingUserName, siteCredentials.PublishingPassword, err } +func GetSitePublishingCredentialsSlotLinuxWebApps(ctx context.Context, client *webapps.WebAppsClient, slotId webapps.SlotId) (user string, passwd *string, err error) { + siteCredentialsFuture, err := client.ListPublishingCredentialsSlot(ctx, slotId) + if err != nil { + return "", nil, fmt.Errorf("listing Site Publishing Credential information for %s : %+v", slotId, err) + } + if err := siteCredentialsFuture.Poller.PollUntilDone(ctx); err != nil { + return "", nil, fmt.Errorf("waiting for Site Publishing Credential information for %s: %+v", slotId, err) + } + + var publishingUser webapps.User + if err := json.NewDecoder(siteCredentialsFuture.HttpResponse.Body).Decode(&publishingUser); err != nil { + return "", nil, fmt.Errorf("reading Site Publishing Credential information for %s : %+v", slotId, err) + } + + if publishingUser.Properties != nil || publishingUser.Properties.PublishingUserName == "" || publishingUser.Properties.PublishingPassword == nil { + return "", nil, fmt.Errorf("site credentials for Site %s were empty", slotId) + } + return publishingUser.Properties.PublishingUserName, publishingUser.Properties.PublishingPassword, err +} + func PublishZipDeployLocalFileKuduPush(ctx context.Context, host string, user string, passwd string, userAgent string, zipSource string) error { f, err := os.Open(zipSource) if err != nil { diff --git a/internal/services/appservice/helpers/shared_schema.go b/internal/services/appservice/helpers/shared_schema.go index 1c709fca694d..37b66595ce17 100644 --- a/internal/services/appservice/helpers/shared_schema.go +++ b/internal/services/appservice/helpers/shared_schema.go @@ -9,6 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -334,6 +335,22 @@ func FlattenCorsSettings(input *web.CorsSettings) []CorsSetting { }} } +func FlattenCorsSettingsLinuxWebApps(input *webapps.CorsSettings) []CorsSetting { + if input == nil { + return []CorsSetting{} + } + + cors := *input + if len(pointer.From(cors.AllowedOrigins)) == 0 && !pointer.From(cors.SupportCredentials) { + return []CorsSetting{} + } + + return []CorsSetting{{ + SupportCredentials: pointer.From(cors.SupportCredentials), + AllowedOrigins: pointer.From(cors.AllowedOrigins), + }} +} + func ExpandCorsSettings(input []CorsSetting) *web.CorsSettings { if len(input) != 1 { return &web.CorsSettings{} @@ -346,6 +363,18 @@ func ExpandCorsSettings(input []CorsSetting) *web.CorsSettings { } } +func ExpandCorsSettingsLinuxWebApps(input []CorsSetting) *webapps.CorsSettings { + if len(input) != 1 { + return &webapps.CorsSettings{} + } + cors := input[0] + + return &webapps.CorsSettings{ + AllowedOrigins: pointer.To(cors.AllowedOrigins), + SupportCredentials: pointer.To(cors.SupportCredentials), + } +} + type SourceControl struct { RepoURL string `tfschema:"repo_url"` Branch string `tfschema:"branch"` @@ -1167,6 +1196,47 @@ func ExpandIpRestrictions(restrictions []IpRestriction) (*[]web.IPSecurityRestri return &expanded, nil } +func ExpandIpRestrictionsLinuxWebApps(restrictions []IpRestriction) (*[]webapps.IPSecurityRestriction, error) { + expanded := make([]webapps.IPSecurityRestriction, 0) + if len(restrictions) == 0 { + return &expanded, nil + } + + for _, v := range restrictions { + if err := v.Validate(); err != nil { + return nil, err + } + + var restriction webapps.IPSecurityRestriction + if v.Name != "" { + restriction.Name = utils.String(v.Name) + } + + if v.IpAddress != "" { + restriction.IPAddress = utils.String(v.IpAddress) + } + + if v.ServiceTag != "" { + restriction.IPAddress = utils.String(v.ServiceTag) + restriction.Tag = pointer.To(webapps.IPFilterTagServiceTag) + } + + if v.VnetSubnetId != "" { + restriction.VnetSubnetResourceId = utils.String(v.VnetSubnetId) + } + + restriction.Priority = utils.Int64(int64(v.Priority)) + + restriction.Action = utils.String(v.Action) + + restriction.Headers = pointer.To(expandIpRestrictionHeaders(v.Headers)) + + expanded = append(expanded, restriction) + } + + return &expanded, nil +} + func expandIpRestrictionHeaders(headers []IpRestrictionHeaders) map[string][]string { result := make(map[string][]string) if len(headers) == 0 { @@ -1291,6 +1361,106 @@ func ExpandAuthSettings(auth []AuthSettings) *web.SiteAuthSettings { return result } +func ExpandAuthSettingsLinuxWebApps(auth []AuthSettings) webapps.SiteAuthSettings { + result := webapps.SiteAuthSettings{} + if len(auth) == 0 { + return result + } + + props := &webapps.SiteAuthSettingsProperties{} + + v := auth[0] + + props.Enabled = utils.Bool(v.Enabled) + + additionalLoginParams := make([]string, 0) + if len(v.AdditionalLoginParameters) > 0 { + for k, s := range v.AdditionalLoginParameters { + additionalLoginParams = append(additionalLoginParams, fmt.Sprintf("%s=%s", k, s)) + } + props.AdditionalLoginParams = &additionalLoginParams + } + + props.AllowedExternalRedirectUrls = &v.AllowedExternalRedirectUrls + + props.DefaultProvider = pointer.To(webapps.BuiltInAuthenticationProvider(v.DefaultProvider)) + + props.Issuer = utils.String(v.Issuer) + + props.RuntimeVersion = utils.String(v.RuntimeVersion) + + props.TokenStoreEnabled = utils.Bool(v.TokenStoreEnabled) + + props.TokenRefreshExtensionHours = utils.Float(v.TokenRefreshExtensionHours) + + props.UnauthenticatedClientAction = pointer.To(webapps.UnauthenticatedClientAction(v.UnauthenticatedClientAction)) + + a := AadAuthSettings{} + if len(v.AzureActiveDirectoryAuth) > 0 { + a = v.AzureActiveDirectoryAuth[0] + } + props.ClientId = utils.String(a.ClientId) + + if a.ClientSecret != "" { + props.ClientSecret = utils.String(a.ClientSecret) + } + + if a.ClientSecretSettingName != "" { + props.ClientSecretSettingName = utils.String(a.ClientSecretSettingName) + } + + props.AllowedAudiences = &a.AllowedAudiences + + f := FacebookAuthSettings{} + if len(v.FacebookAuth) > 0 { + f = v.FacebookAuth[0] + } + props.FacebookAppId = utils.String(f.AppId) + props.FacebookAppSecret = utils.String(f.AppSecret) + props.FacebookAppSecretSettingName = utils.String(f.AppSecretSettingName) + props.FacebookOAuthScopes = &f.OauthScopes + + gh := GithubAuthSettings{} + if len(v.GithubAuth) > 0 { + gh = v.GithubAuth[0] + } + props.GitHubClientId = utils.String(gh.ClientId) + props.GitHubClientSecret = utils.String(gh.ClientSecret) + props.GitHubClientSecretSettingName = utils.String(gh.ClientSecretSettingName) + props.GitHubOAuthScopes = &gh.OAuthScopes + + g := GoogleAuthSettings{} + if len(v.GoogleAuth) > 0 { + g = v.GoogleAuth[0] + } + + props.GoogleClientId = utils.String(g.ClientId) + props.GoogleClientSecret = utils.String(g.ClientSecret) + props.GoogleClientSecretSettingName = utils.String(g.ClientSecretSettingName) + props.GoogleOAuthScopes = &g.OauthScopes + + m := MicrosoftAuthSettings{} + if len(v.MicrosoftAuth) > 0 { + m = v.MicrosoftAuth[0] + } + props.MicrosoftAccountClientId = utils.String(m.ClientId) + props.MicrosoftAccountClientSecret = utils.String(m.ClientSecret) + props.MicrosoftAccountClientSecretSettingName = utils.String(m.ClientSecretSettingName) + props.MicrosoftAccountOAuthScopes = &m.OauthScopes + + t := TwitterAuthSettings{} + if len(v.TwitterAuth) > 0 { + t = v.TwitterAuth[0] + } + props.TwitterConsumerKey = utils.String(t.ConsumerKey) + props.TwitterConsumerSecret = utils.String(t.ConsumerSecret) + props.TwitterConsumerSecretSettingName = utils.String(t.ConsumerSecretSettingName) + + result.Properties = props + + return result +} + func FlattenAuthSettings(auth web.SiteAuthSettings) []AuthSettings { if auth.SiteAuthSettingsProperties == nil || !pointer.From(auth.Enabled) || strings.ToLower(pointer.From(auth.ConfigVersion)) != "v1" { return []AuthSettings{} @@ -1455,6 +1625,174 @@ func FlattenAuthSettings(auth web.SiteAuthSettings) []AuthSettings { return []AuthSettings{result} } +func FlattenAuthSettingsLinuxWebApps(auth *webapps.SiteAuthSettings) []AuthSettings { + if auth == nil || auth.Properties == nil || !pointer.From(auth.Properties.Enabled) || strings.ToLower(pointer.From(auth.Properties.ConfigVersion)) != "v1" { + return []AuthSettings{} + } + + props := *auth.Properties + + result := AuthSettings{} + if props.DefaultProvider != nil { + result.DefaultProvider = string(*props.DefaultProvider) + } + + if props.UnauthenticatedClientAction != nil { + result.UnauthenticatedClientAction = string(*props.UnauthenticatedClientAction) + } + + if props.Enabled != nil { + result.Enabled = *props.Enabled + } + + if props.AdditionalLoginParams != nil { + params := make(map[string]string) + for _, v := range *props.AdditionalLoginParams { + parts := strings.Split(v, "=") + if len(parts) != 2 { + continue + } + params[parts[0]] = parts[1] + } + result.AdditionalLoginParameters = params + } + + var allowedRedirectUrls []string + if props.AllowedExternalRedirectUrls != nil { + allowedRedirectUrls = *props.AllowedExternalRedirectUrls + } + result.AllowedExternalRedirectUrls = allowedRedirectUrls + + if props.Issuer != nil { + result.Issuer = *props.Issuer + } + + if props.RuntimeVersion != nil { + result.RuntimeVersion = *props.RuntimeVersion + } + + if props.TokenRefreshExtensionHours != nil { + result.TokenRefreshExtensionHours = *props.TokenRefreshExtensionHours + } + + if props.TokenStoreEnabled != nil { + result.TokenStoreEnabled = *props.TokenStoreEnabled + } + + // AAD Auth + if props.ClientId != nil { + aadAuthSettings := AadAuthSettings{ + ClientId: *props.ClientId, + } + + if props.ClientSecret != nil { + aadAuthSettings.ClientSecret = *props.ClientSecret + } + + if props.ClientSecretSettingName != nil { + aadAuthSettings.ClientSecretSettingName = *props.ClientSecretSettingName + } + + if props.AllowedAudiences != nil { + aadAuthSettings.AllowedAudiences = *props.AllowedAudiences + } + + result.AzureActiveDirectoryAuth = []AadAuthSettings{aadAuthSettings} + } + + if props.FacebookAppId != nil { + facebookAuthSettings := FacebookAuthSettings{ + AppId: *props.FacebookAppId, + } + + if props.FacebookAppSecret != nil { + facebookAuthSettings.AppSecret = *props.FacebookAppSecret + } + + if props.FacebookAppSecretSettingName != nil { + facebookAuthSettings.AppSecretSettingName = *props.FacebookAppSecretSettingName + } + + if props.FacebookOAuthScopes != nil { + facebookAuthSettings.OauthScopes = *props.FacebookOAuthScopes + } + + result.FacebookAuth = []FacebookAuthSettings{facebookAuthSettings} + } + + if props.GitHubClientId != nil { + githubAuthSetting := GithubAuthSettings{ + ClientId: *props.GitHubClientId, + } + + if props.GitHubClientSecret != nil { + githubAuthSetting.ClientSecret = *props.GitHubClientSecret + } + + if props.GitHubClientSecretSettingName != nil { + githubAuthSetting.ClientSecretSettingName = *props.GitHubClientSecretSettingName + } + + result.GithubAuth = []GithubAuthSettings{githubAuthSetting} + } + + if props.GoogleClientId != nil { + googleAuthSettings := GoogleAuthSettings{ + ClientId: *props.GoogleClientId, + } + + if props.GoogleClientSecret != nil { + googleAuthSettings.ClientSecret = *props.GoogleClientSecret + } + + if props.GoogleClientSecretSettingName != nil { + googleAuthSettings.ClientSecretSettingName = *props.GoogleClientSecretSettingName + } + + if props.GoogleOAuthScopes != nil { + googleAuthSettings.OauthScopes = *props.GoogleOAuthScopes + } + + result.GoogleAuth = []GoogleAuthSettings{googleAuthSettings} + } + + if props.MicrosoftAccountClientId != nil { + microsoftAuthSettings := MicrosoftAuthSettings{ + ClientId: *props.MicrosoftAccountClientId, + } + + if props.MicrosoftAccountClientSecret != nil { + microsoftAuthSettings.ClientSecret = *props.MicrosoftAccountClientSecret + } + + if props.MicrosoftAccountClientSecretSettingName != nil { + microsoftAuthSettings.ClientSecretSettingName = *props.MicrosoftAccountClientSecretSettingName + } + + if props.MicrosoftAccountOAuthScopes != nil { + microsoftAuthSettings.OauthScopes = *props.MicrosoftAccountOAuthScopes + } + + result.MicrosoftAuth = []MicrosoftAuthSettings{microsoftAuthSettings} + } + + if props.TwitterConsumerKey != nil { + twitterAuthSetting := TwitterAuthSettings{ + ConsumerKey: *props.TwitterConsumerKey, + } + if props.TwitterConsumerSecret != nil { + twitterAuthSetting.ConsumerSecret = *props.TwitterConsumerSecret + } + if props.TwitterConsumerSecretSettingName != nil { + twitterAuthSetting.ConsumerSecretSettingName = *props.TwitterConsumerSecretSettingName + } + + result.TwitterAuth = []TwitterAuthSettings{twitterAuthSetting} + } + + return []AuthSettings{result} +} + func FlattenIpRestrictions(ipRestrictionsList *[]web.IPSecurityRestriction) []IpRestriction { if ipRestrictionsList == nil { return []IpRestriction{} @@ -1500,6 +1838,55 @@ func FlattenIpRestrictions(ipRestrictionsList *[]web.IPSecurityRestriction) []Ip return ipRestrictions } +func FlattenIpRestrictionsLinuxWebApps(ipRestrictionsList *[]webapps.IPSecurityRestriction) []IpRestriction { + if ipRestrictionsList == nil { + return []IpRestriction{} + } + + var ipRestrictions []IpRestriction + for _, v := range *ipRestrictionsList { + ipRestriction := IpRestriction{} + + if v.Name != nil { + ipRestriction.Name = *v.Name + } + + if v.IPAddress != nil { + if *v.IPAddress == "Any" { + continue + } + + if v.Tag != nil { + if *v.Tag == webapps.IPFilterTagServiceTag { + ipRestriction.ServiceTag = *v.IPAddress + } else { + ipRestriction.IpAddress = *v.IPAddress + } + } + } + + if v.VnetSubnetResourceId != nil { + ipRestriction.VnetSubnetId = *v.VnetSubnetResourceId + } + + if v.Priority != nil { + ipRestriction.Priority = int(*v.Priority) + } + + if v.Action != nil { + ipRestriction.Action = *v.Action + } + + if v.Headers != nil { + ipRestriction.Headers = flattenIpRestrictionHeaders(*v.Headers) + } + + ipRestrictions = append(ipRestrictions, ipRestriction) + } + + return ipRestrictions +} + func flattenIpRestrictionHeaders(headers map[string][]string) []IpRestrictionHeaders { if len(headers) == 0 { return []IpRestrictionHeaders{} @@ -1533,6 +1920,18 @@ func FlattenWebStringDictionary(input web.StringDictionary) map[string]string { return result } +func FlattenWebStringDictionaryLinuxWebApps(input *webapps.StringDictionary) map[string]string { + if input == nil || input.Properties == nil { + return nil + } + result := make(map[string]string) + for k, v := range *input.Properties { + result[k] = v + } + + return result +} + func FlattenSiteCredentials(input web.User) []SiteCredential { var result []SiteCredential if input.UserProperties == nil { @@ -1548,6 +1947,21 @@ func FlattenSiteCredentials(input web.User) []SiteCredential { return result } +func FlattenSiteCredentialsLinuxWebApps(input webapps.User) []SiteCredential { + var result []SiteCredential + if input.Properties == nil { + return result + } + + userProps := *input.Properties + result = append(result, SiteCredential{ + Username: userProps.PublishingUserName, + Password: utils.NormalizeNilableString(userProps.PublishingPassword), + }) + + return result +} + type StickySettings struct { AppSettingNames []string `tfschema:"app_setting_names"` ConnectionStringNames []string `tfschema:"connection_string_names"` @@ -1629,6 +2043,17 @@ func ExpandStickySettings(input []StickySettings) *web.SlotConfigNames { } } +func ExpandStickySettingsLinuxWebApps(input []StickySettings) *webapps.SlotConfigNames { + if len(input) == 0 { + return nil + } + + return &webapps.SlotConfigNames{ + AppSettingNames: &input[0].AppSettingNames, + ConnectionStringNames: &input[0].ConnectionStringNames, + } +} + func FlattenStickySettings(input *web.SlotConfigNames) []StickySettings { result := StickySettings{} if input == nil || (input.AppSettingNames == nil && input.ConnectionStringNames == nil) || (len(*input.AppSettingNames) == 0 && len(*input.ConnectionStringNames) == 0) { @@ -1645,3 +2070,20 @@ func FlattenStickySettings(input *web.SlotConfigNames) []StickySettings { return []StickySettings{result} } + +func FlattenStickySettingsLinuxWebApps(input *webapps.SlotConfigNamesResource) []StickySettings { + result := StickySettings{} + if input == nil || input.Properties == nil && (input.Properties.AppSettingNames == nil && input.Properties.ConnectionStringNames == nil) || (len(*input.Properties.AppSettingNames) == 0 && len(*input.Properties.ConnectionStringNames) == 0) { + return []StickySettings{} + } + + if input.Properties.AppSettingNames != nil && len(*input.Properties.AppSettingNames) > 0 { + result.AppSettingNames = *input.Properties.AppSettingNames + } + + if input.Properties.ConnectionStringNames != nil && len(*input.Properties.ConnectionStringNames) > 0 { + result.ConnectionStringNames = *input.Properties.ConnectionStringNames + } + + return []StickySettings{result} +} diff --git a/internal/services/appservice/helpers/web_app_slot_schema.go b/internal/services/appservice/helpers/web_app_slot_schema.go index f0ccac9574bf..83e115a21047 100644 --- a/internal/services/appservice/helpers/web_app_slot_schema.go +++ b/internal/services/appservice/helpers/web_app_slot_schema.go @@ -9,6 +9,7 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" apimValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" @@ -157,10 +158,10 @@ func SiteConfigSchemaLinuxWebAppSlot() *pluginsdk.Schema { "managed_pipeline_mode": { Type: pluginsdk.TypeString, Optional: true, - Default: string(web.ManagedPipelineModeIntegrated), + Default: string(webapps.ManagedPipelineModeIntegrated), ValidateFunc: validation.StringInSlice([]string{ - string(web.ManagedPipelineModeClassic), - string(web.ManagedPipelineModeIntegrated), + string(webapps.ManagedPipelineModeClassic), + string(webapps.ManagedPipelineModeIntegrated), }, false), }, @@ -200,11 +201,11 @@ func SiteConfigSchemaLinuxWebAppSlot() *pluginsdk.Schema { "ftps_state": { Type: pluginsdk.TypeString, Optional: true, - Default: string(web.FtpsStateDisabled), + Default: string(webapps.FtpsStateDisabled), ValidateFunc: validation.StringInSlice([]string{ - string(web.FtpsStateAllAllowed), - string(web.FtpsStateDisabled), - string(web.FtpsStateFtpsOnly), + string(webapps.FtpsStateAllAllowed), + string(webapps.FtpsStateDisabled), + string(webapps.FtpsStateFtpsOnly), }, false), }, @@ -231,22 +232,22 @@ func SiteConfigSchemaLinuxWebAppSlot() *pluginsdk.Schema { "minimum_tls_version": { Type: pluginsdk.TypeString, Optional: true, - Default: string(web.SupportedTLSVersionsOneFullStopTwo), + Default: string(webapps.SupportedTlsVersionsOnePointTwo), ValidateFunc: validation.StringInSlice([]string{ - string(web.SupportedTLSVersionsOneFullStopZero), - string(web.SupportedTLSVersionsOneFullStopOne), - string(web.SupportedTLSVersionsOneFullStopTwo), + string(webapps.SupportedTlsVersionsOnePointZero), + string(webapps.SupportedTlsVersionsOnePointOne), + string(webapps.SupportedTlsVersionsOnePointTwo), }, false), }, "scm_minimum_tls_version": { Type: pluginsdk.TypeString, Optional: true, - Default: string(web.SupportedTLSVersionsOneFullStopTwo), + Default: string(webapps.SupportedTlsVersionsOnePointTwo), ValidateFunc: validation.StringInSlice([]string{ - string(web.SupportedTLSVersionsOneFullStopZero), - string(web.SupportedTLSVersionsOneFullStopOne), - string(web.SupportedTLSVersionsOneFullStopTwo), + string(webapps.SupportedTlsVersionsOnePointZero), + string(webapps.SupportedTlsVersionsOnePointOne), + string(webapps.SupportedTlsVersionsOnePointTwo), }, false), }, @@ -543,33 +544,33 @@ func SiteConfigSchemaWindowsWebAppSlot() *pluginsdk.Schema { } } -func (s *SiteConfigLinuxWebAppSlot) ExpandForCreate(appSettings map[string]string) (*web.SiteConfig, error) { - expanded := &web.SiteConfig{} +func (s *SiteConfigLinuxWebAppSlot) ExpandForCreate(appSettings map[string]string) (*webapps.SiteConfig, error) { + expanded := &webapps.SiteConfig{} expanded.AlwaysOn = pointer.To(s.AlwaysOn) expanded.AcrUseManagedIdentityCreds = pointer.To(s.UseManagedIdentityACR) expanded.HTTP20Enabled = pointer.To(s.Http2Enabled) expanded.ScmIPSecurityRestrictionsUseMain = pointer.To(s.ScmUseMainIpRestriction) - expanded.LocalMySQLEnabled = pointer.To(s.LocalMysql) - expanded.LoadBalancing = web.SiteLoadBalancing(s.LoadBalancing) - expanded.ManagedPipelineMode = web.ManagedPipelineMode(s.ManagedPipelineMode) + expanded.LocalMySqlEnabled = pointer.To(s.LocalMysql) + expanded.LoadBalancing = pointer.To(webapps.SiteLoadBalancing(s.LoadBalancing)) + expanded.ManagedPipelineMode = pointer.To(webapps.ManagedPipelineMode(s.ManagedPipelineMode)) expanded.RemoteDebuggingEnabled = pointer.To(s.RemoteDebugging) expanded.Use32BitWorkerProcess = pointer.To(s.Use32BitWorker) expanded.WebSocketsEnabled = pointer.To(s.WebSockets) - expanded.FtpsState = web.FtpsState(s.FtpsState) - expanded.MinTLSVersion = web.SupportedTLSVersions(s.MinTlsVersion) - expanded.ScmMinTLSVersion = web.SupportedTLSVersions(s.ScmMinTlsVersion) + expanded.FtpsState = pointer.To(webapps.FtpsState(s.FtpsState)) + expanded.MinTlsVersion = pointer.To(webapps.SupportedTlsVersions(s.MinTlsVersion)) + expanded.ScmMinTlsVersion = pointer.To(webapps.SupportedTlsVersions(s.ScmMinTlsVersion)) expanded.AutoHealEnabled = pointer.To(s.AutoHeal) expanded.VnetRouteAllEnabled = pointer.To(s.VnetRouteAllEnabled) if s.ApiManagementConfigId != "" { - expanded.APIManagementConfig = &web.APIManagementConfig{ - ID: pointer.To(s.ApiManagementConfigId), + expanded.ApiManagementConfig = &webapps.ApiManagementConfig{ + Id: pointer.To(s.ApiManagementConfigId), } } if s.ApiDefinition != "" { - expanded.APIDefinition = &web.APIDefinitionInfo{ - URL: pointer.To(s.ApiDefinition), + expanded.ApiDefinition = &webapps.ApiDefinitionInfo{ + Url: pointer.To(s.ApiDefinition), } } @@ -630,7 +631,7 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForCreate(appSettings map[string]strin } } - expanded.AppSettings = ExpandAppSettingsForCreate(appSettings) + expanded.AppSettings = ExpandAppSettingsForCreateLinuxWebApp(appSettings) if s.AutoSwapSlotName != "" { expanded.AutoSwapSlotName = pointer.To(s.AutoSwapSlotName) @@ -645,7 +646,7 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForCreate(appSettings map[string]strin } if len(s.IpRestriction) != 0 { - ipRestrictions, err := ExpandIpRestrictions(s.IpRestriction) + ipRestrictions, err := ExpandIpRestrictionsLinuxWebApps(s.IpRestriction) if err != nil { return nil, err } @@ -654,7 +655,7 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForCreate(appSettings map[string]strin } if len(s.ScmIpRestriction) != 0 { - ipRestrictions, err := ExpandIpRestrictions(s.ScmIpRestriction) + ipRestrictions, err := ExpandIpRestrictionsLinuxWebApps(s.ScmIpRestriction) if err != nil { return nil, err } @@ -671,7 +672,7 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForCreate(appSettings map[string]strin } if len(s.Cors) != 0 { - expanded.Cors = ExpandCorsSettings(s.Cors) + expanded.Cors = ExpandCorsSettingsLinuxWebApps(s.Cors) } if len(s.AutoHealSettings) == 1 { @@ -681,13 +682,13 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForCreate(appSettings map[string]strin return expanded, nil } -func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *web.SiteConfig, appSettings map[string]string) (*web.SiteConfig, error) { +func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *webapps.SiteConfig, appSettings map[string]string) (*webapps.SiteConfig, error) { expanded := *existing expanded.AcrUseManagedIdentityCreds = pointer.To(s.UseManagedIdentityACR) expanded.AutoHealEnabled = pointer.To(s.AutoHeal) expanded.HTTP20Enabled = pointer.To(s.Http2Enabled) - expanded.LocalMySQLEnabled = pointer.To(s.LocalMysql) + expanded.LocalMySqlEnabled = pointer.To(s.LocalMysql) expanded.RemoteDebuggingEnabled = pointer.To(s.RemoteDebugging) expanded.ScmIPSecurityRestrictionsUseMain = pointer.To(s.ScmUseMainIpRestriction) expanded.Use32BitWorkerProcess = pointer.To(s.Use32BitWorker) @@ -695,14 +696,14 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaDat expanded.VnetRouteAllEnabled = pointer.To(s.VnetRouteAllEnabled) if metadata.ResourceData.HasChange("site_config.0.api_management_api_id") { - expanded.APIManagementConfig = &web.APIManagementConfig{ - ID: pointer.To(s.ApiManagementConfigId), + expanded.ApiManagementConfig = &webapps.ApiManagementConfig{ + Id: pointer.To(s.ApiManagementConfigId), } } if metadata.ResourceData.HasChange("site_config.0.api_definition_url") { - expanded.APIDefinition = &web.APIDefinitionInfo{ - URL: pointer.To(s.ApiDefinition), + expanded.ApiDefinition = &webapps.ApiDefinitionInfo{ + Url: pointer.To(s.ApiDefinition), } } @@ -766,7 +767,7 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaDat expanded.LinuxFxVersion = pointer.To("") } } - expanded.AppSettings = ExpandAppSettingsForCreate(appSettings) + expanded.AppSettings = ExpandAppSettingsForCreateLinuxWebApp(appSettings) if metadata.ResourceData.HasChange("site_config.0.auto_swap_slot_name") { expanded.AutoSwapSlotName = pointer.To(s.AutoSwapSlotName) @@ -781,7 +782,7 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaDat } if metadata.ResourceData.HasChange("site_config.0.ip_restriction") { - ipRestrictions, err := ExpandIpRestrictions(s.IpRestriction) + ipRestrictions, err := ExpandIpRestrictionsLinuxWebApps(s.IpRestriction) if err != nil { return nil, err } @@ -789,7 +790,7 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaDat } if metadata.ResourceData.HasChange("site_config.0.scm_ip_restriction") { - scmIpRestrictions, err := ExpandIpRestrictions(s.ScmIpRestriction) + scmIpRestrictions, err := ExpandIpRestrictionsLinuxWebApps(s.ScmIpRestriction) if err != nil { return nil, err } @@ -797,11 +798,11 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaDat } if metadata.ResourceData.HasChange("site_config.0.load_balancing_mode") { - expanded.LoadBalancing = web.SiteLoadBalancing(s.LoadBalancing) + expanded.LoadBalancing = pointer.To(webapps.SiteLoadBalancing(s.LoadBalancing)) } if metadata.ResourceData.HasChange("site_config.0.managed_pipeline_mode") { - expanded.ManagedPipelineMode = web.ManagedPipelineMode(s.ManagedPipelineMode) + expanded.ManagedPipelineMode = pointer.To(webapps.ManagedPipelineMode(s.ManagedPipelineMode)) } if metadata.ResourceData.HasChange("site_config.0.remote_debugging_version") { @@ -809,7 +810,7 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaDat } if metadata.ResourceData.HasChange("site_config.0.ftps_state") { - expanded.FtpsState = web.FtpsState(s.FtpsState) + expanded.FtpsState = pointer.To(webapps.FtpsState(s.FtpsState)) } if metadata.ResourceData.HasChange("site_config.0.health_check_path") { @@ -817,17 +818,17 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaDat } if metadata.ResourceData.HasChange("site_config.0.minimum_tls_version") { - expanded.MinTLSVersion = web.SupportedTLSVersions(s.MinTlsVersion) + expanded.MinTlsVersion = pointer.To(webapps.SupportedTlsVersions(s.MinTlsVersion)) } if metadata.ResourceData.HasChange("site_config.0.scm_minimum_tls_version") { - expanded.ScmMinTLSVersion = web.SupportedTLSVersions(s.ScmMinTlsVersion) + expanded.ScmMinTlsVersion = pointer.To(webapps.SupportedTlsVersions(s.ScmMinTlsVersion)) } if metadata.ResourceData.HasChange("site_config.0.cors") { - cors := ExpandCorsSettings(s.Cors) + cors := ExpandCorsSettingsLinuxWebApps(s.Cors) if cors == nil { - cors = &web.CorsSettings{ + cors = &webapps.CorsSettings{ AllowedOrigins: &[]string{}, } } @@ -841,41 +842,59 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaDat return &expanded, nil } -func (s *SiteConfigLinuxWebAppSlot) Flatten(appSiteSlotConfig *web.SiteConfig) { +func (s *SiteConfigLinuxWebAppSlot) Flatten(appSiteSlotConfig *webapps.SiteConfig) { s.AlwaysOn = pointer.From(appSiteSlotConfig.AlwaysOn) s.AppCommandLine = pointer.From(appSiteSlotConfig.AppCommandLine) s.AutoHeal = pointer.From(appSiteSlotConfig.AutoHealEnabled) s.AutoHealSettings = flattenAutoHealSettingsLinux(appSiteSlotConfig.AutoHealRules) s.AutoSwapSlotName = pointer.From(appSiteSlotConfig.AutoSwapSlotName) s.ContainerRegistryMSI = pointer.From(appSiteSlotConfig.AcrUserManagedIdentityID) - s.Cors = FlattenCorsSettings(appSiteSlotConfig.Cors) + s.Cors = FlattenCorsSettingsLinuxWebApps(appSiteSlotConfig.Cors) s.DetailedErrorLogging = pointer.From(appSiteSlotConfig.DetailedErrorLoggingEnabled) s.Http2Enabled = pointer.From(appSiteSlotConfig.HTTP20Enabled) - s.IpRestriction = FlattenIpRestrictions(appSiteSlotConfig.IPSecurityRestrictions) - s.ManagedPipelineMode = string(appSiteSlotConfig.ManagedPipelineMode) - s.ScmType = string(appSiteSlotConfig.ScmType) - s.FtpsState = string(appSiteSlotConfig.FtpsState) + s.IpRestriction = FlattenIpRestrictionsLinuxWebApps(appSiteSlotConfig.IPSecurityRestrictions) s.HealthCheckPath = pointer.From(appSiteSlotConfig.HealthCheckPath) - s.LoadBalancing = string(appSiteSlotConfig.LoadBalancing) - s.LocalMysql = pointer.From(appSiteSlotConfig.LocalMySQLEnabled) - s.MinTlsVersion = string(appSiteSlotConfig.MinTLSVersion) + s.LocalMysql = pointer.From(appSiteSlotConfig.LocalMySqlEnabled) s.WorkerCount = int(pointer.From(appSiteSlotConfig.NumberOfWorkers)) s.RemoteDebugging = pointer.From(appSiteSlotConfig.RemoteDebuggingEnabled) s.RemoteDebuggingVersion = strings.ToUpper(pointer.From(appSiteSlotConfig.RemoteDebuggingVersion)) - s.ScmIpRestriction = FlattenIpRestrictions(appSiteSlotConfig.ScmIPSecurityRestrictions) - s.ScmMinTlsVersion = string(appSiteSlotConfig.ScmMinTLSVersion) + s.ScmIpRestriction = FlattenIpRestrictionsLinuxWebApps(appSiteSlotConfig.ScmIPSecurityRestrictions) s.ScmUseMainIpRestriction = pointer.From(appSiteSlotConfig.ScmIPSecurityRestrictionsUseMain) s.Use32BitWorker = pointer.From(appSiteSlotConfig.Use32BitWorkerProcess) s.UseManagedIdentityACR = pointer.From(appSiteSlotConfig.AcrUseManagedIdentityCreds) s.WebSockets = pointer.From(appSiteSlotConfig.WebSocketsEnabled) s.VnetRouteAllEnabled = pointer.From(appSiteSlotConfig.VnetRouteAllEnabled) - if appSiteSlotConfig.APIManagementConfig != nil && appSiteSlotConfig.APIManagementConfig.ID != nil { - s.ApiManagementConfigId = *appSiteSlotConfig.APIManagementConfig.ID + if appSiteSlotConfig.ApiManagementConfig != nil && appSiteSlotConfig.ApiManagementConfig.Id != nil { + s.ApiManagementConfigId = *appSiteSlotConfig.ApiManagementConfig.Id } - if appSiteSlotConfig.APIDefinition != nil && appSiteSlotConfig.APIDefinition.URL != nil { - s.ApiDefinition = *appSiteSlotConfig.APIDefinition.URL + if appSiteSlotConfig.ManagedPipelineMode != nil { + s.ManagedPipelineMode = string(*appSiteSlotConfig.ManagedPipelineMode) + } + + if appSiteSlotConfig.FtpsState != nil { + s.FtpsState = string(*appSiteSlotConfig.FtpsState) + } + + if appSiteSlotConfig.LoadBalancing != nil { + s.LoadBalancing = string(*appSiteSlotConfig.LoadBalancing) + } + + if appSiteSlotConfig.MinTlsVersion != nil { + s.MinTlsVersion = string(*appSiteSlotConfig.MinTlsVersion) + } + + if appSiteSlotConfig.ScmMinTlsVersion != nil { + s.ScmMinTlsVersion = string(*appSiteSlotConfig.ScmMinTlsVersion) + } + + if appSiteSlotConfig.ScmType != nil { + s.ScmType = string(*appSiteSlotConfig.ScmType) + } + + if appSiteSlotConfig.ApiDefinition != nil && appSiteSlotConfig.ApiDefinition.Url != nil { + s.ApiDefinition = *appSiteSlotConfig.ApiDefinition.Url } if appSiteSlotConfig.DefaultDocuments != nil { diff --git a/internal/services/appservice/linux_web_app_data_source.go b/internal/services/appservice/linux_web_app_data_source.go index eddaa1f91fc2..43c144ba7210 100644 --- a/internal/services/appservice/linux_web_app_data_source.go +++ b/internal/services/appservice/linux_web_app_data_source.go @@ -5,20 +5,22 @@ package appservice import ( "context" + "encoding/json" "fmt" "strings" "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/helpers" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) type LinuxWebAppDataSource struct{} @@ -251,7 +253,7 @@ func (r LinuxWebAppDataSource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.AppService.WebAppsClient + client := metadata.Client.AppService.LinuxWebAppsClient subscriptionId := metadata.Client.Account.SubscriptionId var webApp LinuxWebAppDataSourceModel @@ -259,140 +261,153 @@ func (r LinuxWebAppDataSource) Read() sdk.ResourceFunc { return err } - id := parse.NewWebAppID(subscriptionId, webApp.ResourceGroup, webApp.Name) + id := commonids.NewAppServiceID(subscriptionId, webApp.ResourceGroup, webApp.Name) - existing, err := client.Get(ctx, id.ResourceGroup, id.SiteName) + existing, err := client.Get(ctx, id) if err != nil { - if utils.ResponseWasNotFound(existing.Response) { + if response.WasNotFound(existing.HttpResponse) { return fmt.Errorf("Linux %s not found", id) } return fmt.Errorf("retreiving Linux %s: %+v", id, err) } - webAppSiteConfig, err := client.GetConfiguration(ctx, id.ResourceGroup, id.SiteName) + webAppSiteConfig, err := client.GetConfiguration(ctx, id) if err != nil { return fmt.Errorf("reading Site Config for Linux %s: %+v", id, err) } - auth, err := client.GetAuthSettings(ctx, id.ResourceGroup, id.SiteName) + auth, err := client.GetAuthSettings(ctx, id) if err != nil { return fmt.Errorf("reading Auth Settings for Linux %s: %+v", id, err) } - authV2, err := client.GetAuthSettingsV2(ctx, id.ResourceGroup, id.SiteName) + authV2, err := client.GetAuthSettingsV2(ctx, id) if err != nil { return fmt.Errorf("reading authV2 settings for Linux %s: %+v", id, err) } - backup, err := client.GetBackupConfiguration(ctx, id.ResourceGroup, id.SiteName) + backup, err := client.GetBackupConfiguration(ctx, id) if err != nil { - if !utils.ResponseWasNotFound(backup.Response) { + if !response.WasNotFound(backup.HttpResponse) { return fmt.Errorf("reading Backup Settings for Linux %s: %+v", id, err) } } - logsConfig, err := client.GetDiagnosticLogsConfiguration(ctx, id.ResourceGroup, id.SiteName) + logsConfig, err := client.GetDiagnosticLogsConfiguration(ctx, id) if err != nil { return fmt.Errorf("reading Diagnostic Logs information for Linux %s: %+v", id, err) } - appSettings, err := client.ListApplicationSettings(ctx, id.ResourceGroup, id.SiteName) + appSettings, err := client.ListApplicationSettings(ctx, id) if err != nil { return fmt.Errorf("reading App Settings for Linux %s: %+v", id, err) } - storageAccounts, err := client.ListAzureStorageAccounts(ctx, id.ResourceGroup, id.SiteName) + storageAccounts, err := client.ListAzureStorageAccounts(ctx, id) if err != nil { return fmt.Errorf("reading Storage Account information for Linux %s: %+v", id, err) } - connectionStrings, err := client.ListConnectionStrings(ctx, id.ResourceGroup, id.SiteName) + connectionStrings, err := client.ListConnectionStrings(ctx, id) if err != nil { return fmt.Errorf("reading Connection String information for Linux %s: %+v", id, err) } - stickySettings, err := client.ListSlotConfigurationNames(ctx, id.ResourceGroup, id.SiteName) + stickySettings, err := client.ListSlotConfigurationNames(ctx, id) if err != nil { return fmt.Errorf("reading Sticky Settings for Linux %s: %+v", id, err) } - siteCredentialsFuture, err := client.ListPublishingCredentials(ctx, id.ResourceGroup, id.SiteName) + siteCredentialsFuture, err := client.ListPublishingCredentials(ctx, id) if err != nil { return fmt.Errorf("listing Site Publishing Credential information for Linux %s: %+v", id, err) } - if err := siteCredentialsFuture.WaitForCompletionRef(ctx, client.Client); err != nil { + if err := siteCredentialsFuture.Poller.PollUntilDone(ctx); err != nil { return fmt.Errorf("waiting for Site Publishing Credential information for Linux %s: %+v", id, err) } - siteCredentials, err := siteCredentialsFuture.Result(*client) - if err != nil { - return fmt.Errorf("reading Site Publishing Credential information for Linux %s: %+v", id, err) + + var siteCredentials webapps.User + if err := json.NewDecoder(siteCredentialsFuture.HttpResponse.Body).Decode(&siteCredentials); err != nil { + return fmt.Errorf("reading Site Publishing Credential information for %s : %+v", id, err) } - webApp.AppSettings = helpers.FlattenWebStringDictionary(appSettings) - webApp.Kind = pointer.From(existing.Kind) - webApp.Location = location.NormalizeNilable(existing.Location) - webApp.Tags = tags.ToTypedObject(existing.Tags) - if props := existing.SiteProperties; props != nil { - webApp.Availability = string(props.AvailabilityState) - if props.ClientAffinityEnabled != nil { - webApp.ClientAffinityEnabled = *props.ClientAffinityEnabled - } - if props.ClientCertEnabled != nil { - webApp.ClientCertEnabled = *props.ClientCertEnabled - } - webApp.ClientCertMode = string(props.ClientCertMode) - webApp.ClientCertExclusionPaths = pointer.From(props.ClientCertExclusionPaths) - webApp.CustomDomainVerificationId = pointer.From(props.CustomDomainVerificationID) - webApp.DefaultHostname = pointer.From(props.DefaultHostName) - if props.Enabled != nil { - webApp.Enabled = *props.Enabled + webApp.AppSettings = helpers.FlattenWebStringDictionaryLinuxWebApps(appSettings.Model) + if model := existing.Model; model != nil { + webApp.Kind = pointer.From(existing.Model.Kind) + webApp.Location = model.Location + if model.Tags != nil { + webApp.Tags = *model.Tags } - if props.HTTPSOnly != nil { - webApp.HttpsOnly = *props.HTTPSOnly + if props := model.Properties; props != nil { + if props.AvailabilityState != nil { + webApp.Availability = string(*props.AvailabilityState) + } + + if props.ClientAffinityEnabled != nil { + webApp.ClientAffinityEnabled = *props.ClientAffinityEnabled + } + if props.ClientCertEnabled != nil { + webApp.ClientCertEnabled = *props.ClientCertEnabled + } + if props.ClientCertMode != nil { + webApp.ClientCertMode = string(*props.ClientCertMode) + } + webApp.ClientCertExclusionPaths = pointer.From(props.ClientCertExclusionPaths) + webApp.CustomDomainVerificationId = pointer.From(props.CustomDomainVerificationId) + webApp.DefaultHostname = pointer.From(props.DefaultHostName) + if props.Enabled != nil { + webApp.Enabled = *props.Enabled + } + if props.HTTPSOnly != nil { + webApp.HttpsOnly = *props.HTTPSOnly + } + webApp.ServicePlanId = pointer.From(props.ServerFarmId) + webApp.OutboundIPAddresses = pointer.From(props.OutboundIPAddresses) + webApp.OutboundIPAddressList = strings.Split(webApp.OutboundIPAddresses, ",") + webApp.PossibleOutboundIPAddresses = pointer.From(props.PossibleOutboundIPAddresses) + webApp.PossibleOutboundIPAddressList = strings.Split(webApp.PossibleOutboundIPAddresses, ",") + if props.UsageState != nil { + webApp.Usage = string(*props.UsageState) + } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + webApp.HostingEnvId = pointer.From(hostingEnv.Id) + } + if subnetId := pointer.From(props.VirtualNetworkSubnetId); subnetId != "" { + webApp.VirtualNetworkSubnetID = subnetId + } + webApp.PublicNetworkAccess = !strings.EqualFold(pointer.From(props.PublicNetworkAccess), helpers.PublicNetworkAccessDisabled) } - webApp.ServicePlanId = pointer.From(props.ServerFarmID) - webApp.OutboundIPAddresses = pointer.From(props.OutboundIPAddresses) - webApp.OutboundIPAddressList = strings.Split(webApp.OutboundIPAddresses, ",") - webApp.PossibleOutboundIPAddresses = pointer.From(props.PossibleOutboundIPAddresses) - webApp.PossibleOutboundIPAddressList = strings.Split(webApp.PossibleOutboundIPAddresses, ",") - webApp.Usage = string(props.UsageState) - if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { - webApp.HostingEnvId = pointer.From(hostingEnv.ID) - } - if subnetId := pointer.From(props.VirtualNetworkSubnetID); subnetId != "" { - webApp.VirtualNetworkSubnetID = subnetId - } - webApp.PublicNetworkAccess = !strings.EqualFold(pointer.From(props.PublicNetworkAccess), helpers.PublicNetworkAccessDisabled) } - basicAuthFTP := true - if basicAuthFTPResp, err := client.GetFtpAllowed(ctx, id.ResourceGroup, id.SiteName); err != nil { + if basicAuthFTPResp, err := client.GetFtpAllowed(ctx, id); err != nil { return fmt.Errorf("retrieving state of FTP Basic Auth for %s: %+v", id, err) - } else if csmProps := basicAuthFTPResp.CsmPublishingCredentialsPoliciesEntityProperties; csmProps != nil { - basicAuthFTP = pointer.From(csmProps.Allow) + } else if basicAuthFTPResp.Model != nil && basicAuthFTPResp.Model.Properties != nil { + basicAuthFTP = basicAuthFTPResp.Model.Properties.Allow } basicAuthWebDeploy := true - if basicAuthWebDeployResp, err := client.GetScmAllowed(ctx, id.ResourceGroup, id.SiteName); err != nil { + if basicAuthWebDeployResp, err := client.GetScmAllowed(ctx, id); err != nil { return fmt.Errorf("retrieving state of WebDeploy Basic Auth for %s: %+v", id, err) - } else if csmProps := basicAuthWebDeployResp.CsmPublishingCredentialsPoliciesEntityProperties; csmProps != nil { - basicAuthWebDeploy = pointer.From(csmProps.Allow) + } else if basicAuthWebDeployResp.Model != nil && basicAuthWebDeployResp.Model.Properties != nil { + basicAuthWebDeploy = basicAuthWebDeployResp.Model.Properties.Allow } webApp.PublishingFTPBasicAuthEnabled = basicAuthFTP webApp.PublishingDeployBasicAuthEnabled = basicAuthWebDeploy - webApp.AuthSettings = helpers.FlattenAuthSettings(auth) + webApp.AuthSettings = helpers.FlattenAuthSettingsLinuxWebApps(auth.Model) - webApp.AuthV2Settings = helpers.FlattenAuthV2Settings(authV2) + webApp.AuthV2Settings = helpers.FlattenAuthV2SettingsLinuxWebApps(authV2.Model) - webApp.Backup = helpers.FlattenBackupConfig(backup) + webApp.Backup = helpers.FlattenBackupConfigLinuxWebApps(backup.Model) - webApp.LogsConfig = helpers.FlattenLogsConfig(logsConfig) + webApp.LogsConfig = helpers.FlattenLogsConfigLinuxWebApps(logsConfig.Model) siteConfig := helpers.SiteConfigLinux{} - siteConfig.Flatten(webAppSiteConfig.SiteConfig) + if webAppSiteConfig.Model != nil { + siteConfig.Flatten(webAppSiteConfig.Model.Properties) + } siteConfig.SetHealthCheckEvictionTime(webApp.AppSettings) if helpers.FxStringHasPrefix(siteConfig.LinuxFxVersion, helpers.FxStringPrefixDocker) { @@ -404,13 +419,13 @@ func (r LinuxWebAppDataSource) Read() sdk.ResourceFunc { // Filter out all settings we've consumed above webApp.AppSettings = helpers.FilterManagedAppSettings(webApp.AppSettings) - webApp.StorageAccounts = helpers.FlattenStorageAccounts(storageAccounts) + webApp.StorageAccounts = helpers.FlattenStorageAccountsLinuxWebApps(storageAccounts.Model) - webApp.ConnectionStrings = helpers.FlattenConnectionStrings(connectionStrings) + webApp.ConnectionStrings = helpers.FlattenConnectionStringsLinuxWebApps(connectionStrings.Model) - webApp.StickySettings = helpers.FlattenStickySettings(stickySettings.SlotConfigNames) + webApp.StickySettings = helpers.FlattenStickySettingsLinuxWebApps(stickySettings.Model) - webApp.SiteCredentials = helpers.FlattenSiteCredentials(siteCredentials) + webApp.SiteCredentials = helpers.FlattenSiteCredentialsLinuxWebApps(siteCredentials) metadata.SetID(id) @@ -418,11 +433,11 @@ func (r LinuxWebAppDataSource) Read() sdk.ResourceFunc { return fmt.Errorf("encoding: %+v", err) } - flattenedIdentity, err := flattenIdentity(existing.Identity) + identity, err := identity.FlattenSystemAndUserAssignedMap(existing.Model.Identity) if err != nil { return fmt.Errorf("flattening `identity`: %+v", err) } - if err := metadata.ResourceData.Set("identity", flattenedIdentity); err != nil { + if err := metadata.ResourceData.Set("identity", identity); err != nil { return fmt.Errorf("setting `identity`: %+v", err) } diff --git a/internal/services/appservice/linux_web_app_resource.go b/internal/services/appservice/linux_web_app_resource.go index f8c354b71258..432bc43d599b 100644 --- a/internal/services/appservice/linux_web_app_resource.go +++ b/internal/services/appservice/linux_web_app_resource.go @@ -5,6 +5,7 @@ package appservice import ( "context" + "encoding/json" "fmt" "strconv" "strings" @@ -15,7 +16,6 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" - "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders" "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/features" @@ -26,7 +26,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) type LinuxWebAppResource struct{} @@ -275,7 +274,8 @@ func (r LinuxWebAppResource) Create() sdk.ResourceFunc { return err } - client := metadata.Client.AppService.WebAppsClient + client := metadata.Client.AppService.LinuxWebAppsClient + availabilityClient := metadata.Client.AppService.AvailabilityClient aseClient := metadata.Client.AppService.AppServiceEnvironmentClient servicePlanClient := metadata.Client.AppService.ServicePlanClient subscriptionId := metadata.Client.Account.SubscriptionId @@ -328,12 +328,12 @@ func (r LinuxWebAppResource) Create() sdk.ResourceFunc { availabilityRequest.IsFqdn = pointer.To(true) } - checkName, err := aseClient.CheckNameAvailability(ctx, availabilityRequest) + checkName, err := availabilityClient.CheckNameAvailability(ctx, commonids.NewSubscriptionID(metadata.Client.Account.SubscriptionId), availabilityRequest) if err != nil { return fmt.Errorf("checking name availability for Linux %s: %+v", id, err) } - if !*checkName.NameAvailable { - return fmt.Errorf("the Site Name %q failed the availability check: %+v", id.SiteName, *checkName.Message) + if !*checkName.Model.NameAvailable { + return fmt.Errorf("the Site Name %q failed the availability check: %+v", id.SiteName, *checkName.HttpResponse) } sc := webApp.SiteConfig[0] @@ -378,127 +378,129 @@ func (r LinuxWebAppResource) Create() sdk.ResourceFunc { } // (@jackofallops) - Values appear to need to be set in both SiteProperties and SiteConfig for now? https://github.com/Azure/azure-rest-api-specs/issues/24681 - siteEnvelope.PublicNetworkAccess = pointer.To(pna) - siteEnvelope.SiteConfig.PublicNetworkAccess = siteEnvelope.PublicNetworkAccess + siteEnvelope.Properties.PublicNetworkAccess = pointer.To(pna) + siteEnvelope.Properties.SiteConfig.PublicNetworkAccess = siteEnvelope.Properties.PublicNetworkAccess if webApp.VirtualNetworkSubnetID != "" { - siteEnvelope.SiteProperties.VirtualNetworkSubnetID = pointer.To(webApp.VirtualNetworkSubnetID) + siteEnvelope.Properties.VirtualNetworkSubnetId = pointer.To(webApp.VirtualNetworkSubnetID) } if webApp.KeyVaultReferenceIdentityID != "" { - siteEnvelope.SiteProperties.KeyVaultReferenceIdentity = pointer.To(webApp.KeyVaultReferenceIdentityID) + siteEnvelope.Properties.KeyVaultReferenceIdentity = pointer.To(webApp.KeyVaultReferenceIdentityID) } if webApp.ClientCertExclusionPaths != "" { - siteEnvelope.ClientCertExclusionPaths = pointer.To(webApp.ClientCertExclusionPaths) + siteEnvelope.Properties.ClientCertExclusionPaths = pointer.To(webApp.ClientCertExclusionPaths) } - future, err := client.CreateOrUpdate(ctx, id.ResourceGroup, id.SiteName, siteEnvelope) - if err != nil { + if err := client.CreateOrUpdateThenPoll(ctx, id, siteEnvelope); err != nil { return fmt.Errorf("creating Linux %s: %+v", id, err) } - if err := future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for creation of Linux %s: %+v", id, err) - } - metadata.SetID(id) - appSettingsUpdate := helpers.ExpandAppSettingsForUpdate(siteConfig.AppSettings) + appSettingsUpdate := helpers.ExpandAppSettingsForUpdateLinuxWebApps(siteConfig.AppSettings) if metadata.ResourceData.HasChange("site_config.0.health_check_eviction_time_in_min") { - appSettingsUpdate.Properties["WEBSITE_HEALTHCHECK_MAXPINGFAILURES"] = pointer.To(strconv.Itoa(webApp.SiteConfig[0].HealthCheckEvictionTime)) + appSettingsUpdateKvps := make(map[string]string) + if appSettingsUpdate != nil && appSettingsUpdate.Properties != nil { + appSettingsUpdateKvps = *appSettingsUpdate.Properties + } + + appSettingsUpdateKvps["WEBSITE_HEALTHCHECK_MAXPINGFAILURES"] = strconv.Itoa(webApp.SiteConfig[0].HealthCheckEvictionTime) + appSettingsUpdate.Properties = &appSettingsUpdateKvps } if appSettingsUpdate.Properties != nil { - if _, err := client.UpdateApplicationSettings(ctx, id.ResourceGroup, id.SiteName, *appSettingsUpdate); err != nil { + if _, err := client.UpdateApplicationSettings(ctx, id, *appSettingsUpdate); err != nil { return fmt.Errorf("setting App Settings for Linux %s: %+v", id, err) } } - stickySettings := helpers.ExpandStickySettings(webApp.StickySettings) + stickySettings := helpers.ExpandStickySettingsLinuxWebApps(webApp.StickySettings) if stickySettings != nil { - stickySettingsUpdate := web.SlotConfigNamesResource{ - SlotConfigNames: stickySettings, + stickySettingsUpdate := webapps.SlotConfigNamesResource{ + Properties: stickySettings, } - if _, err := client.UpdateSlotConfigurationNames(ctx, id.ResourceGroup, id.SiteName, stickySettingsUpdate); err != nil { + if _, err := client.UpdateSlotConfigurationNames(ctx, id, stickySettingsUpdate); err != nil { return fmt.Errorf("updating Sticky Settings for Linux %s: %+v", id, err) } } - auth := helpers.ExpandAuthSettings(webApp.AuthSettings) - if auth.SiteAuthSettingsProperties != nil { - if _, err := client.UpdateAuthSettings(ctx, id.ResourceGroup, id.SiteName, *auth); err != nil { + auth := helpers.ExpandAuthSettingsLinuxWebApps(webApp.AuthSettings) + if auth.Properties != nil { + if _, err := client.UpdateAuthSettings(ctx, id, auth); err != nil { return fmt.Errorf("setting Authorisation Settings for Linux %s: %+v", id, err) } } - authv2 := helpers.ExpandAuthV2Settings(webApp.AuthV2Settings) - if authv2.SiteAuthSettingsV2Properties != nil { - if _, err = client.UpdateAuthSettingsV2(ctx, id.ResourceGroup, id.SiteName, *authv2); err != nil { + authv2 := helpers.ExpandAuthV2SettingsLinuxWebApps(webApp.AuthV2Settings) + if authv2.Properties != nil { + if _, err = client.UpdateAuthSettingsV2(ctx, id, *authv2); err != nil { return fmt.Errorf("updating AuthV2 settings for Linux %s: %+v", id, err) } } if metadata.ResourceData.HasChange("logs") { - logsConfig := helpers.ExpandLogsConfig(webApp.LogsConfig) - if logsConfig.SiteLogsConfigProperties != nil { - if _, err := client.UpdateDiagnosticLogsConfig(ctx, id.ResourceGroup, id.SiteName, *logsConfig); err != nil { + logsConfig := helpers.ExpandLogsConfigLinuxWebApps(webApp.LogsConfig) + if logsConfig.Properties != nil { + if _, err := client.UpdateDiagnosticLogsConfig(ctx, id, logsConfig); err != nil { return fmt.Errorf("setting Diagnostic Logs Configuration for Linux %s: %+v", id, err) } } } - backupConfig, err := helpers.ExpandBackupConfig(webApp.Backup) + backupConfig, err := helpers.ExpandBackupConfigLinuxWebApps(webApp.Backup) if err != nil { return fmt.Errorf("expanding backup configuration for Linux %s: %+v", id, err) } - if backupConfig.BackupRequestProperties != nil { - if _, err := client.UpdateBackupConfiguration(ctx, id.ResourceGroup, id.SiteName, *backupConfig); err != nil { + if backupConfig.Properties != nil { + if _, err := client.UpdateBackupConfiguration(ctx, id, *backupConfig); err != nil { return fmt.Errorf("adding Backup Settings for Linux %s: %+v", id, err) } } - storageConfig := helpers.ExpandStorageConfig(webApp.StorageAccounts) + storageConfig := helpers.ExpandStorageConfigLinuxWebApps(webApp.StorageAccounts) if storageConfig.Properties != nil { - if _, err := client.UpdateAzureStorageAccounts(ctx, id.ResourceGroup, id.SiteName, *storageConfig); err != nil { + if _, err := client.UpdateAzureStorageAccounts(ctx, id, storageConfig); err != nil { if err != nil { return fmt.Errorf("setting Storage Accounts for Linux %s: %+v", id, err) } } } - connectionStrings := helpers.ExpandConnectionStrings(webApp.ConnectionStrings) + connectionStrings := helpers.ExpandConnectionStringsLinuxWebApps(webApp.ConnectionStrings) if connectionStrings.Properties != nil { - if _, err := client.UpdateConnectionStrings(ctx, id.ResourceGroup, id.SiteName, *connectionStrings); err != nil { + if _, err := client.UpdateConnectionStrings(ctx, id, connectionStrings); err != nil { return fmt.Errorf("setting Connection Strings for Linux %s: %+v", id, err) } } + // todo: xiaxin to check the feature in tests if webApp.ZipDeployFile != "" { - if err = helpers.GetCredentialsAndPublish(ctx, client, id.ResourceGroup, id.SiteName, webApp.ZipDeployFile); err != nil { + if err = helpers.GetCredentialsAndPublishLinuxWebApps(ctx, client, id, webApp.ZipDeployFile); err != nil { return err } } if !webApp.PublishingDeployBasicAuthEnabled { - sitePolicy := web.CsmPublishingCredentialsPoliciesEntity{ - CsmPublishingCredentialsPoliciesEntityProperties: &web.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: pointer.To(false), + sitePolicy := webapps.CsmPublishingCredentialsPoliciesEntity{ + Properties: &webapps.CsmPublishingCredentialsPoliciesEntityProperties{ + Allow: false, }, } - if _, err := client.UpdateScmAllowed(ctx, id.ResourceGroup, id.SiteName, sitePolicy); err != nil { + if _, err := client.UpdateScmAllowed(ctx, id, sitePolicy); err != nil { return fmt.Errorf("setting basic auth for deploy publishing credentials for %s: %+v", id, err) } } if !webApp.PublishingFTPBasicAuthEnabled { - sitePolicy := web.CsmPublishingCredentialsPoliciesEntity{ - CsmPublishingCredentialsPoliciesEntityProperties: &web.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: pointer.To(false), + sitePolicy := webapps.CsmPublishingCredentialsPoliciesEntity{ + Properties: &webapps.CsmPublishingCredentialsPoliciesEntityProperties{ + Allow: false, }, } - if _, err := client.UpdateFtpAllowed(ctx, id.ResourceGroup, id.SiteName, sitePolicy); err != nil { + if _, err := client.UpdateFtpAllowed(ctx, id, sitePolicy); err != nil { return fmt.Errorf("setting basic auth for ftp publishing credentials for %s: %+v", id, err) } } @@ -512,151 +514,158 @@ func (r LinuxWebAppResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.AppService.WebAppsClient - id, err := parse.WebAppID(metadata.ResourceData.Id()) + client := metadata.Client.AppService.LinuxWebAppsClient + id, err := commonids.ParseAppServiceID(metadata.ResourceData.Id()) if err != nil { return err } - webApp, err := client.Get(ctx, id.ResourceGroup, id.SiteName) + webApp, err := client.Get(ctx, *id) if err != nil { - if utils.ResponseWasNotFound(webApp.Response) { + if response.WasNotFound(webApp.HttpResponse) { return metadata.MarkAsGone(id) } return fmt.Errorf("reading Linux %s: %+v", id, err) } // Despite being part of the defined `Get` response model, site_config is always nil so we get it explicitly - webAppSiteConfig, err := client.GetConfiguration(ctx, id.ResourceGroup, id.SiteName) + webAppSiteConfig, err := client.GetConfiguration(ctx, *id) if err != nil { return fmt.Errorf("reading Site Config for Linux %s: %+v", id, err) } - auth, err := client.GetAuthSettings(ctx, id.ResourceGroup, id.SiteName) + auth, err := client.GetAuthSettings(ctx, *id) if err != nil { return fmt.Errorf("reading Auth Settings for Linux %s: %+v", id, err) } - var authV2 web.SiteAuthSettingsV2 - if strings.EqualFold(pointer.From(auth.ConfigVersion), "v2") { - authV2, err = client.GetAuthSettingsV2(ctx, id.ResourceGroup, id.SiteName) + var authV2 webapps.GetAuthSettingsV2OperationResponse + if auth.Model != nil && auth.Model.Properties != nil && strings.EqualFold(pointer.From(auth.Model.Properties.ConfigVersion), "v2") { + authV2, err = client.GetAuthSettingsV2(ctx, *id) if err != nil { return fmt.Errorf("reading authV2 settings for Linux %s: %+v", *id, err) } } - backup, err := client.GetBackupConfiguration(ctx, id.ResourceGroup, id.SiteName) + backup, err := client.GetBackupConfiguration(ctx, *id) if err != nil { - if !utils.ResponseWasNotFound(backup.Response) { + if !response.WasNotFound(backup.HttpResponse) { return fmt.Errorf("reading Backup Settings for Linux %s: %+v", id, err) } } - logsConfig, err := client.GetDiagnosticLogsConfiguration(ctx, id.ResourceGroup, id.SiteName) + logsConfig, err := client.GetDiagnosticLogsConfiguration(ctx, *id) if err != nil { return fmt.Errorf("reading Diagnostic Logs information for Linux %s: %+v", id, err) } - appSettings, err := client.ListApplicationSettings(ctx, id.ResourceGroup, id.SiteName) + appSettings, err := client.ListApplicationSettings(ctx, *id) if err != nil { return fmt.Errorf("reading App Settings for Linux %s: %+v", id, err) } - stickySettings, err := client.ListSlotConfigurationNames(ctx, id.ResourceGroup, id.SiteName) + stickySettings, err := client.ListSlotConfigurationNames(ctx, *id) if err != nil { return fmt.Errorf("reading Sticky Settings for Linux %s: %+v", id, err) } - storageAccounts, err := client.ListAzureStorageAccounts(ctx, id.ResourceGroup, id.SiteName) + storageAccounts, err := client.ListAzureStorageAccounts(ctx, *id) if err != nil { return fmt.Errorf("reading Storage Account information for Linux %s: %+v", id, err) } - connectionStrings, err := client.ListConnectionStrings(ctx, id.ResourceGroup, id.SiteName) + connectionStrings, err := client.ListConnectionStrings(ctx, *id) if err != nil { return fmt.Errorf("reading Connection String information for Linux %s: %+v", id, err) } - siteCredentialsFuture, err := client.ListPublishingCredentials(ctx, id.ResourceGroup, id.SiteName) + result, err := client.ListPublishingCredentials(ctx, *id) if err != nil { - return fmt.Errorf("listing Site Publishing Credential information for Linux %s: %+v", id, err) + return fmt.Errorf("listing Site Publishing Credential information for %s : %+v", id, err) } - if err := siteCredentialsFuture.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for Site Publishing Credential information for Linux %s: %+v", id, err) + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ListPublishingCredentials: %+v", err) } - siteCredentials, err := siteCredentialsFuture.Result(*client) - if err != nil { - return fmt.Errorf("reading Site Publishing Credential information for Linux %s: %+v", id, err) + + var siteCredentials webapps.User + if err := json.NewDecoder(result.HttpResponse.Body).Decode(&siteCredentials); err != nil { + return fmt.Errorf("reading Site Publishing Credential information for %s : %+v", id, err) } basicAuthFTP := true - if basicAuthFTPResp, err := client.GetFtpAllowed(ctx, id.ResourceGroup, id.SiteName); err != nil { + if basicAuthFTPResp, err := client.GetFtpAllowed(ctx, *id); err != nil { return fmt.Errorf("retrieving state of FTP Basic Auth for %s: %+v", id, err) - } else if csmProps := basicAuthFTPResp.CsmPublishingCredentialsPoliciesEntityProperties; csmProps != nil { - basicAuthFTP = pointer.From(csmProps.Allow) + } else if basicAuthFTPResp.Model != nil && basicAuthFTPResp.Model.Properties != nil { + basicAuthFTP = basicAuthFTPResp.Model.Properties.Allow } basicAuthWebDeploy := true - if basicAuthWebDeployResp, err := client.GetScmAllowed(ctx, id.ResourceGroup, id.SiteName); err != nil { + if basicAuthWebDeployResp, err := client.GetScmAllowed(ctx, *id); err != nil { return fmt.Errorf("retrieving state of WebDeploy Basic Auth for %s: %+v", id, err) - } else if csmProps := basicAuthWebDeployResp.CsmPublishingCredentialsPoliciesEntityProperties; csmProps != nil { - basicAuthWebDeploy = pointer.From(csmProps.Allow) + } else if basicAuthWebDeployResp.Model != nil && basicAuthWebDeployResp.Model.Properties != nil { + basicAuthWebDeploy = basicAuthWebDeployResp.Model.Properties.Allow } state := LinuxWebAppModel{} - if props := webApp.SiteProperties; props != nil { + if model := webApp.Model; model != nil { state = LinuxWebAppModel{ - Name: id.SiteName, - ResourceGroup: id.ResourceGroup, - Location: location.NormalizeNilable(webApp.Location), - ServicePlanId: pointer.From(props.ServerFarmID), - ClientAffinityEnabled: pointer.From(props.ClientAffinityEnabled), - ClientCertEnabled: pointer.From(props.ClientCertEnabled), - ClientCertMode: string(props.ClientCertMode), - ClientCertExclusionPaths: pointer.From(props.ClientCertExclusionPaths), - CustomDomainVerificationId: pointer.From(props.CustomDomainVerificationID), - DefaultHostname: pointer.From(props.DefaultHostName), - Kind: pointer.From(webApp.Kind), - KeyVaultReferenceIdentityID: pointer.From(props.KeyVaultReferenceIdentity), - Enabled: pointer.From(props.Enabled), - HttpsOnly: pointer.From(props.HTTPSOnly), - StickySettings: helpers.FlattenStickySettings(stickySettings.SlotConfigNames), - OutboundIPAddresses: pointer.From(props.OutboundIPAddresses), - OutboundIPAddressList: strings.Split(pointer.From(props.OutboundIPAddresses), ","), - PossibleOutboundIPAddresses: pointer.From(props.PossibleOutboundIPAddresses), - PossibleOutboundIPAddressList: strings.Split(pointer.From(props.PossibleOutboundIPAddresses), ","), - PublicNetworkAccess: !strings.EqualFold(pointer.From(props.PublicNetworkAccess), helpers.PublicNetworkAccessDisabled), - Tags: tags.ToTypedObject(webApp.Tags), + Name: id.SiteName, + ResourceGroup: id.ResourceGroupName, + Location: model.Location, } + if props := model.Properties; props != nil { + state.ServicePlanId = pointer.From(props.ServerFarmId) + state.ClientAffinityEnabled = pointer.From(props.ClientAffinityEnabled) + state.ClientCertEnabled = pointer.From(props.ClientCertEnabled) + state.ClientCertExclusionPaths = pointer.From(props.ClientCertExclusionPaths) + state.CustomDomainVerificationId = pointer.From(props.CustomDomainVerificationId) + state.DefaultHostname = pointer.From(props.DefaultHostName) + state.Kind = pointer.From(model.Kind) + state.KeyVaultReferenceIdentityID = pointer.From(props.KeyVaultReferenceIdentity) + state.Enabled = pointer.From(props.Enabled) + state.HttpsOnly = pointer.From(props.HTTPSOnly) + state.OutboundIPAddresses = pointer.From(props.OutboundIPAddresses) + state.OutboundIPAddressList = strings.Split(pointer.From(props.OutboundIPAddresses), ",") + state.PossibleOutboundIPAddresses = pointer.From(props.PossibleOutboundIPAddresses) + state.PossibleOutboundIPAddressList = strings.Split(pointer.From(props.PossibleOutboundIPAddresses), ",") + state.PublicNetworkAccess = !strings.EqualFold(pointer.From(props.PublicNetworkAccess), helpers.PublicNetworkAccessDisabled) + if props.ClientCertMode != nil { + state.ClientCertMode = string(*props.ClientCertMode) + } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + hostingEnvId, err := parse.AppServiceEnvironmentIDInsensitively(*hostingEnv.Id) + if err != nil { + return err + } + state.HostingEnvId = hostingEnvId.ID() + } - if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { - hostingEnvId, err := parse.AppServiceEnvironmentIDInsensitively(*hostingEnv.ID) - if err != nil { - return err + if subnetId := pointer.From(props.VirtualNetworkSubnetId); subnetId != "" { + state.VirtualNetworkSubnetID = subnetId } - state.HostingEnvId = hostingEnvId.ID() } - - if subnetId := pointer.From(props.VirtualNetworkSubnetID); subnetId != "" { - state.VirtualNetworkSubnetID = subnetId + if model.Tags != nil { + state.Tags = *model.Tags } } state.PublishingFTPBasicAuthEnabled = basicAuthFTP state.PublishingDeployBasicAuthEnabled = basicAuthWebDeploy - state.AppSettings = helpers.FlattenWebStringDictionary(appSettings) + state.AppSettings = helpers.FlattenWebStringDictionaryLinuxWebApps(appSettings.Model) - state.AuthSettings = helpers.FlattenAuthSettings(auth) + state.AuthSettings = helpers.FlattenAuthSettingsLinuxWebApps(auth.Model) - state.AuthV2Settings = helpers.FlattenAuthV2Settings(authV2) + state.AuthV2Settings = helpers.FlattenAuthV2SettingsLinuxWebApps(authV2.Model) - state.Backup = helpers.FlattenBackupConfig(backup) + state.Backup = helpers.FlattenBackupConfigLinuxWebApps(backup.Model) - state.LogsConfig = helpers.FlattenLogsConfig(logsConfig) + state.LogsConfig = helpers.FlattenLogsConfigLinuxWebApps(logsConfig.Model) siteConfig := helpers.SiteConfigLinux{} - siteConfig.Flatten(webAppSiteConfig.SiteConfig) + if webAppSiteConfig.Model != nil { + siteConfig.Flatten(webAppSiteConfig.Model.Properties) + } siteConfig.SetHealthCheckEvictionTime(state.AppSettings) // For non-import cases we check for use of the deprecated docker settings - remove in 4.0 @@ -679,11 +688,13 @@ func (r LinuxWebAppResource) Read() sdk.ResourceFunc { state.AppSettings = helpers.FilterManagedAppSettings(state.AppSettings) } - state.StorageAccounts = helpers.FlattenStorageAccounts(storageAccounts) + state.StorageAccounts = helpers.FlattenStorageAccountsLinuxWebApps(storageAccounts.Model) - state.ConnectionStrings = helpers.FlattenConnectionStrings(connectionStrings) + state.ConnectionStrings = helpers.FlattenConnectionStringsLinuxWebApps(connectionStrings.Model) - state.SiteCredentials = helpers.FlattenSiteCredentials(siteCredentials) + state.StickySettings = helpers.FlattenStickySettingsLinuxWebApps(stickySettings.Model) + + state.SiteCredentials = helpers.FlattenSiteCredentialsLinuxWebApps(siteCredentials) // Zip Deploys are not retrievable, so attempt to get from config. This doesn't matter for imports as an unexpected value here could break the deployment. if deployFile, ok := metadata.ResourceData.Get("zip_deploy_file").(string); ok { @@ -694,11 +705,12 @@ func (r LinuxWebAppResource) Read() sdk.ResourceFunc { return fmt.Errorf("encoding: %+v", err) } - flattenedIdentity, err := flattenIdentity(webApp.Identity) + identity, err := identity.FlattenSystemAndUserAssignedMap(webApp.Model.Identity) + if err != nil { return fmt.Errorf("flattening `identity`: %+v", err) } - if err := metadata.ResourceData.Set("identity", flattenedIdentity); err != nil { + if err := metadata.ResourceData.Set("identity", identity); err != nil { return fmt.Errorf("setting `identity`: %+v", err) } @@ -711,17 +723,19 @@ func (r LinuxWebAppResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.AppService.WebAppsClient - id, err := parse.WebAppID(metadata.ResourceData.Id()) + client := metadata.Client.AppService.LinuxWebAppsClient + id, err := commonids.ParseAppServiceID(metadata.ResourceData.Id()) if err != nil { return err } metadata.Logger.Infof("deleting %s", *id) - deleteMetrics := true - deleteEmptyServerFarm := false - if _, err := client.Delete(ctx, id.ResourceGroup, id.SiteName, &deleteMetrics, &deleteEmptyServerFarm); err != nil { + deleteOps := webapps.DeleteOperationOptions{ + DeleteEmptyServerFarm: pointer.To(false), + DeleteMetrics: pointer.To(true), + } + if _, err := client.Delete(ctx, *id, deleteOps); err != nil { return fmt.Errorf("deleting Linux %s: %+v", id, err) } return nil @@ -737,10 +751,10 @@ func (r LinuxWebAppResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.AppService.WebAppsClient + client := metadata.Client.AppService.LinuxWebAppsClient servicePlanClient := metadata.Client.AppService.ServicePlanClient - id, err := parse.WebAppID(metadata.ResourceData.Id()) + id, err := commonids.ParseAppServiceID(metadata.ResourceData.Id()) if err != nil { return err } @@ -750,15 +764,15 @@ func (r LinuxWebAppResource) Update() sdk.ResourceFunc { return fmt.Errorf("decoding: %+v", err) } - existing, err := client.Get(ctx, id.ResourceGroup, id.SiteName) - if err != nil { + existing, err := client.Get(ctx, *id) + if err != nil || existing.Model == nil || existing.Model.Properties == nil { return fmt.Errorf("reading Linux %s: %v", id, err) } servicePlanChange := metadata.ResourceData.HasChange("service_plan_id") if servicePlanChange { - if existing.SiteProperties != nil { - existing.SiteProperties.ServerFarmID = pointer.To(state.ServicePlanId) + if existing.Model != nil && existing.Model.Properties != nil { + existing.Model.Properties.ServerFarmId = pointer.To(state.ServicePlanId) } } @@ -782,46 +796,46 @@ func (r LinuxWebAppResource) Update() sdk.ResourceFunc { } if metadata.ResourceData.HasChange("enabled") { - existing.SiteProperties.Enabled = pointer.To(state.Enabled) + existing.Model.Properties.Enabled = pointer.To(state.Enabled) } if metadata.ResourceData.HasChange("https_only") { - existing.SiteProperties.HTTPSOnly = pointer.To(state.HttpsOnly) + existing.Model.Properties.HTTPSOnly = pointer.To(state.HttpsOnly) } if metadata.ResourceData.HasChange("client_affinity_enabled") { - existing.SiteProperties.ClientAffinityEnabled = pointer.To(state.ClientAffinityEnabled) + existing.Model.Properties.ClientAffinityEnabled = pointer.To(state.ClientAffinityEnabled) } if metadata.ResourceData.HasChange("client_certificate_enabled") { - existing.SiteProperties.ClientCertEnabled = pointer.To(state.ClientCertEnabled) + existing.Model.Properties.ClientCertEnabled = pointer.To(state.ClientCertEnabled) } if metadata.ResourceData.HasChange("client_certificate_mode") { - existing.SiteProperties.ClientCertMode = web.ClientCertMode(state.ClientCertMode) + existing.Model.Properties.ClientCertMode = pointer.To(webapps.ClientCertMode(state.ClientCertMode)) } if metadata.ResourceData.HasChange("client_certificate_exclusion_paths") { - existing.SiteProperties.ClientCertExclusionPaths = pointer.To(state.ClientCertExclusionPaths) + existing.Model.Properties.ClientCertExclusionPaths = pointer.To(state.ClientCertExclusionPaths) } if metadata.ResourceData.HasChange("identity") { - expandedIdentity, err := expandIdentity(metadata.ResourceData.Get("identity").([]interface{})) + expandedIdentity, err := identity.ExpandSystemAndUserAssignedMap(metadata.ResourceData.Get("identity").([]interface{})) if err != nil { return fmt.Errorf("expanding `identity`: %+v", err) } - existing.Identity = expandedIdentity + existing.Model.Identity = expandedIdentity } if metadata.ResourceData.HasChange("key_vault_reference_identity_id") { - existing.KeyVaultReferenceIdentity = pointer.To(state.KeyVaultReferenceIdentityID) + existing.Model.Properties.KeyVaultReferenceIdentity = pointer.To(state.KeyVaultReferenceIdentityID) } if metadata.ResourceData.HasChange("tags") { - existing.Tags = tags.FromTypedObject(state.Tags) + existing.Model.Tags = &state.Tags } if metadata.ResourceData.HasChanges("site_config", "app_settings") || servicePlanChange { - existing.SiteConfig, err = sc.ExpandForUpdate(metadata, existing.SiteConfig, state.AppSettings) + existing.Model.Properties.SiteConfig, err = sc.ExpandForUpdate(metadata, existing.Model.Properties.SiteConfig, state.AppSettings) if err != nil { return err } - existing.VnetRouteAllEnabled = existing.SiteConfig.VnetRouteAllEnabled + existing.Model.Properties.VnetRouteAllEnabled = existing.Model.Properties.SiteConfig.VnetRouteAllEnabled } if metadata.ResourceData.HasChange("public_network_access_enabled") { @@ -831,56 +845,56 @@ func (r LinuxWebAppResource) Update() sdk.ResourceFunc { } // (@jackofallops) - Values appear to need to be set in both SiteProperties and SiteConfig for now? https://github.com/Azure/azure-rest-api-specs/issues/24681 - existing.PublicNetworkAccess = pointer.To(pna) - existing.SiteConfig.PublicNetworkAccess = existing.PublicNetworkAccess + existing.Model.Properties.PublicNetworkAccess = pointer.To(pna) + existing.Model.Properties.SiteConfig.PublicNetworkAccess = existing.Model.Properties.PublicNetworkAccess } if metadata.ResourceData.HasChange("virtual_network_subnet_id") { subnetId := metadata.ResourceData.Get("virtual_network_subnet_id").(string) if subnetId == "" { - if _, err := client.DeleteSwiftVirtualNetwork(ctx, id.ResourceGroup, id.SiteName); err != nil { + if _, err := client.DeleteSwiftVirtualNetwork(ctx, *id); err != nil { return fmt.Errorf("removing `virtual_network_subnet_id` association for %s: %+v", *id, err) } var empty *string - existing.SiteProperties.VirtualNetworkSubnetID = empty + existing.Model.Properties.VirtualNetworkSubnetId = empty } else { - existing.SiteProperties.VirtualNetworkSubnetID = pointer.To(subnetId) + existing.Model.Properties.VirtualNetworkSubnetId = pointer.To(subnetId) } } - updateFuture, err := client.CreateOrUpdate(ctx, id.ResourceGroup, id.SiteName, existing) - if err != nil { + if err := client.CreateOrUpdateThenPoll(ctx, *id, *existing.Model); err != nil { return fmt.Errorf("updating Linux %s: %+v", id, err) } - if err := updateFuture.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting to update %s: %+v", id, err) - } // (@jackofallops) - App Settings can clobber logs configuration so must be updated before we send any Log updates if metadata.ResourceData.HasChanges("app_settings", "site_config") || metadata.ResourceData.HasChange("site_config.0.health_check_eviction_time_in_min") { - appSettingsUpdate := helpers.ExpandAppSettingsForUpdate(existing.SiteConfig.AppSettings) - appSettingsUpdate.Properties["WEBSITE_HEALTHCHECK_MAXPINGFAILURES"] = pointer.To(strconv.Itoa(state.SiteConfig[0].HealthCheckEvictionTime)) - - if _, err := client.UpdateApplicationSettings(ctx, id.ResourceGroup, id.SiteName, *appSettingsUpdate); err != nil { + appSettingsUpdate := helpers.ExpandAppSettingsForUpdateLinuxWebApps(existing.Model.Properties.SiteConfig.AppSettings) + appSettingsUpdateKvps := make(map[string]string) + if appSettingsUpdate != nil && appSettingsUpdate.Properties != nil { + appSettingsUpdateKvps = *appSettingsUpdate.Properties + } + appSettingsUpdateKvps["WEBSITE_HEALTHCHECK_MAXPINGFAILURES"] = strconv.Itoa(state.SiteConfig[0].HealthCheckEvictionTime) + appSettingsUpdate.Properties = &appSettingsUpdateKvps + if _, err := client.UpdateApplicationSettings(ctx, *id, *appSettingsUpdate); err != nil { return fmt.Errorf("updating App Settings for Linux %s: %+v", id, err) } } if metadata.ResourceData.HasChange("connection_string") { - connectionStringUpdate := helpers.ExpandConnectionStrings(state.ConnectionStrings) + connectionStringUpdate := helpers.ExpandConnectionStringsLinuxWebApps(state.ConnectionStrings) if connectionStringUpdate.Properties == nil { - connectionStringUpdate.Properties = map[string]*web.ConnStringValueTypePair{} + connectionStringUpdate.Properties = &map[string]webapps.ConnStringValueTypePair{} } - if _, err := client.UpdateConnectionStrings(ctx, id.ResourceGroup, id.SiteName, *connectionStringUpdate); err != nil { + if _, err := client.UpdateConnectionStrings(ctx, *id, connectionStringUpdate); err != nil { return fmt.Errorf("updating Connection Strings for Linux %s: %+v", id, err) } } if metadata.ResourceData.HasChange("sticky_settings") { emptySlice := make([]string, 0) - stickySettings := helpers.ExpandStickySettings(state.StickySettings) - stickySettingsUpdate := web.SlotConfigNamesResource{ - SlotConfigNames: &web.SlotConfigNames{ + stickySettings := helpers.ExpandStickySettingsLinuxWebApps(state.StickySettings) + stickySettingsUpdate := webapps.SlotConfigNamesResource{ + Properties: &webapps.SlotConfigNames{ AppSettingNames: &emptySlice, ConnectionStringNames: &emptySlice, }, @@ -888,14 +902,14 @@ func (r LinuxWebAppResource) Update() sdk.ResourceFunc { if stickySettings != nil { if stickySettings.AppSettingNames != nil { - stickySettingsUpdate.SlotConfigNames.AppSettingNames = stickySettings.AppSettingNames + stickySettingsUpdate.Properties.AppSettingNames = stickySettings.AppSettingNames } if stickySettings.ConnectionStringNames != nil { - stickySettingsUpdate.SlotConfigNames.ConnectionStringNames = stickySettings.ConnectionStringNames + stickySettingsUpdate.Properties.ConnectionStringNames = stickySettings.ConnectionStringNames } } - if _, err := client.UpdateSlotConfigurationNames(ctx, id.ResourceGroup, id.SiteName, stickySettingsUpdate); err != nil { + if _, err := client.UpdateSlotConfigurationNames(ctx, *id, stickySettingsUpdate); err != nil { return fmt.Errorf("updating Sticky Settings for Linux %s: %+v", id, err) } } @@ -903,10 +917,10 @@ func (r LinuxWebAppResource) Update() sdk.ResourceFunc { updateLogs := false if metadata.ResourceData.HasChange("auth_settings") { - authUpdate := helpers.ExpandAuthSettings(state.AuthSettings) + authUpdate := helpers.ExpandAuthSettingsLinuxWebApps(state.AuthSettings) // (@jackofallops) - in the case of a removal of this block, we need to zero these settings - if authUpdate.SiteAuthSettingsProperties == nil { - authUpdate.SiteAuthSettingsProperties = &web.SiteAuthSettingsProperties{ + if authUpdate.Properties == nil { + authUpdate.Properties = &webapps.SiteAuthSettingsProperties{ Enabled: pointer.To(false), ClientSecret: pointer.To(""), ClientSecretSettingName: pointer.To(""), @@ -919,76 +933,76 @@ func (r LinuxWebAppResource) Update() sdk.ResourceFunc { } updateLogs = true } - if _, err := client.UpdateAuthSettings(ctx, id.ResourceGroup, id.SiteName, *authUpdate); err != nil { + if _, err := client.UpdateAuthSettings(ctx, *id, authUpdate); err != nil { return fmt.Errorf("updating Auth Settings for Linux %s: %+v", id, err) } } if metadata.ResourceData.HasChange("auth_settings_v2") { - authV2Update := helpers.ExpandAuthV2Settings(state.AuthV2Settings) - if _, err := client.UpdateAuthSettingsV2(ctx, id.ResourceGroup, id.SiteName, *authV2Update); err != nil { + authV2Update := helpers.ExpandAuthV2SettingsLinuxWebApps(state.AuthV2Settings) + if _, err := client.UpdateAuthSettingsV2(ctx, *id, *authV2Update); err != nil { return fmt.Errorf("updating AuthV2 Settings for Linux %s: %+v", id, err) } updateLogs = true } if metadata.ResourceData.HasChange("backup") { - backupUpdate, err := helpers.ExpandBackupConfig(state.Backup) + backupUpdate, err := helpers.ExpandBackupConfigLinuxWebApps(state.Backup) if err != nil { return fmt.Errorf("expanding backup configuration for Linux %s: %+v", *id, err) } - if backupUpdate.BackupRequestProperties == nil { - if _, err := client.DeleteBackupConfiguration(ctx, id.ResourceGroup, id.SiteName); err != nil { + if backupUpdate.Properties == nil { + if _, err := client.DeleteBackupConfiguration(ctx, *id); err != nil { return fmt.Errorf("removing Backup Settings for Linux %s: %+v", id, err) } } else { - if _, err := client.UpdateBackupConfiguration(ctx, id.ResourceGroup, id.SiteName, *backupUpdate); err != nil { + if _, err := client.UpdateBackupConfiguration(ctx, *id, *backupUpdate); err != nil { return fmt.Errorf("updating Backup Settings for Linux %s: %+v", id, err) } } } if metadata.ResourceData.HasChange("logs") || updateLogs { - logsUpdate := helpers.ExpandLogsConfig(state.LogsConfig) - if logsUpdate.SiteLogsConfigProperties == nil { - logsUpdate = helpers.DisabledLogsConfig() // The API is update only, so we need to send an update with everything switched of when a user removes the "logs" block + logsUpdate := helpers.ExpandLogsConfigLinuxWebApps(state.LogsConfig) + if logsUpdate.Properties == nil { + logsUpdate = helpers.DisabledLogsConfigLinuxWebApps() // The API is update only, so we need to send an update with everything switched of when a user removes the "logs" block } - if _, err := client.UpdateDiagnosticLogsConfig(ctx, id.ResourceGroup, id.SiteName, *logsUpdate); err != nil { + if _, err := client.UpdateDiagnosticLogsConfig(ctx, *id, logsUpdate); err != nil { return fmt.Errorf("updating Logs Config for Linux %s: %+v", id, err) } } if metadata.ResourceData.HasChange("storage_account") { - storageAccountUpdate := helpers.ExpandStorageConfig(state.StorageAccounts) - if _, err := client.UpdateAzureStorageAccounts(ctx, id.ResourceGroup, id.SiteName, *storageAccountUpdate); err != nil { + storageAccountUpdate := helpers.ExpandStorageConfigLinuxWebApps(state.StorageAccounts) + if _, err := client.UpdateAzureStorageAccounts(ctx, *id, storageAccountUpdate); err != nil { return fmt.Errorf("updating Storage Accounts for Linux %s: %+v", id, err) } } if metadata.ResourceData.HasChange("zip_deploy_file") { - if err = helpers.GetCredentialsAndPublish(ctx, client, id.ResourceGroup, id.SiteName, state.ZipDeployFile); err != nil { + if err = helpers.GetCredentialsAndPublishLinuxWebApps(ctx, client, *id, state.ZipDeployFile); err != nil { return err } } if metadata.ResourceData.HasChange("ftp_publish_basic_authentication_enabled") { - sitePolicy := web.CsmPublishingCredentialsPoliciesEntity{ - CsmPublishingCredentialsPoliciesEntityProperties: &web.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: pointer.To(state.PublishingFTPBasicAuthEnabled), + sitePolicy := webapps.CsmPublishingCredentialsPoliciesEntity{ + Properties: &webapps.CsmPublishingCredentialsPoliciesEntityProperties{ + Allow: state.PublishingFTPBasicAuthEnabled, }, } - if _, err := client.UpdateFtpAllowed(ctx, id.ResourceGroup, id.SiteName, sitePolicy); err != nil { + if _, err := client.UpdateFtpAllowed(ctx, *id, sitePolicy); err != nil { return fmt.Errorf("setting basic auth for ftp publishing credentials for %s: %+v", id, err) } } if metadata.ResourceData.HasChange("webdeploy_publish_basic_authentication_enabled") { - sitePolicy := web.CsmPublishingCredentialsPoliciesEntity{ - CsmPublishingCredentialsPoliciesEntityProperties: &web.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: pointer.To(state.PublishingDeployBasicAuthEnabled), + sitePolicy := webapps.CsmPublishingCredentialsPoliciesEntity{ + Properties: &webapps.CsmPublishingCredentialsPoliciesEntityProperties{ + Allow: state.PublishingDeployBasicAuthEnabled, }, } - if _, err := client.UpdateScmAllowed(ctx, id.ResourceGroup, id.SiteName, sitePolicy); err != nil { + if _, err := client.UpdateScmAllowed(ctx, *id, sitePolicy); err != nil { return fmt.Errorf("setting basic auth for deploy publishing credentials for %s: %+v", id, err) } } diff --git a/internal/services/appservice/linux_web_app_slot_resource.go b/internal/services/appservice/linux_web_app_slot_resource.go index c7605347b05c..f5500a187ac3 100644 --- a/internal/services/appservice/linux_web_app_slot_resource.go +++ b/internal/services/appservice/linux_web_app_slot_resource.go @@ -5,14 +5,18 @@ package appservice import ( "context" + "encoding/json" "fmt" "strconv" "strings" "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" @@ -22,8 +26,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web" ) type LinuxWebAppSlotResource struct{} @@ -134,9 +136,9 @@ func (r LinuxWebAppSlotResource) Arguments() map[string]*pluginsdk.Schema { Optional: true, Default: "Required", ValidateFunc: validation.StringInSlice([]string{ - string(web.ClientCertModeOptional), - string(web.ClientCertModeRequired), - string(web.ClientCertModeOptionalInteractiveUser), + string(webapps.ClientCertModeOptional), + string(webapps.ClientCertModeRequired), + string(webapps.ClientCertModeOptionalInteractiveUser), }, false), }, @@ -281,29 +283,29 @@ func (r LinuxWebAppSlotResource) Create() sdk.ResourceFunc { return err } - client := metadata.Client.AppService.WebAppsClient - appId, err := parse.WebAppID(webAppSlot.AppServiceId) + client := metadata.Client.AppService.LinuxWebAppsClient + appId, err := commonids.ParseAppServiceID(webAppSlot.AppServiceId) if err != nil { return err } - id := parse.NewWebAppSlotID(appId.SubscriptionId, appId.ResourceGroup, appId.SiteName, webAppSlot.Name) + id := webapps.NewSlotID(appId.SubscriptionId, appId.ResourceGroupName, appId.SiteName, webAppSlot.Name) - webApp, err := client.Get(ctx, appId.ResourceGroup, appId.SiteName) + webApp, err := client.Get(ctx, *appId) if err != nil { return fmt.Errorf("reading parent Linux Web App for %s: %+v", id, err) } - if webApp.Location == nil { + if webApp.Model == nil && webApp.Model.Location == "" { return fmt.Errorf("could not determine location for %s: %+v", id, err) } var servicePlanId *parse.ServicePlanId - if webApp.SiteProperties == nil || webApp.SiteProperties.ServerFarmID == nil { + if webApp.Model == nil || webApp.Model.Properties == nil || webApp.Model.Properties.ServerFarmId == nil { return fmt.Errorf("could not determine Service Plan ID for %s: %+v", id, err) } - servicePlanId, err = parse.ServicePlanID(*webApp.SiteProperties.ServerFarmID) + servicePlanId, err = parse.ServicePlanID(*webApp.Model.Properties.ServerFarmId) if err != nil { return err } @@ -323,12 +325,12 @@ func (r LinuxWebAppSlotResource) Create() sdk.ResourceFunc { servicePlanId = newServicePlanId } - existing, err := client.GetSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) - if err != nil && !utils.ResponseWasNotFound(existing.Response) { + existing, err := client.GetSlot(ctx, id) + if err != nil && !response.WasNotFound(existing.HttpResponse) { return fmt.Errorf("checking for presence of existing Linux %s: %+v", id, err) } - if !utils.ResponseWasNotFound(existing.Response) { + if !response.WasNotFound(existing.HttpResponse) { return metadata.ResourceRequiresImport(r.ResourceType(), id) } @@ -338,23 +340,23 @@ func (r LinuxWebAppSlotResource) Create() sdk.ResourceFunc { return err } - expandedIdentity, err := expandIdentity(metadata.ResourceData.Get("identity").([]interface{})) + expandedIdentity, err := identity.ExpandSystemAndUserAssignedMap(metadata.ResourceData.Get("identity").([]interface{})) if err != nil { return fmt.Errorf("expanding `identity`: %+v", err) } - siteEnvelope := web.Site{ - Location: webApp.Location, + siteEnvelope := webapps.Site{ + Location: webApp.Model.Location, Identity: expandedIdentity, - Tags: tags.FromTypedObject(webAppSlot.Tags), - SiteProperties: &web.SiteProperties{ - ServerFarmID: pointer.To(servicePlanId.ID()), + Tags: &webAppSlot.Tags, + Properties: &webapps.SiteProperties{ + ServerFarmId: pointer.To(servicePlanId.ID()), Enabled: pointer.To(webAppSlot.Enabled), HTTPSOnly: pointer.To(webAppSlot.HttpsOnly), SiteConfig: siteConfig, ClientAffinityEnabled: pointer.To(webAppSlot.ClientAffinityEnabled), ClientCertEnabled: pointer.To(webAppSlot.ClientCertEnabled), - ClientCertMode: web.ClientCertMode(webAppSlot.ClientCertMode), + ClientCertMode: pointer.To(webapps.ClientCertMode(webAppSlot.ClientCertMode)), VnetRouteAllEnabled: siteConfig.VnetRouteAllEnabled, }, } @@ -365,116 +367,117 @@ func (r LinuxWebAppSlotResource) Create() sdk.ResourceFunc { } // (@jackofallops) - Values appear to need to be set in both SiteProperties and SiteConfig for now? https://github.com/Azure/azure-rest-api-specs/issues/24681 - siteEnvelope.PublicNetworkAccess = pointer.To(pna) - siteEnvelope.SiteConfig.PublicNetworkAccess = siteEnvelope.PublicNetworkAccess + siteEnvelope.Properties.PublicNetworkAccess = pointer.To(pna) + siteEnvelope.Properties.SiteConfig.PublicNetworkAccess = siteEnvelope.Properties.PublicNetworkAccess if webAppSlot.VirtualNetworkSubnetID != "" { - siteEnvelope.SiteProperties.VirtualNetworkSubnetID = pointer.To(webAppSlot.VirtualNetworkSubnetID) + siteEnvelope.Properties.VirtualNetworkSubnetId = pointer.To(webAppSlot.VirtualNetworkSubnetID) } if webAppSlot.KeyVaultReferenceIdentityID != "" { - siteEnvelope.SiteProperties.KeyVaultReferenceIdentity = pointer.To(webAppSlot.KeyVaultReferenceIdentityID) + siteEnvelope.Properties.KeyVaultReferenceIdentity = pointer.To(webAppSlot.KeyVaultReferenceIdentityID) } if webAppSlot.ClientCertExclusionPaths != "" { - siteEnvelope.ClientCertExclusionPaths = pointer.To(webAppSlot.ClientCertExclusionPaths) + siteEnvelope.Properties.ClientCertExclusionPaths = pointer.To(webAppSlot.ClientCertExclusionPaths) } - future, err := client.CreateOrUpdateSlot(ctx, id.ResourceGroup, id.SiteName, siteEnvelope, id.SlotName) - if err != nil { + if err := client.CreateOrUpdateSlotThenPoll(ctx, id, siteEnvelope); err != nil { return fmt.Errorf("creating Linux %s: %+v", id, err) } - if err := future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for creation of Linux %s: %+v", id, err) - } - metadata.SetID(id) - appSettings := helpers.ExpandAppSettingsForUpdate(siteConfig.AppSettings) + appSettings := helpers.ExpandAppSettingsForUpdateLinuxWebApps(siteConfig.AppSettings) if metadata.ResourceData.HasChange("site_config.0.health_check_eviction_time_in_min") { - appSettings.Properties["WEBSITE_HEALTHCHECK_MAXPINGFAILURES"] = pointer.To(strconv.Itoa(webAppSlot.SiteConfig[0].HealthCheckEvictionTime)) + appSettingsUpdateKvps := make(map[string]string) + if appSettings != nil && appSettings.Properties != nil { + appSettingsUpdateKvps = *appSettings.Properties + } + + appSettingsUpdateKvps["WEBSITE_HEALTHCHECK_MAXPINGFAILURES"] = strconv.Itoa(webAppSlot.SiteConfig[0].HealthCheckEvictionTime) + appSettings.Properties = &appSettingsUpdateKvps } if appSettings.Properties != nil { - if _, err := client.UpdateApplicationSettingsSlot(ctx, id.ResourceGroup, id.SiteName, *appSettings, id.SlotName); err != nil { + if _, err := client.UpdateApplicationSettingsSlot(ctx, id, *appSettings); err != nil { return fmt.Errorf("setting App Settings for Linux %s: %+v", id, err) } } - auth := helpers.ExpandAuthSettings(webAppSlot.AuthSettings) - if auth.SiteAuthSettingsProperties != nil { - if _, err := client.UpdateAuthSettingsSlot(ctx, id.ResourceGroup, id.SiteName, *auth, id.SlotName); err != nil { + auth := helpers.ExpandAuthSettingsLinuxWebApps(webAppSlot.AuthSettings) + if auth.Properties != nil { + if _, err := client.UpdateAuthSettingsSlot(ctx, id, auth); err != nil { return fmt.Errorf("setting Authorisation Settings for Linux %s: %+v", id, err) } } - authv2 := helpers.ExpandAuthV2Settings(webAppSlot.AuthV2Settings) - if authv2.SiteAuthSettingsV2Properties != nil { - if _, err = client.UpdateAuthSettingsV2Slot(ctx, id.ResourceGroup, id.SiteName, *authv2, id.SlotName); err != nil { + authv2 := helpers.ExpandAuthV2SettingsLinuxWebApps(webAppSlot.AuthV2Settings) + if authv2.Properties != nil { + if _, err = client.UpdateAuthSettingsV2Slot(ctx, id, *authv2); err != nil { return fmt.Errorf("updating AuthV2 settings for Linux %s: %+v", id, err) } } if metadata.ResourceData.HasChange("logs") { - logsConfig := helpers.ExpandLogsConfig(webAppSlot.LogsConfig) - if logsConfig.SiteLogsConfigProperties != nil { - if _, err := client.UpdateDiagnosticLogsConfigSlot(ctx, id.ResourceGroup, id.SiteName, *logsConfig, id.SlotName); err != nil { + logsConfig := helpers.ExpandLogsConfigLinuxWebApps(webAppSlot.LogsConfig) + if logsConfig.Properties != nil { + if _, err := client.UpdateDiagnosticLogsConfigSlot(ctx, id, logsConfig); err != nil { return fmt.Errorf("setting Diagnostic Logs Configuration for Linux %s: %+v", id, err) } } } - backupConfig, err := helpers.ExpandBackupConfig(webAppSlot.Backup) + backupConfig, err := helpers.ExpandBackupConfigLinuxWebApps(webAppSlot.Backup) if err != nil { return fmt.Errorf("expanding backup configuration for Linux %s: %+v", id, err) } - if backupConfig.BackupRequestProperties != nil { - if _, err := client.UpdateBackupConfigurationSlot(ctx, id.ResourceGroup, id.SiteName, *backupConfig, id.SlotName); err != nil { + if backupConfig.Properties != nil { + if _, err := client.UpdateBackupConfigurationSlot(ctx, id, *backupConfig); err != nil { return fmt.Errorf("adding Backup Settings for Linux %s: %+v", id, err) } } - storageConfig := helpers.ExpandStorageConfig(webAppSlot.StorageAccounts) + storageConfig := helpers.ExpandStorageConfigLinuxWebApps(webAppSlot.StorageAccounts) if storageConfig.Properties != nil { - if _, err := client.UpdateAzureStorageAccountsSlot(ctx, id.ResourceGroup, id.SiteName, *storageConfig, id.SlotName); err != nil { + if _, err := client.UpdateAzureStorageAccountsSlot(ctx, id, storageConfig); err != nil { if err != nil { return fmt.Errorf("setting Storage Accounts for Linux %s: %+v", id, err) } } } - connectionStrings := helpers.ExpandConnectionStrings(webAppSlot.ConnectionStrings) + connectionStrings := helpers.ExpandConnectionStringsLinuxWebApps(webAppSlot.ConnectionStrings) if connectionStrings.Properties != nil { - if _, err := client.UpdateConnectionStringsSlot(ctx, id.ResourceGroup, id.SiteName, *connectionStrings, id.SlotName); err != nil { + if _, err := client.UpdateConnectionStringsSlot(ctx, id, connectionStrings); err != nil { return fmt.Errorf("setting Connection Strings for Linux %s: %+v", id, err) } } if webAppSlot.ZipDeployFile != "" { - if err = helpers.GetCredentialsAndPublish(ctx, client, id.ResourceGroup, id.SiteName, webAppSlot.ZipDeployFile); err != nil { + if err = helpers.GetCredentialsAndPublishLinuxWebApps(ctx, client, *appId, webAppSlot.ZipDeployFile); err != nil { return err } } if !webAppSlot.PublishingDeployBasicAuthEnabled { - sitePolicy := web.CsmPublishingCredentialsPoliciesEntity{ - CsmPublishingCredentialsPoliciesEntityProperties: &web.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: pointer.To(false), + sitePolicy := webapps.CsmPublishingCredentialsPoliciesEntity{ + Properties: &webapps.CsmPublishingCredentialsPoliciesEntityProperties{ + Allow: false, }, } - if _, err := client.UpdateScmAllowedSlot(ctx, id.ResourceGroup, id.SiteName, sitePolicy, id.SlotName); err != nil { + if _, err := client.UpdateScmAllowedSlot(ctx, id, sitePolicy); err != nil { return fmt.Errorf("setting basic auth for deploy publishing credentials for %s: %+v", id, err) } } if !webAppSlot.PublishingFTPBasicAuthEnabled { - sitePolicy := web.CsmPublishingCredentialsPoliciesEntity{ - CsmPublishingCredentialsPoliciesEntityProperties: &web.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: pointer.To(false), + sitePolicy := webapps.CsmPublishingCredentialsPoliciesEntity{ + Properties: &webapps.CsmPublishingCredentialsPoliciesEntityProperties{ + Allow: false, }, } - if _, err := client.UpdateFtpAllowedSlot(ctx, id.ResourceGroup, id.SiteName, sitePolicy, id.SlotName); err != nil { + if _, err := client.UpdateFtpAllowedSlot(ctx, id, sitePolicy); err != nil { return fmt.Errorf("setting basic auth for ftp publishing credentials for %s: %+v", id, err) } } @@ -488,163 +491,169 @@ func (r LinuxWebAppSlotResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.AppService.WebAppsClient - id, err := parse.WebAppSlotID(metadata.ResourceData.Id()) + client := metadata.Client.AppService.LinuxWebAppsClient + id, err := webapps.ParseSlotID(metadata.ResourceData.Id()) + appId := commonids.NewAppServiceID(id.SubscriptionId, id.ResourceGroupName, id.SiteName) if err != nil { return err } - webAppSlot, err := client.GetSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) + webAppSlot, err := client.GetSlot(ctx, *id) if err != nil { - if utils.ResponseWasNotFound(webAppSlot.Response) { + if response.WasNotFound(webAppSlot.HttpResponse) { return metadata.MarkAsGone(id) } return fmt.Errorf("reading Linux %s: %+v", id, err) } // Despite being part of the defined `Get` response model, site_config is always nil so we get it explicitly - webAppSiteConfig, err := client.GetConfigurationSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) + webAppSlotSiteConfig, err := client.GetConfigurationSlot(ctx, *id) if err != nil { return fmt.Errorf("reading Site Config for Linux %s: %+v", id, err) } - auth, err := client.GetAuthSettingsSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) + auth, err := client.GetAuthSettingsSlot(ctx, *id) if err != nil { return fmt.Errorf("reading Auth Settings for Linux %s: %+v", id, err) } - var authV2 web.SiteAuthSettingsV2 - if pointer.From(auth.ConfigVersion) == "v2" { - authV2, err = client.GetAuthSettingsV2Slot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) + var authV2 webapps.GetAuthSettingsV2SlotOperationResponse + if auth.Model != nil && auth.Model.Properties != nil && auth.Model.Properties.ConfigVersion != nil && pointer.From(auth.Model.Properties.ConfigVersion) == "v2" { + authV2, err = client.GetAuthSettingsV2Slot(ctx, *id) if err != nil { return fmt.Errorf("reading authV2 settings for Linux %s: %+v", *id, err) } } - backup, err := client.GetBackupConfigurationSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) + backup, err := client.GetBackupConfigurationSlot(ctx, *id) if err != nil { - if !utils.ResponseWasNotFound(backup.Response) { + if !response.WasNotFound(backup.HttpResponse) { return fmt.Errorf("reading Backup Settings for Linux %s: %+v", id, err) } } - logsConfig, err := client.GetDiagnosticLogsConfigurationSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) + logsConfig, err := client.GetDiagnosticLogsConfigurationSlot(ctx, *id) if err != nil { return fmt.Errorf("reading Diagnostic Logs information for Linux %s: %+v", id, err) } - appSettings, err := client.ListApplicationSettingsSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) + appSettings, err := client.ListApplicationSettingsSlot(ctx, *id) if err != nil { return fmt.Errorf("reading App Settings for Linux %s: %+v", id, err) } - storageAccounts, err := client.ListAzureStorageAccountsSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) + storageAccounts, err := client.ListAzureStorageAccountsSlot(ctx, *id) if err != nil { return fmt.Errorf("reading Storage Account information for Linux %s: %+v", id, err) } - connectionStrings, err := client.ListConnectionStringsSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) + connectionStrings, err := client.ListConnectionStringsSlot(ctx, *id) if err != nil { return fmt.Errorf("reading Connection String information for Linux %s: %+v", id, err) } - siteCredentialsFuture, err := client.ListPublishingCredentialsSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) + result, err := client.ListPublishingCredentialsSlot(ctx, *id) if err != nil { return fmt.Errorf("listing Site Publishing Credential information for Linux %s: %+v", id, err) } - if err := siteCredentialsFuture.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for Site Publishing Credential information for Linux %s: %+v", id, err) + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ListPublishingCredentials: %+v", err) } - siteCredentials, err := siteCredentialsFuture.Result(*client) - if err != nil { + + var siteCredentials webapps.User + if err := json.NewDecoder(result.HttpResponse.Body).Decode(&siteCredentials); err != nil { return fmt.Errorf("reading Site Publishing Credential information for Linux %s: %+v", id, err) } - webApp, err := client.Get(ctx, id.ResourceGroup, id.SiteName) + webApp, err := client.Get(ctx, appId) if err != nil { return fmt.Errorf("reading parent Web App for Linux %s: %+v", *id, err) } - if webApp.SiteProperties == nil || webApp.SiteProperties.ServerFarmID == nil { + if webApp.Model == nil || webApp.Model.Properties == nil || webApp.Model.Properties.ServerFarmId == nil { return fmt.Errorf("reading parent Function App Service Plan information for Linux %s: %+v", *id, err) } basicAuthFTP := true - if basicAuthFTPResp, err := client.GetFtpAllowedSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName); err != nil { + if basicAuthFTPResp, err := client.GetFtpAllowedSlot(ctx, *id); err != nil { return fmt.Errorf("retrieving state of FTP Basic Auth for %s: %+v", id, err) - } else if csmProps := basicAuthFTPResp.CsmPublishingCredentialsPoliciesEntityProperties; csmProps != nil { - basicAuthFTP = pointer.From(csmProps.Allow) + } else if basicAuthFTPResp.Model != nil && basicAuthFTPResp.Model.Properties != nil { + basicAuthFTP = basicAuthFTPResp.Model.Properties.Allow } basicAuthWebDeploy := true - if basicAuthWebDeployResp, err := client.GetScmAllowedSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName); err != nil { + if basicAuthWebDeployResp, err := client.GetScmAllowedSlot(ctx, *id); err != nil { return fmt.Errorf("retrieving state of WebDeploy Basic Auth for %s: %+v", id, err) - } else if csmProps := basicAuthWebDeployResp.CsmPublishingCredentialsPoliciesEntityProperties; csmProps != nil { - basicAuthWebDeploy = pointer.From(csmProps.Allow) + } else if basicAuthWebDeployResp.Model != nil && basicAuthWebDeployResp.Model.Properties != nil { + basicAuthWebDeploy = basicAuthWebDeployResp.Model.Properties.Allow } state := LinuxWebAppSlotModel{} - if props := webAppSlot.SiteProperties; props != nil { + if model := webAppSlot.Model; model != nil { state = LinuxWebAppSlotModel{ - Name: id.SlotName, - AppServiceId: parse.NewWebAppID(id.SubscriptionId, id.ResourceGroup, id.SiteName).ID(), - ClientAffinityEnabled: pointer.From(props.ClientAffinityEnabled), - ClientCertEnabled: pointer.From(props.ClientCertEnabled), - ClientCertMode: string(props.ClientCertMode), - ClientCertExclusionPaths: pointer.From(props.ClientCertExclusionPaths), - CustomDomainVerificationId: pointer.From(props.CustomDomainVerificationID), - DefaultHostname: pointer.From(props.DefaultHostName), - Kind: pointer.From(webAppSlot.Kind), - KeyVaultReferenceIdentityID: pointer.From(props.KeyVaultReferenceIdentity), - Enabled: pointer.From(props.Enabled), - HttpsOnly: pointer.From(props.HTTPSOnly), - OutboundIPAddresses: pointer.From(props.OutboundIPAddresses), - OutboundIPAddressList: strings.Split(pointer.From(props.OutboundIPAddresses), ","), - PossibleOutboundIPAddresses: pointer.From(props.PossibleOutboundIPAddresses), - PossibleOutboundIPAddressList: strings.Split(pointer.From(props.PossibleOutboundIPAddresses), ","), - PublicNetworkAccess: !strings.EqualFold(pointer.From(props.PublicNetworkAccess), helpers.PublicNetworkAccessDisabled), - Tags: tags.ToTypedObject(webAppSlot.Tags), - } - - if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { - state.HostingEnvId = pointer.From(hostingEnv.ID) - } - - if subnetId := pointer.From(props.VirtualNetworkSubnetID); subnetId != "" { - state.VirtualNetworkSubnetID = subnetId - } - - parentAppFarmId, err := parse.ServicePlanIDInsensitively(*webApp.SiteProperties.ServerFarmID) - if err != nil { - return err - } - if slotPlanId := props.ServerFarmID; slotPlanId != nil && !strings.EqualFold(parentAppFarmId.ID(), *slotPlanId) { - state.ServicePlanID = *slotPlanId - } + Name: id.SlotName, + AppServiceId: commonids.NewAppServiceID(id.SubscriptionId, id.ResourceGroupName, id.SiteName).ID(), + } + if props := model.Properties; props != nil { + state.ClientAffinityEnabled = pointer.From(props.ClientAffinityEnabled) + state.ClientCertEnabled = pointer.From(props.ClientCertEnabled) + state.ClientCertExclusionPaths = pointer.From(props.ClientCertExclusionPaths) + state.CustomDomainVerificationId = pointer.From(props.CustomDomainVerificationId) + state.DefaultHostname = pointer.From(props.DefaultHostName) + state.Kind = pointer.From(webAppSlot.Model.Kind) + state.KeyVaultReferenceIdentityID = pointer.From(props.KeyVaultReferenceIdentity) + state.Enabled = pointer.From(props.Enabled) + state.HttpsOnly = pointer.From(props.HTTPSOnly) + state.OutboundIPAddresses = pointer.From(props.OutboundIPAddresses) + state.OutboundIPAddressList = strings.Split(pointer.From(props.OutboundIPAddresses), ",") + state.PossibleOutboundIPAddresses = pointer.From(props.PossibleOutboundIPAddresses) + state.PossibleOutboundIPAddressList = strings.Split(pointer.From(props.PossibleOutboundIPAddresses), ",") + state.PublicNetworkAccess = !strings.EqualFold(pointer.From(props.PublicNetworkAccess), helpers.PublicNetworkAccessDisabled) + if props.ClientCertMode != nil { + state.ClientCertMode = string(*props.ClientCertMode) + } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + state.HostingEnvId = pointer.From(hostingEnv.Id) + } - if subnetId := pointer.From(props.VirtualNetworkSubnetID); subnetId != "" { - state.VirtualNetworkSubnetID = subnetId + if subnetId := pointer.From(props.VirtualNetworkSubnetId); subnetId != "" { + state.VirtualNetworkSubnetID = subnetId + } + parentAppFarmId, err := parse.ServicePlanIDInsensitively(*webApp.Model.Properties.ServerFarmId) + if err != nil { + return err + } + if slotPlanId := props.ServerFarmId; slotPlanId != nil && !strings.EqualFold(parentAppFarmId.ID(), *slotPlanId) { + state.ServicePlanID = *slotPlanId + } + + if subnetId := pointer.From(props.VirtualNetworkSubnetId); subnetId != "" { + state.VirtualNetworkSubnetID = subnetId + } } + if model.Tags != nil { + state.Tags = *webAppSlot.Model.Tags + } + state.PublishingFTPBasicAuthEnabled = basicAuthFTP + state.PublishingDeployBasicAuthEnabled = basicAuthWebDeploy } - state.PublishingFTPBasicAuthEnabled = basicAuthFTP - state.PublishingDeployBasicAuthEnabled = basicAuthWebDeploy - - state.AppSettings = helpers.FlattenWebStringDictionary(appSettings) + state.AppSettings = helpers.FlattenWebStringDictionaryLinuxWebApps(appSettings.Model) if err != nil { return fmt.Errorf("flattening app settings for Linux %s: %+v", id, err) } - state.AuthSettings = helpers.FlattenAuthSettings(auth) + state.AuthSettings = helpers.FlattenAuthSettingsLinuxWebApps(auth.Model) - state.AuthV2Settings = helpers.FlattenAuthV2Settings(authV2) + state.AuthV2Settings = helpers.FlattenAuthV2SettingsLinuxWebApps(authV2.Model) - state.Backup = helpers.FlattenBackupConfig(backup) - - state.LogsConfig = helpers.FlattenLogsConfig(logsConfig) + state.Backup = helpers.FlattenBackupConfigLinuxWebApps(backup.Model) + state.LogsConfig = helpers.FlattenLogsConfigLinuxWebApps(logsConfig.Model) siteConfig := helpers.SiteConfigLinuxWebAppSlot{} - siteConfig.Flatten(webAppSiteConfig.SiteConfig) + if webAppSlotSiteConfig.Model != nil { + siteConfig.Flatten(webAppSlotSiteConfig.Model.Properties) + } siteConfig.SetHealthCheckEvictionTime(state.AppSettings) // For non-import cases we check for use of the deprecated docker settings - remove in 4.0 @@ -659,7 +668,6 @@ func (r LinuxWebAppSlotResource) Read() sdk.ResourceFunc { } state.SiteConfig = []helpers.SiteConfigLinuxWebAppSlot{siteConfig} - // Filter out all settings we've consumed above if !features.FourPointOhBeta() && usesDeprecatedDocker { state.AppSettings = helpers.FilterManagedAppSettingsDeprecated(state.AppSettings) @@ -667,12 +675,11 @@ func (r LinuxWebAppSlotResource) Read() sdk.ResourceFunc { state.AppSettings = helpers.FilterManagedAppSettings(state.AppSettings) } - state.StorageAccounts = helpers.FlattenStorageAccounts(storageAccounts) - - state.ConnectionStrings = helpers.FlattenConnectionStrings(connectionStrings) + state.StorageAccounts = helpers.FlattenStorageAccountsLinuxWebApps(storageAccounts.Model) - state.SiteCredentials = helpers.FlattenSiteCredentials(siteCredentials) + state.ConnectionStrings = helpers.FlattenConnectionStringsLinuxWebApps(connectionStrings.Model) + state.SiteCredentials = helpers.FlattenSiteCredentialsLinuxWebApps(siteCredentials) // Zip Deploys are not retrievable, so attempt to get from config. This doesn't matter for imports as an unexpected value here could break the deployment. if deployFile, ok := metadata.ResourceData.Get("zip_deploy_file").(string); ok { state.ZipDeployFile = deployFile @@ -682,14 +689,13 @@ func (r LinuxWebAppSlotResource) Read() sdk.ResourceFunc { return fmt.Errorf("encoding: %+v", err) } - flattenedIdentity, err := flattenIdentity(webAppSlot.Identity) + identity, err := identity.FlattenSystemAndUserAssignedMap(webApp.Model.Identity) if err != nil { return fmt.Errorf("flattening `identity`: %+v", err) } - if err := metadata.ResourceData.Set("identity", flattenedIdentity); err != nil { + if err := metadata.ResourceData.Set("identity", identity); err != nil { return fmt.Errorf("setting `identity`: %+v", err) } - return nil }, } @@ -699,17 +705,19 @@ func (r LinuxWebAppSlotResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.AppService.WebAppsClient - id, err := parse.WebAppSlotID(metadata.ResourceData.Id()) + client := metadata.Client.AppService.LinuxWebAppsClient + id, err := webapps.ParseSlotID(metadata.ResourceData.Id()) if err != nil { return err } metadata.Logger.Infof("deleting %s", *id) + deleteOps := webapps.DeleteSlotOperationOptions{ + DeleteEmptyServerFarm: pointer.To(false), + DeleteMetrics: pointer.To(true), + } - deleteMetrics := true - deleteEmptyServerFarm := false - if _, err := client.DeleteSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName, &deleteMetrics, &deleteEmptyServerFarm); err != nil { + if _, err := client.DeleteSlot(ctx, *id, deleteOps); err != nil { return fmt.Errorf("deleting Linux %s: %+v", id, err) } return nil @@ -721,32 +729,34 @@ func (r LinuxWebAppSlotResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.AppService.WebAppsClient + client := metadata.Client.AppService.LinuxWebAppsClient - id, err := parse.WebAppSlotID(metadata.ResourceData.Id()) + id, err := webapps.ParseSlotID(metadata.ResourceData.Id()) if err != nil { return err } + appId := commonids.NewAppServiceID(id.SubscriptionId, id.ResourceGroupName, id.SiteName) + var state LinuxWebAppSlotModel if err := metadata.Decode(&state); err != nil { return fmt.Errorf("decoding: %+v", err) } - existing, err := client.GetSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) - if err != nil { + existing, err := client.GetSlot(ctx, *id) + if err != nil || existing.Model == nil || existing.Model.Properties == nil { return fmt.Errorf("reading Linux %s: %v", id, err) } if metadata.ResourceData.HasChange("service_plan_id") { - webApp, err := client.Get(ctx, id.ResourceGroup, id.SiteName) + webApp, err := client.Get(ctx, appId) if err != nil { return fmt.Errorf("reading parent Windows Web App for %s: %+v", id, err) } - if webApp.SiteProperties == nil || webApp.SiteProperties.ServerFarmID == nil { + if webApp.Model == nil || webApp.Model.Properties == nil || webApp.Model.Properties.ServerFarmId == nil { return fmt.Errorf("could not determine Service Plan ID for %s: %+v", id, err) } - parentServicePlanId, err := parse.ServicePlanID(*webApp.SiteProperties.ServerFarmID) + parentServicePlanId, err := parse.ServicePlanID(*webApp.Model.Properties.ServerFarmId) if err != nil { return err } @@ -772,55 +782,55 @@ func (r LinuxWebAppSlotResource) Update() sdk.ResourceFunc { defer locks.UnlockByID(oldPlan.ID()) locks.ByID(newPlan.ID()) defer locks.UnlockByID(newPlan.ID()) - if existing.SiteProperties == nil { + if existing.Model == nil || existing.Model.Properties == nil { return fmt.Errorf("updating Service Plan for Linux %s: Slot SiteProperties was nil", *id) } - existing.SiteProperties.ServerFarmID = pointer.To(newPlan.ID()) + existing.Model.Properties.ServerFarmId = pointer.To(newPlan.ID()) } if metadata.ResourceData.HasChange("enabled") { - existing.SiteProperties.Enabled = pointer.To(state.Enabled) + existing.Model.Properties.Enabled = pointer.To(state.Enabled) } if metadata.ResourceData.HasChange("https_only") { - existing.SiteProperties.HTTPSOnly = pointer.To(state.HttpsOnly) + existing.Model.Properties.HTTPSOnly = pointer.To(state.HttpsOnly) } if metadata.ResourceData.HasChange("client_affinity_enabled") { - existing.SiteProperties.ClientAffinityEnabled = pointer.To(state.ClientAffinityEnabled) + existing.Model.Properties.ClientAffinityEnabled = pointer.To(state.ClientAffinityEnabled) } if metadata.ResourceData.HasChange("client_certificate_enabled") { - existing.SiteProperties.ClientCertEnabled = pointer.To(state.ClientCertEnabled) + existing.Model.Properties.ClientCertEnabled = pointer.To(state.ClientCertEnabled) } if metadata.ResourceData.HasChange("client_certificate_mode") { - existing.SiteProperties.ClientCertMode = web.ClientCertMode(state.ClientCertMode) + existing.Model.Properties.ClientCertMode = pointer.To(webapps.ClientCertMode(state.ClientCertMode)) } if metadata.ResourceData.HasChange("client_certificate_exclusion_paths") { - existing.SiteProperties.ClientCertExclusionPaths = pointer.To(state.ClientCertExclusionPaths) + existing.Model.Properties.ClientCertExclusionPaths = pointer.To(state.ClientCertExclusionPaths) } if metadata.ResourceData.HasChange("identity") { - expandedIdentity, err := expandIdentity(metadata.ResourceData.Get("identity").([]interface{})) + expandedIdentity, err := identity.ExpandSystemAndUserAssignedMap(metadata.ResourceData.Get("identity").([]interface{})) if err != nil { return fmt.Errorf("expanding `identity`: %+v", err) } - existing.Identity = expandedIdentity + existing.Model.Identity = expandedIdentity } if metadata.ResourceData.HasChange("key_vault_reference_identity_id") { - existing.KeyVaultReferenceIdentity = pointer.To(state.KeyVaultReferenceIdentityID) + existing.Model.Properties.KeyVaultReferenceIdentity = pointer.To(state.KeyVaultReferenceIdentityID) } if metadata.ResourceData.HasChange("tags") { - existing.Tags = tags.FromTypedObject(state.Tags) + existing.Model.Tags = &state.Tags } if metadata.ResourceData.HasChanges("site_config", "app_settings") { sc := state.SiteConfig[0] - siteConfig, err := sc.ExpandForUpdate(metadata, existing.SiteConfig, state.AppSettings) + siteConfig, err := sc.ExpandForUpdate(metadata, existing.Model.Properties.SiteConfig, state.AppSettings) if err != nil { return fmt.Errorf("expanding Site Config for Linux %s: %+v", id, err) } - existing.SiteConfig = siteConfig - existing.VnetRouteAllEnabled = existing.SiteConfig.VnetRouteAllEnabled + existing.Model.Properties.SiteConfig = siteConfig + existing.Model.Properties.VnetRouteAllEnabled = existing.Model.Properties.SiteConfig.VnetRouteAllEnabled } if metadata.ResourceData.HasChange("public_network_access_enabled") { @@ -830,47 +840,46 @@ func (r LinuxWebAppSlotResource) Update() sdk.ResourceFunc { } // (@jackofallops) - Values appear to need to be set in both SiteProperties and SiteConfig for now? https://github.com/Azure/azure-rest-api-specs/issues/24681 - existing.PublicNetworkAccess = pointer.To(pna) - existing.SiteConfig.PublicNetworkAccess = existing.PublicNetworkAccess + existing.Model.Properties.PublicNetworkAccess = pointer.To(pna) + existing.Model.Properties.SiteConfig.PublicNetworkAccess = existing.Model.Properties.PublicNetworkAccess } if metadata.ResourceData.HasChange("virtual_network_subnet_id") { subnetId := metadata.ResourceData.Get("virtual_network_subnet_id").(string) if subnetId == "" { - if _, err := client.DeleteSwiftVirtualNetworkSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName); err != nil { + if _, err := client.DeleteSwiftVirtualNetworkSlot(ctx, *id); err != nil { return fmt.Errorf("removing `virtual_network_subnet_id` association for %s: %+v", *id, err) } var empty *string - existing.SiteProperties.VirtualNetworkSubnetID = empty + existing.Model.Properties.VirtualNetworkSubnetId = empty } else { - existing.SiteProperties.VirtualNetworkSubnetID = pointer.To(subnetId) + existing.Model.Properties.VirtualNetworkSubnetId = pointer.To(subnetId) } } - updateFuture, err := client.CreateOrUpdateSlot(ctx, id.ResourceGroup, id.SiteName, existing, id.SlotName) - if err != nil { + if err := client.CreateOrUpdateSlotThenPoll(ctx, *id, *existing.Model); err != nil { return fmt.Errorf("updating Linux %s: %+v", id, err) } - if err := updateFuture.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting to update %s: %+v", id, err) - } // (@jackofallops) - App Settings can clobber logs configuration so must be updated before we send any Log updates if metadata.ResourceData.HasChanges("app_settings", "site_config") || metadata.ResourceData.HasChange("site_config.0.health_check_eviction_time_in_min") { - appSettingsUpdate := helpers.ExpandAppSettingsForUpdate(existing.SiteConfig.AppSettings) - appSettingsUpdate.Properties["WEBSITE_HEALTHCHECK_MAXPINGFAILURES"] = pointer.To(strconv.Itoa(state.SiteConfig[0].HealthCheckEvictionTime)) - - if _, err := client.UpdateApplicationSettingsSlot(ctx, id.ResourceGroup, id.SiteName, *appSettingsUpdate, id.SlotName); err != nil { + appSettingsUpdate := helpers.ExpandAppSettingsForUpdateLinuxWebApps(existing.Model.Properties.SiteConfig.AppSettings) + appSettingsUpdateKvps := make(map[string]string) + if appSettingsUpdate != nil && appSettingsUpdate.Properties != nil { + appSettingsUpdateKvps = *appSettingsUpdate.Properties + } + appSettingsUpdateKvps["WEBSITE_HEALTHCHECK_MAXPINGFAILURES"] = strconv.Itoa(state.SiteConfig[0].HealthCheckEvictionTime) + if _, err := client.UpdateApplicationSettingsSlot(ctx, *id, *appSettingsUpdate); err != nil { return fmt.Errorf("updating App Settings for Linux %s: %+v", id, err) } } if metadata.ResourceData.HasChange("connection_string") { - connectionStringUpdate := helpers.ExpandConnectionStrings(state.ConnectionStrings) + connectionStringUpdate := helpers.ExpandConnectionStringsLinuxWebApps(state.ConnectionStrings) if connectionStringUpdate.Properties == nil { - connectionStringUpdate.Properties = map[string]*web.ConnStringValueTypePair{} + connectionStringUpdate.Properties = &map[string]webapps.ConnStringValueTypePair{} } - if _, err := client.UpdateConnectionStringsSlot(ctx, id.ResourceGroup, id.SiteName, *connectionStringUpdate, id.SlotName); err != nil { + if _, err := client.UpdateConnectionStringsSlot(ctx, *id, connectionStringUpdate); err != nil { return fmt.Errorf("updating Connection Strings for Linux %s: %+v", id, err) } } @@ -878,9 +887,9 @@ func (r LinuxWebAppSlotResource) Update() sdk.ResourceFunc { updateLogs := false if metadata.ResourceData.HasChange("auth_settings") { - authUpdate := helpers.ExpandAuthSettings(state.AuthSettings) - if authUpdate.SiteAuthSettingsProperties == nil { - authUpdate.SiteAuthSettingsProperties = &web.SiteAuthSettingsProperties{ + authUpdate := helpers.ExpandAuthSettingsLinuxWebApps(state.AuthSettings) + if authUpdate.Properties == nil { + authUpdate.Properties = &webapps.SiteAuthSettingsProperties{ Enabled: pointer.To(false), ClientSecret: pointer.To(""), ClientSecretSettingName: pointer.To(""), @@ -893,76 +902,76 @@ func (r LinuxWebAppSlotResource) Update() sdk.ResourceFunc { } updateLogs = true } - if _, err := client.UpdateAuthSettingsSlot(ctx, id.ResourceGroup, id.SiteName, *authUpdate, id.SlotName); err != nil { + if _, err := client.UpdateAuthSettingsSlot(ctx, *id, authUpdate); err != nil { return fmt.Errorf("updating Auth Settings for Linux %s: %+v", id, err) } } if metadata.ResourceData.HasChange("auth_settings_v2") { - authV2Update := helpers.ExpandAuthV2Settings(state.AuthV2Settings) - if _, err := client.UpdateAuthSettingsV2Slot(ctx, id.ResourceGroup, id.SiteName, *authV2Update, id.SlotName); err != nil { + authV2Update := helpers.ExpandAuthV2SettingsLinuxWebApps(state.AuthV2Settings) + if _, err := client.UpdateAuthSettingsV2Slot(ctx, *id, *authV2Update); err != nil { return fmt.Errorf("updating AuthV2 Settings for Linux %s: %+v", id, err) } updateLogs = true } if metadata.ResourceData.HasChange("backup") { - backupUpdate, err := helpers.ExpandBackupConfig(state.Backup) + backupUpdate, err := helpers.ExpandBackupConfigLinuxWebApps(state.Backup) if err != nil { return fmt.Errorf("expanding backup configuration for Linux %s: %+v", *id, err) } - if backupUpdate.BackupRequestProperties == nil { - if _, err := client.DeleteBackupConfigurationSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName); err != nil { + if backupUpdate.Properties == nil { + if _, err := client.DeleteBackupConfigurationSlot(ctx, *id); err != nil { return fmt.Errorf("removing Backup Settings for Linux %s: %+v", id, err) } } else { - if _, err := client.UpdateBackupConfigurationSlot(ctx, id.ResourceGroup, id.SiteName, *backupUpdate, id.SlotName); err != nil { + if _, err := client.UpdateBackupConfigurationSlot(ctx, *id, *backupUpdate); err != nil { return fmt.Errorf("updating Backup Settings for Linux %s: %+v", id, err) } } } if metadata.ResourceData.HasChange("logs") || updateLogs { - logsUpdate := helpers.ExpandLogsConfig(state.LogsConfig) - if logsUpdate.SiteLogsConfigProperties == nil { - logsUpdate = helpers.DisabledLogsConfig() // The API is update only, so we need to send an update with everything switched of when a user removes the "logs" block + logsUpdate := helpers.ExpandLogsConfigLinuxWebApps(state.LogsConfig) + if logsUpdate.Properties == nil { + logsUpdate = helpers.DisabledLogsConfigLinuxWebApps() // The API is update only, so we need to send an update with everything switched of when a user removes the "logs" block } - if _, err := client.UpdateDiagnosticLogsConfigSlot(ctx, id.ResourceGroup, id.SiteName, *logsUpdate, id.SlotName); err != nil { + if _, err := client.UpdateDiagnosticLogsConfigSlot(ctx, *id, logsUpdate); err != nil { return fmt.Errorf("updating Logs Config for Linux %s: %+v", id, err) } } if metadata.ResourceData.HasChange("storage_account") { - storageAccountUpdate := helpers.ExpandStorageConfig(state.StorageAccounts) - if _, err := client.UpdateAzureStorageAccountsSlot(ctx, id.ResourceGroup, id.SiteName, *storageAccountUpdate, id.SlotName); err != nil { + storageAccountUpdate := helpers.ExpandStorageConfigLinuxWebApps(state.StorageAccounts) + if _, err := client.UpdateAzureStorageAccountsSlot(ctx, *id, storageAccountUpdate); err != nil { return fmt.Errorf("updating Storage Accounts for Linux %s: %+v", id, err) } } if metadata.ResourceData.HasChange("zip_deploy_file") { - if err = helpers.GetCredentialsAndPublishSlot(ctx, client, id.ResourceGroup, id.SiteName, state.ZipDeployFile, id.SlotName); err != nil { + if err = helpers.GetCredentialsAndPublishSlotLinuxWebApps(ctx, client, *id, state.ZipDeployFile); err != nil { return err } } if metadata.ResourceData.HasChange("ftp_publish_basic_authentication_enabled") { - sitePolicy := web.CsmPublishingCredentialsPoliciesEntity{ - CsmPublishingCredentialsPoliciesEntityProperties: &web.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: pointer.To(state.PublishingFTPBasicAuthEnabled), + sitePolicy := webapps.CsmPublishingCredentialsPoliciesEntity{ + Properties: &webapps.CsmPublishingCredentialsPoliciesEntityProperties{ + Allow: state.PublishingFTPBasicAuthEnabled, }, } - if _, err := client.UpdateFtpAllowedSlot(ctx, id.ResourceGroup, id.SiteName, sitePolicy, id.SlotName); err != nil { + if _, err := client.UpdateFtpAllowedSlot(ctx, *id, sitePolicy); err != nil { return fmt.Errorf("setting basic auth for ftp publishing credentials for %s: %+v", id, err) } } if metadata.ResourceData.HasChange("webdeploy_publish_basic_authentication_enabled") { - sitePolicy := web.CsmPublishingCredentialsPoliciesEntity{ - CsmPublishingCredentialsPoliciesEntityProperties: &web.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: pointer.To(state.PublishingDeployBasicAuthEnabled), + sitePolicy := webapps.CsmPublishingCredentialsPoliciesEntity{ + Properties: &webapps.CsmPublishingCredentialsPoliciesEntityProperties{ + Allow: state.PublishingDeployBasicAuthEnabled, }, } - if _, err := client.UpdateScmAllowedSlot(ctx, id.ResourceGroup, id.SiteName, sitePolicy, id.SlotName); err != nil { + if _, err := client.UpdateScmAllowedSlot(ctx, *id, sitePolicy); err != nil { return fmt.Errorf("setting basic auth for deploy publishing credentials for %s: %+v", id, err) } } From 444d369d7738e32ef9c61181af6fe20d9498ad1d Mon Sep 17 00:00:00 2001 From: Xiaxin Date: Mon, 8 Jan 2024 15:16:51 +0800 Subject: [PATCH 3/6] update code --- internal/services/appservice/client/client.go | 7 +++++++ .../services/appservice/helpers/shared_schema.go | 2 +- .../services/appservice/linux_web_app_resource.go | 13 ++++++++----- .../appservice/linux_web_app_slot_resource.go | 6 +++--- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/internal/services/appservice/client/client.go b/internal/services/appservice/client/client.go index d57303d624e8..44bbe8abfc22 100644 --- a/internal/services/appservice/client/client.go +++ b/internal/services/appservice/client/client.go @@ -40,11 +40,18 @@ func NewClient(o *common.ClientOptions) (*Client, error) { servicePlanClient := web.NewAppServicePlansClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) o.ConfigureClient(&servicePlanClient.Client, o.ResourceManagerAuthorizer) + availabilityClient, err := resourceproviders.NewResourceProvidersClientWithBaseURI(o.Environment.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building WebApps operation client: %+v", err) + } + o.Configure(availabilityClient.Client, o.Authorizers.ResourceManager) + return &Client{ AppServiceEnvironmentClient: &appServiceEnvironmentClient, BaseClient: &baseClient, ServicePlanClient: &servicePlanClient, LinuxWebAppsClient: linuxWebAppServiceClient, WebAppsClient: &webAppServiceClient, + AvailabilityClient: availabilityClient, }, nil } diff --git a/internal/services/appservice/helpers/shared_schema.go b/internal/services/appservice/helpers/shared_schema.go index 37b66595ce17..da4a85c74bfd 100644 --- a/internal/services/appservice/helpers/shared_schema.go +++ b/internal/services/appservice/helpers/shared_schema.go @@ -2073,7 +2073,7 @@ func FlattenStickySettings(input *web.SlotConfigNames) []StickySettings { func FlattenStickySettingsLinuxWebApps(input *webapps.SlotConfigNamesResource) []StickySettings { result := StickySettings{} - if input == nil || input.Properties == nil && (input.Properties.AppSettingNames == nil && input.Properties.ConnectionStringNames == nil) || (len(*input.Properties.AppSettingNames) == 0 && len(*input.Properties.ConnectionStringNames) == 0) { + if (input == nil && input.Properties == nil) || (input.Properties.AppSettingNames == nil && input.Properties.ConnectionStringNames == nil) || (len(*input.Properties.AppSettingNames) == 0 && len(*input.Properties.ConnectionStringNames) == 0) { return []StickySettings{} } diff --git a/internal/services/appservice/linux_web_app_resource.go b/internal/services/appservice/linux_web_app_resource.go index 432bc43d599b..2cfba656de81 100644 --- a/internal/services/appservice/linux_web_app_resource.go +++ b/internal/services/appservice/linux_web_app_resource.go @@ -332,8 +332,11 @@ func (r LinuxWebAppResource) Create() sdk.ResourceFunc { if err != nil { return fmt.Errorf("checking name availability for Linux %s: %+v", id, err) } - if !*checkName.Model.NameAvailable { - return fmt.Errorf("the Site Name %q failed the availability check: %+v", id.SiteName, *checkName.HttpResponse) + + if model := checkName.Model; model != nil { + if !*model.NameAvailable { + return fmt.Errorf("the Site Name %q failed the availability check: %+v", id.SiteName, *checkName.HttpResponse) + } } sc := webApp.SiteConfig[0] @@ -583,9 +586,9 @@ func (r LinuxWebAppResource) Read() sdk.ResourceFunc { return fmt.Errorf("listing Site Publishing Credential information for %s : %+v", id, err) } - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after ListPublishingCredentials: %+v", err) - } + //if err := result.Poller.PollUntilDone(ctx); err != nil { + // return fmt.Errorf("polling after ListPublishingCredentials: %+v", err) + //} var siteCredentials webapps.User if err := json.NewDecoder(result.HttpResponse.Body).Decode(&siteCredentials); err != nil { diff --git a/internal/services/appservice/linux_web_app_slot_resource.go b/internal/services/appservice/linux_web_app_slot_resource.go index f5500a187ac3..331f168bcd9b 100644 --- a/internal/services/appservice/linux_web_app_slot_resource.go +++ b/internal/services/appservice/linux_web_app_slot_resource.go @@ -557,9 +557,9 @@ func (r LinuxWebAppSlotResource) Read() sdk.ResourceFunc { return fmt.Errorf("listing Site Publishing Credential information for Linux %s: %+v", id, err) } - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after ListPublishingCredentials: %+v", err) - } + //if err := result.Poller.PollUntilDone(ctx); err != nil { + // return fmt.Errorf("polling after ListPublishingCredentials: %+v", err) + //} var siteCredentials webapps.User if err := json.NewDecoder(result.HttpResponse.Body).Decode(&siteCredentials); err != nil { From c2366266e41622664478c952d69d1c8d4b058686 Mon Sep 17 00:00:00 2001 From: Xiaxin Date: Wed, 10 Jan 2024 13:44:20 +0800 Subject: [PATCH 4/6] remod --- .../web/2023-01-01/webapps/README.md | 4 ++-- ...ethod_approveorrejectprivateendpointconnection.go | 4 ++-- ...d_approveorrejectprivateendpointconnectionslot.go | 4 ++-- .../model_privatelinkconnectionapprovalrequest.go | 8 -------- ...l_privatelinkconnectionapprovalrequestresource.go | 12 ------------ 5 files changed, 6 insertions(+), 26 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequest.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequestresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/README.md index b84e1dc9856a..7de90f20ca47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/README.md @@ -142,7 +142,7 @@ if model := read.Model; model != nil { ctx := context.TODO() id := webapps.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "privateEndpointConnectionValue") -payload := webapps.PrivateLinkConnectionApprovalRequestResource{ +payload := webapps.RemotePrivateEndpointConnectionARMResource{ // ... } @@ -159,7 +159,7 @@ if err := client.ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx, id, paylo ctx := context.TODO() id := webapps.NewSlotPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "privateEndpointConnectionValue") -payload := webapps.PrivateLinkConnectionApprovalRequestResource{ +payload := webapps.RemotePrivateEndpointConnectionARMResource{ // ... } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnection.go index 5dd13ac36084..18b221248ba0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnection.go @@ -21,7 +21,7 @@ type ApproveOrRejectPrivateEndpointConnectionOperationResponse struct { } // ApproveOrRejectPrivateEndpointConnection ... -func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnection(ctx context.Context, id PrivateEndpointConnectionId, input PrivateLinkConnectionApprovalRequestResource) (result ApproveOrRejectPrivateEndpointConnectionOperationResponse, err error) { +func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnection(ctx context.Context, id PrivateEndpointConnectionId, input RemotePrivateEndpointConnectionARMResource) (result ApproveOrRejectPrivateEndpointConnectionOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -60,7 +60,7 @@ func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnection(ctx context.Cont } // ApproveOrRejectPrivateEndpointConnectionThenPoll performs ApproveOrRejectPrivateEndpointConnection then polls until it's completed -func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx context.Context, id PrivateEndpointConnectionId, input PrivateLinkConnectionApprovalRequestResource) error { +func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx context.Context, id PrivateEndpointConnectionId, input RemotePrivateEndpointConnectionARMResource) error { result, err := c.ApproveOrRejectPrivateEndpointConnection(ctx, id, input) if err != nil { return fmt.Errorf("performing ApproveOrRejectPrivateEndpointConnection: %+v", err) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnectionslot.go index 5bf1549dbedb..f38c744a90f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnectionslot.go @@ -21,7 +21,7 @@ type ApproveOrRejectPrivateEndpointConnectionSlotOperationResponse struct { } // ApproveOrRejectPrivateEndpointConnectionSlot ... -func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnectionSlot(ctx context.Context, id SlotPrivateEndpointConnectionId, input PrivateLinkConnectionApprovalRequestResource) (result ApproveOrRejectPrivateEndpointConnectionSlotOperationResponse, err error) { +func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnectionSlot(ctx context.Context, id SlotPrivateEndpointConnectionId, input RemotePrivateEndpointConnectionARMResource) (result ApproveOrRejectPrivateEndpointConnectionSlotOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -60,7 +60,7 @@ func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnectionSlot(ctx context. } // ApproveOrRejectPrivateEndpointConnectionSlotThenPoll performs ApproveOrRejectPrivateEndpointConnectionSlot then polls until it's completed -func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnectionSlotThenPoll(ctx context.Context, id SlotPrivateEndpointConnectionId, input PrivateLinkConnectionApprovalRequestResource) error { +func (c WebAppsClient) ApproveOrRejectPrivateEndpointConnectionSlotThenPoll(ctx context.Context, id SlotPrivateEndpointConnectionId, input RemotePrivateEndpointConnectionARMResource) error { result, err := c.ApproveOrRejectPrivateEndpointConnectionSlot(ctx, id, input) if err != nil { return fmt.Errorf("performing ApproveOrRejectPrivateEndpointConnectionSlot: %+v", err) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequest.go deleted file mode 100644 index 33236562dda6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequest.go +++ /dev/null @@ -1,8 +0,0 @@ -package webapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkConnectionApprovalRequest struct { - PrivateLinkServiceConnectionState *PrivateLinkConnectionState `json:"privateLinkServiceConnectionState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequestresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequestresource.go deleted file mode 100644 index 73f676f5a32a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionapprovalrequestresource.go +++ /dev/null @@ -1,12 +0,0 @@ -package webapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkConnectionApprovalRequestResource struct { - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkConnectionApprovalRequest `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} From e82030c3ba8eede853b31d711558cb6684048c0b Mon Sep 17 00:00:00 2001 From: Xiaxin Date: Wed, 10 Jan 2024 15:19:04 +0800 Subject: [PATCH 5/6] update code --- internal/services/appservice/linux_web_app_resource.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/services/appservice/linux_web_app_resource.go b/internal/services/appservice/linux_web_app_resource.go index 2cfba656de81..68b21b1aaf46 100644 --- a/internal/services/appservice/linux_web_app_resource.go +++ b/internal/services/appservice/linux_web_app_resource.go @@ -325,6 +325,7 @@ func (r LinuxWebAppResource) Create() sdk.ResourceFunc { } } + availabilityRequest.Name = fmt.Sprintf("%s.%s", webApp.Name, nameSuffix) availabilityRequest.IsFqdn = pointer.To(true) } @@ -586,10 +587,6 @@ func (r LinuxWebAppResource) Read() sdk.ResourceFunc { return fmt.Errorf("listing Site Publishing Credential information for %s : %+v", id, err) } - //if err := result.Poller.PollUntilDone(ctx); err != nil { - // return fmt.Errorf("polling after ListPublishingCredentials: %+v", err) - //} - var siteCredentials webapps.User if err := json.NewDecoder(result.HttpResponse.Body).Decode(&siteCredentials); err != nil { return fmt.Errorf("reading Site Publishing Credential information for %s : %+v", id, err) From 983e4e981da739fd692d644327601803cf1b43d2 Mon Sep 17 00:00:00 2001 From: Xiaxin Date: Wed, 10 Jan 2024 15:47:48 +0800 Subject: [PATCH 6/6] remove comment --- internal/services/appservice/linux_web_app_slot_resource.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/services/appservice/linux_web_app_slot_resource.go b/internal/services/appservice/linux_web_app_slot_resource.go index 331f168bcd9b..e3ab55c6fb60 100644 --- a/internal/services/appservice/linux_web_app_slot_resource.go +++ b/internal/services/appservice/linux_web_app_slot_resource.go @@ -557,10 +557,6 @@ func (r LinuxWebAppSlotResource) Read() sdk.ResourceFunc { return fmt.Errorf("listing Site Publishing Credential information for Linux %s: %+v", id, err) } - //if err := result.Poller.PollUntilDone(ctx); err != nil { - // return fmt.Errorf("polling after ListPublishingCredentials: %+v", err) - //} - var siteCredentials webapps.User if err := json.NewDecoder(result.HttpResponse.Body).Decode(&siteCredentials); err != nil { return fmt.Errorf("reading Site Publishing Credential information for Linux %s: %+v", id, err)