From de3678cc9f663775c003fed99c0e064dc125e95d Mon Sep 17 00:00:00 2001 From: jackofallops Date: Fri, 12 Jan 2024 09:36:50 +0100 Subject: [PATCH 1/7] swap service plans to go-azure-sdk --- internal/clients/client.go | 4 +- internal/services/appservice/client/client.go | 18 +- .../appservice/helpers/service_plan.go | 11 +- .../appservice/linux_function_app_resource.go | 138 +- .../linux_function_app_slot_resource.go | 118 +- .../appservice/linux_web_app_resource.go | 98 +- .../appservice/linux_web_app_slot_resource.go | 38 +- .../migration/linux_function_app.go | 1617 ++++ .../migration/linux_function_app_slot.go | 1588 ++++ .../appservice/migration/linux_web_app.go | 1770 +++++ .../migration/linux_web_app_slot.go | 1751 +++++ .../appservice/migration/service_plan.go | 96 + .../migration/windows_function_app.go | 1568 ++++ .../migration/windows_function_app_slot.go | 1540 ++++ .../appservice/migration/windows_web_app.go | 1860 +++++ .../migration/windows_web_app_slot.go | 1816 +++++ .../services/appservice/parse/service_plan.go | 116 - .../appservice/parse/service_plan_test.go | 232 - internal/services/appservice/resourceids.go | 2 +- .../appservice/service_plan_data_source.go | 60 +- .../appservice/service_plan_resource.go | 147 +- .../appservice/service_plan_resource_test.go | 11 +- .../appservice/validate/service_plan_id.go | 26 - .../validate/service_plan_id_test.go | 79 - .../windows_function_app_data_source.go | 7 +- .../windows_function_app_resource.go | 129 +- .../windows_function_app_slot_resource.go | 137 +- .../appservice/windows_web_app_data_source.go | 7 +- .../appservice/windows_web_app_resource.go | 94 +- .../windows_web_app_slot_resource.go | 46 +- .../appserviceenvironments/README.md | 832 ++ .../appserviceenvironments/client.go | 26 + .../appserviceenvironments/constants.go | 1439 ++++ .../id_defaultinstance.go | 136 + .../id_hostingenvironmentdiagnostic.go | 134 + ...ingenvironmentprivateendpointconnection.go | 134 + .../appserviceenvironments/id_workerpool.go | 134 + .../id_workerpoolinstance.go | 143 + ...pproveorrejectprivateendpointconnection.go | 74 + .../method_changevnet.go | 89 + .../method_createorupdate.go | 76 + .../method_createorupdatemultirolepool.go | 75 + .../method_createorupdateworkerpool.go | 74 + .../appserviceenvironments/method_delete.go | 99 + ...d_deleteasecustomdnssuffixconfiguration.go | 54 + .../method_deleteprivateendpointconnection.go | 71 + .../appserviceenvironments/method_get.go | 52 + ...thod_getasecustomdnssuffixconfiguration.go | 53 + .../method_getasev3networkingconfiguration.go | 53 + .../method_getdiagnosticsitem.go | 51 + ..._getinboundnetworkdependenciesendpoints.go | 90 + .../method_getmultirolepool.go | 53 + ...getoutboundnetworkdependenciesendpoints.go | 90 + .../method_getprivateendpointconnection.go | 51 + ...method_getprivateendpointconnectionlist.go | 90 + .../method_getprivatelinkresources.go | 53 + .../method_getvipinfo.go | 53 + .../method_getworkerpool.go | 51 + .../appserviceenvironments/method_list.go | 90 + .../method_listappserviceplans.go | 90 + .../method_listbyresourcegroup.go | 90 + .../method_listcapacities.go | 90 + .../method_listdiagnostics.go | 53 + .../method_listmultirolemetricdefinitions.go | 90 + ...tmultirolepoolinstancemetricdefinitions.go | 89 + .../method_listmultirolepools.go | 90 + .../method_listmultirolepoolskus.go | 90 + .../method_listmultiroleusages.go | 90 + .../method_listoperations.go | 53 + .../method_listusages.go | 118 + .../method_listwebapps.go | 118 + .../method_listwebworkermetricdefinitions.go | 89 + .../method_listwebworkerusages.go | 89 + ...listworkerpoolinstancemetricdefinitions.go | 89 + .../method_listworkerpools.go | 90 + .../method_listworkerpoolskus.go | 89 + .../appserviceenvironments/method_reboot.go | 48 + .../appserviceenvironments/method_resume.go | 85 + .../appserviceenvironments/method_suspend.go | 85 + ...method_testupgradeavailablenotification.go | 48 + .../appserviceenvironments/method_update.go | 58 + ...d_updateasecustomdnssuffixconfiguration.go | 57 + ...method_updateasenetworkingconfiguration.go | 57 + .../method_updatemultirolepool.go | 58 + .../method_updateworkerpool.go | 56 + .../appserviceenvironments/method_upgrade.go | 70 + .../model_addressresponse.go | 12 + .../model_addressresponseproperties.go | 11 + .../model_apidefinitioninfo.go | 8 + .../model_apimanagementconfig.go | 8 + .../model_appserviceenvironment.go | 27 + ...odel_appserviceenvironmentpatchresource.go | 12 + .../model_appserviceenvironmentresource.go | 14 + .../model_appserviceplan.go | 16 + .../model_appserviceplanproperties.go | 60 + .../model_armidwrapper.go | 8 + .../model_asev3networkingconfiguration.go | 12 + ..._asev3networkingconfigurationproperties.go | 15 + .../model_autohealactions.go | 10 + .../model_autohealcustomaction.go | 9 + .../model_autohealrules.go | 9 + .../model_autohealtriggers.go | 13 + .../model_azurestorageinfovalue.go | 13 + .../model_capability.go | 10 + .../model_cloninginfo.go | 18 + .../model_connstringinfo.go | 10 + .../model_corssettings.go | 9 + .../model_csmusagequota.go | 30 + .../model_customdnssuffixconfiguration.go | 12 + ..._customdnssuffixconfigurationproperties.go | 12 + .../model_daprconfig.go | 14 + .../model_endpointdependency.go | 9 + .../model_endpointdetail.go | 11 + .../model_errorentity.go | 15 + .../model_experiments.go | 8 + .../model_extendedlocation.go | 9 + .../model_handlermapping.go | 10 + .../model_hostingenvironmentdiagnostics.go | 9 + .../model_hostingenvironmentprofile.go | 10 + .../model_hostnamesslstate.go | 13 + .../model_inboundenvironmentendpoint.go | 10 + .../model_ipsecurityrestriction.go | 18 + .../model_kubeenvironmentprofile.go | 10 + .../model_localizablestring.go | 9 + .../model_namevaluepair.go | 9 + .../appserviceenvironments/model_operation.go | 57 + .../model_outboundenvironmentendpoint.go | 9 + .../model_privatelinkconnectionstate.go | 10 + .../model_privatelinkresource.go | 11 + .../model_privatelinkresourceproperties.go | 10 + .../model_privatelinkresourceswrapper.go | 8 + .../model_pushsettings.go | 12 + .../model_pushsettingsproperties.go | 11 + .../model_rampuprule.go | 15 + ...oteprivateendpointconnectionarmresource.go | 12 + ...endpointconnectionarmresourceproperties.go | 11 + .../model_requestsbasedtrigger.go | 9 + .../model_resourceconfig.go | 9 + .../model_resourcemetricavailability.go | 9 + .../model_resourcemetricdefinition.go | 12 + ...odel_resourcemetricdefinitionproperties.go | 12 + .../appserviceenvironments/model_site.go | 20 + .../model_siteconfig.go | 97 + .../model_sitelimits.go | 10 + .../model_sitemachinekey.go | 11 + .../model_siteproperties.go | 86 + .../model_skucapacity.go | 12 + .../model_skudescription.go | 15 + .../appserviceenvironments/model_skuinfo.go | 10 + .../model_slotswapstatus.go | 28 + .../model_slowrequestsbasedtrigger.go | 11 + .../model_stampcapacity.go | 18 + .../model_statuscodesbasedtrigger.go | 13 + .../model_statuscodesrangebasedtrigger.go | 11 + .../appserviceenvironments/model_usage.go | 12 + .../model_usageproperties.go | 33 + .../model_virtualapplication.go | 11 + .../model_virtualdirectory.go | 9 + .../model_virtualipmapping.go | 12 + .../model_virtualnetworkprofile.go | 11 + .../model_workerpool.go | 12 + .../model_workerpoolresource.go | 13 + .../appserviceenvironments/predicates.go | 335 + .../appserviceenvironments/version.go | 12 + .../web/2023-01-01/appserviceplans/README.md | 479 ++ .../web/2023-01-01/appserviceplans/client.go | 26 + .../2023-01-01/appserviceplans/constants.go | 1089 +++ .../id_hybridconnectionnamespacerelay.go | 143 + .../2023-01-01/appserviceplans/id_route.go | 143 + .../id_serverfarmvirtualnetworkconnection.go | 134 + .../id_virtualnetworkconnectiongateway.go | 143 + .../2023-01-01/appserviceplans/id_worker.go | 134 + .../appserviceplans/method_createorupdate.go | 75 + .../method_createorupdatevnetroute.go | 55 + .../appserviceplans/method_delete.go | 48 + .../method_deletehybridconnection.go | 47 + .../appserviceplans/method_deletevnetroute.go | 46 + .../2023-01-01/appserviceplans/method_get.go | 52 + .../method_gethybridconnection.go | 51 + .../method_gethybridconnectionplanlimit.go | 53 + .../appserviceplans/method_getrouteforvnet.go | 51 + .../method_getserverfarmskus.go | 53 + .../method_getvnetfromserverfarm.go | 51 + .../appserviceplans/method_getvnetgateway.go | 51 + .../2023-01-01/appserviceplans/method_list.go | 118 + .../method_listbyresourcegroup.go | 90 + .../method_listcapabilities.go | 53 + .../method_listhybridconnectionkeys.go | 52 + .../method_listhybridconnections.go | 90 + .../method_listroutesforvnet.go | 52 + .../appserviceplans/method_listusages.go | 118 + .../appserviceplans/method_listvnets.go | 53 + .../appserviceplans/method_listwebapps.go | 122 + .../method_listwebappsbyhybridconnection.go | 82 + .../appserviceplans/method_rebootworker.go | 47 + .../appserviceplans/method_restartwebapps.go | 76 + .../appserviceplans/method_update.go | 57 + .../method_updatevnetgateway.go | 55 + .../appserviceplans/method_updatevnetroute.go | 55 + .../model_apidefinitioninfo.go | 8 + .../model_apimanagementconfig.go | 8 + .../appserviceplans/model_appserviceplan.go | 16 + .../model_appserviceplanpatchresource.go | 12 + ...l_appserviceplanpatchresourceproperties.go | 60 + .../model_appserviceplanproperties.go | 60 + .../appserviceplans/model_autohealactions.go | 10 + .../model_autohealcustomaction.go | 9 + .../appserviceplans/model_autohealrules.go | 9 + .../appserviceplans/model_autohealtriggers.go | 13 + .../model_azurestorageinfovalue.go | 13 + .../appserviceplans/model_capability.go | 10 + .../appserviceplans/model_cloninginfo.go | 18 + .../appserviceplans/model_connstringinfo.go | 10 + .../appserviceplans/model_corssettings.go | 9 + .../appserviceplans/model_csmusagequota.go | 30 + .../appserviceplans/model_daprconfig.go | 14 + .../appserviceplans/model_experiments.go | 8 + .../appserviceplans/model_extendedlocation.go | 9 + .../appserviceplans/model_handlermapping.go | 10 + .../model_hostingenvironmentprofile.go | 10 + .../appserviceplans/model_hostnamesslstate.go | 13 + .../appserviceplans/model_hybridconnection.go | 12 + .../model_hybridconnectionkey.go | 12 + .../model_hybridconnectionkeyproperties.go | 9 + .../model_hybridconnectionlimits.go | 12 + .../model_hybridconnectionlimitsproperties.go | 9 + .../model_hybridconnectionproperties.go | 15 + .../model_ipsecurityrestriction.go | 18 + .../model_kubeenvironmentprofile.go | 10 + .../model_localizablestring.go | 9 + .../appserviceplans/model_namevaluepair.go | 9 + .../appserviceplans/model_pushsettings.go | 12 + .../model_pushsettingsproperties.go | 11 + .../appserviceplans/model_rampuprule.go | 15 + .../model_requestsbasedtrigger.go | 9 + .../appserviceplans/model_resourceconfig.go | 9 + .../2023-01-01/appserviceplans/model_site.go | 20 + .../appserviceplans/model_siteconfig.go | 97 + .../appserviceplans/model_sitelimits.go | 10 + .../appserviceplans/model_sitemachinekey.go | 11 + .../appserviceplans/model_siteproperties.go | 86 + .../appserviceplans/model_skucapacity.go | 12 + .../appserviceplans/model_skudescription.go | 15 + .../appserviceplans/model_slotswapstatus.go | 28 + .../model_slowrequestsbasedtrigger.go | 11 + .../model_statuscodesbasedtrigger.go | 13 + .../model_statuscodesrangebasedtrigger.go | 11 + .../model_virtualapplication.go | 11 + .../appserviceplans/model_virtualdirectory.go | 9 + .../appserviceplans/model_vnetgateway.go | 12 + .../model_vnetgatewayproperties.go | 9 + .../appserviceplans/model_vnetinfo.go | 14 + .../appserviceplans/model_vnetinforesource.go | 12 + .../appserviceplans/model_vnetroute.go | 12 + .../model_vnetrouteproperties.go | 10 + .../2023-01-01/appserviceplans/predicates.go | 126 + .../web/2023-01-01/appserviceplans/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 + .../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 | 3 + 958 files changed, 74553 insertions(+), 882 deletions(-) create mode 100644 internal/services/appservice/migration/linux_function_app.go create mode 100644 internal/services/appservice/migration/linux_function_app_slot.go create mode 100644 internal/services/appservice/migration/linux_web_app.go create mode 100644 internal/services/appservice/migration/linux_web_app_slot.go create mode 100644 internal/services/appservice/migration/service_plan.go create mode 100644 internal/services/appservice/migration/windows_function_app.go create mode 100644 internal/services/appservice/migration/windows_function_app_slot.go create mode 100644 internal/services/appservice/migration/windows_web_app.go create mode 100644 internal/services/appservice/migration/windows_web_app_slot.go delete mode 100644 internal/services/appservice/parse/service_plan.go delete mode 100644 internal/services/appservice/parse/service_plan_test.go delete mode 100644 internal/services/appservice/validate/service_plan_id.go delete mode 100644 internal/services/appservice/validate/service_plan_id_test.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_approveorrejectprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdatemultirolepool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdateworkerpool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasev3networkingconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getdiagnosticsitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnectionlist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivatelinkresources.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getvipinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getworkerpool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listappserviceplans.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolemetricdefinitions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_reboot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_testupgradeavailablenotification.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_update.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasenetworkingconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updatemultirolepool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateworkerpool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_upgrade.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponseproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apidefinitioninfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apimanagementconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentpatchresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplan.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplanproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_armidwrapper.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealactions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealcustomaction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealrules.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealtriggers.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_azurestorageinfovalue.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_capability.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_cloninginfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_connstringinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_corssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_csmusagequota.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_daprconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdependency.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdetail.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_errorentity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_experiments.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_extendedlocation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_handlermapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentdiagnostics.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostnamesslstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_inboundenvironmentendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_ipsecurityrestriction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_kubeenvironmentprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_localizablestring.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_namevaluepair.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_operation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_outboundenvironmentendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceswrapper.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettingsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_rampuprule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresourceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_requestsbasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourceconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricavailability.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinitionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_site.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitelimits.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitemachinekey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skucapacity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skudescription.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skuinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slotswapstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slowrequestsbasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_stampcapacity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesbasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesrangebasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usage.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usageproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualapplication.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualdirectory.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualipmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualnetworkprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpoolresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_hybridconnectionnamespacerelay.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_serverfarmvirtualnetworkconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_virtualnetworkconnectiongateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_worker.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_createorupdatevnetroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_deletehybridconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_deletevnetroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_gethybridconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_gethybridconnectionplanlimit.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getrouteforvnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getserverfarmskus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getvnetfromserverfarm.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getvnetgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listcapabilities.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnectionkeys.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnections.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listroutesforvnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listusages.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listvnets.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebapps.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_rebootworker.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_restartwebapps.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_update.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_updatevnetgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_updatevnetroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_apidefinitioninfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_apimanagementconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplan.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplanpatchresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplanpatchresourceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplanproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealactions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealcustomaction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealrules.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealtriggers.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_azurestorageinfovalue.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_capability.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_cloninginfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_connstringinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_corssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_csmusagequota.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_daprconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_experiments.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_extendedlocation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_handlermapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hostingenvironmentprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hostnamesslstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionkey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionkeyproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionlimits.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionlimitsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_ipsecurityrestriction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_kubeenvironmentprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_localizablestring.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_namevaluepair.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_pushsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_pushsettingsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_rampuprule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_requestsbasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_resourceconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_site.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_siteconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_sitelimits.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_sitemachinekey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_siteproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_skucapacity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_skudescription.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_slotswapstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_slowrequestsbasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_statuscodesbasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_statuscodesrangebasedtrigger.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_virtualapplication.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_virtualdirectory.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetgatewayproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetinforesource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetrouteproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/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_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/clients/client.go b/internal/clients/client.go index debb6de3839b..65ff112c76e1 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 e5d2b997ceb1..f9589239171c 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/appserviceplans" "github.com/hashicorp/terraform-provider-azurerm/internal/common" "github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web" ) @@ -11,11 +14,11 @@ import ( type Client struct { AppServiceEnvironmentClient *web.AppServiceEnvironmentsClient BaseClient *web.BaseClient - ServicePlanClient *web.AppServicePlansClient + ServicePlanClient *appserviceplans.AppServicePlansClient WebAppsClient *web.AppsClient } -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) @@ -25,13 +28,16 @@ func NewClient(o *common.ClientOptions) *Client { webAppServiceClient := web.NewAppsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) o.ConfigureClient(&webAppServiceClient.Client, o.ResourceManagerAuthorizer) - servicePlanClient := web.NewAppServicePlansClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) - o.ConfigureClient(&servicePlanClient.Client, o.ResourceManagerAuthorizer) + servicePlanClient, err := appserviceplans.NewAppServicePlansClientWithBaseURI(o.Environment.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building Api client: %+v", err) + } + o.Configure(servicePlanClient.Client, o.Authorizers.ResourceManager) return &Client{ AppServiceEnvironmentClient: &appServiceEnvironmentClient, BaseClient: &baseClient, - ServicePlanClient: &servicePlanClient, + ServicePlanClient: servicePlanClient, WebAppsClient: &webAppServiceClient, - } + }, nil } diff --git a/internal/services/appservice/helpers/service_plan.go b/internal/services/appservice/helpers/service_plan.go index 736007a24598..a70a8d02ebbf 100644 --- a/internal/services/appservice/helpers/service_plan.go +++ b/internal/services/appservice/helpers/service_plan.go @@ -8,6 +8,7 @@ import ( "fmt" "strings" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/parse" "github.com/hashicorp/terraform-provider-azurerm/utils" @@ -169,23 +170,23 @@ func ServicePlanInfoForApp(ctx context.Context, metadata sdk.ResourceMetaData, i if props.ServerFarmID == nil { return nil, nil, fmt.Errorf("determining Service Plan ID for %s: %+v", id, err) } - servicePlanId, err := parse.ServicePlanID(*props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanID(*props.ServerFarmID) if err != nil { return nil, nil, err } - sp, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) - if err != nil || sp.Kind == nil { + sp, err := servicePlanClient.Get(ctx, *servicePlanId) + if err != nil || sp.Model.Kind == nil { return nil, nil, fmt.Errorf("reading Service Plan for %s: %+v", id, err) } osType = utils.String("windows") - if strings.Contains(strings.ToLower(*sp.Kind), "linux") { + if strings.Contains(strings.ToLower(*sp.Model.Kind), "linux") { osType = utils.String("linux") } planSku = utils.String("") - if sku := sp.Sku; sku != nil { + if sku := sp.Model.Sku; sku != nil { planSku = sku.Name } diff --git a/internal/services/appservice/linux_function_app_resource.go b/internal/services/appservice/linux_function_app_resource.go index 0f7741ca081d..e94b31877383 100644 --- a/internal/services/appservice/linux_function_app_resource.go +++ b/internal/services/appservice/linux_function_app_resource.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "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/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/validate" kvValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" @@ -85,6 +86,8 @@ var _ sdk.ResourceWithCustomImporter = LinuxFunctionAppResource{} var _ sdk.ResourceWithCustomizeDiff = LinuxFunctionAppResource{} +var _ sdk.ResourceWithStateMigration = LinuxFunctionAppResource{} + func (r LinuxFunctionAppResource) ModelObject() interface{} { return &LinuxFunctionAppModel{} } @@ -114,7 +117,7 @@ func (r LinuxFunctionAppResource) Arguments() map[string]*pluginsdk.Schema { "service_plan_id": { Type: pluginsdk.TypeString, Required: true, - ValidateFunc: validate.ServicePlanID, + ValidateFunc: commonids.ValidateAppServicePlanID, Description: "The ID of the App Service Plan within which to create this Function App", }, @@ -375,19 +378,49 @@ func (r LinuxFunctionAppResource) Create() sdk.ResourceFunc { id := parse.NewFunctionAppID(subscriptionId, functionApp.ResourceGroup, functionApp.Name) - servicePlanId, err := parse.ServicePlanID(functionApp.ServicePlanId) + servicePlanId, err := commonids.ParseAppServicePlanID(functionApp.ServicePlanId) if err != nil { return err } - servicePlan, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) + servicePlan, err := servicePlanClient.Get(ctx, *servicePlanId) if err != nil { return fmt.Errorf("reading %s: %+v", servicePlanId, err) } var planSKU *string - if sku := servicePlan.Sku; sku != nil && sku.Name != nil { - planSKU = sku.Name + availabilityRequest := web.ResourceNameAvailabilityRequest{ + Name: pointer.To(functionApp.Name), + Type: web.CheckNameResourceTypesMicrosoftWebsites, + } + if servicePlanModel := servicePlan.Model; servicePlanModel != nil { + if sku := servicePlanModel.Sku; sku != nil && sku.Name != nil { + planSKU = sku.Name + } + + if ase := servicePlanModel.Properties.HostingEnvironmentProfile; ase != nil { + // Attempt to check the ASE for the appropriate suffix for the name availability request. + // This varies between internal and external ASE Types, and potentially has other names in other clouds + // We use the "internal" as the fallback here, if we can read the ASE, we'll get the full one + nameSuffix := "appserviceenvironment.net" + if ase.Id != nil { + aseId, err := parse.AppServiceEnvironmentID(*ase.Id) + nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) + if err != nil { + metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionApp.Name, servicePlanId) + } else { + existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) + if err != nil { + metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionApp.Name, servicePlanId) + } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { + nameSuffix = *props.DNSSuffix + } + } + } + + availabilityRequest.Name = pointer.To(fmt.Sprintf("%s.%s", functionApp.Name, nameSuffix)) + availabilityRequest.IsFqdn = pointer.To(true) + } } // Only send for ElasticPremium and Consumption plan elasticOrConsumptionPlan := helpers.PlanIsElastic(planSKU) || helpers.PlanIsConsumption(planSKU) @@ -402,35 +435,6 @@ func (r LinuxFunctionAppResource) Create() sdk.ResourceFunc { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - availabilityRequest := web.ResourceNameAvailabilityRequest{ - Name: utils.String(functionApp.Name), - Type: web.CheckNameResourceTypesMicrosoftWebsites, - } - - if ase := servicePlan.HostingEnvironmentProfile; ase != nil { - // Attempt to check the ASE for the appropriate suffix for the name availability request. - // This varies between internal and external ASE Types, and potentially has other names in other clouds - // We use the "internal" as the fallback here, if we can read the ASE, we'll get the full one - nameSuffix := "appserviceenvironment.net" - if ase.ID != nil { - aseId, err := parse.AppServiceEnvironmentID(*ase.ID) - nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) - if err != nil { - metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionApp.Name, servicePlanId) - } else { - existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) - if err != nil { - metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionApp.Name, servicePlanId) - } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { - nameSuffix = *props.DNSSuffix - } - } - } - - availabilityRequest.Name = utils.String(fmt.Sprintf("%s.%s", functionApp.Name, nameSuffix)) - availabilityRequest.IsFqdn = utils.Bool(true) - } - checkName, err := client.CheckNameAvailability(ctx, availabilityRequest) if err != nil { return fmt.Errorf("checking name availability for Linux %s: %+v", id, err) @@ -743,7 +747,6 @@ func (r LinuxFunctionAppResource) Read() sdk.ResourceFunc { state := LinuxFunctionAppModel{ Name: id.SiteName, ResourceGroup: id.ResourceGroup, - ServicePlanId: utils.NormalizeNilableString(props.ServerFarmID), Location: location.NormalizeNilable(functionApp.Location), Enabled: utils.NormaliseNilableBool(functionApp.Enabled), ClientCertMode: string(functionApp.ClientCertMode), @@ -758,6 +761,12 @@ func (r LinuxFunctionAppResource) Read() sdk.ResourceFunc { PublicNetworkAccess: !strings.EqualFold(pointer.From(props.PublicNetworkAccess), helpers.PublicNetworkAccessDisabled), } + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(*props.ServerFarmID) + if err != nil { + return err + } + state.ServicePlanId = servicePlanId.ID() + state.PublishingFTPBasicAuthEnabled = basicAuthFTP state.PublishingDeployBasicAuthEnabled = basicAuthWebDeploy @@ -897,19 +906,21 @@ func (r LinuxFunctionAppResource) Update() sdk.ResourceFunc { // Some service plan updates are allowed - see customiseDiff for exceptions if metadata.ResourceData.HasChange("service_plan_id") { existing.SiteProperties.ServerFarmID = utils.String(state.ServicePlanId) - servicePlanId, err := parse.ServicePlanID(state.ServicePlanId) + servicePlanId, err := commonids.ParseAppServicePlanID(state.ServicePlanId) if err != nil { return err } servicePlanClient := metadata.Client.AppService.ServicePlanClient - servicePlan, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) + servicePlan, err := servicePlanClient.Get(ctx, *servicePlanId) if err != nil { - return fmt.Errorf("reading new service plan (%s) for Linux %s: %+v", servicePlanId.ServerfarmName, id, err) + return fmt.Errorf("reading new service plan (%s) for Linux %s: %+v", servicePlanId.ServerFarmName, id, err) } - if sku := servicePlan.Sku; sku != nil && sku.Name != nil { - planSKU = sku.Name + if model := servicePlan.Model; model != nil { + if sku := servicePlan.Model.Sku; sku != nil && sku.Name != nil { + planSKU = sku.Name + } } } @@ -1199,16 +1210,16 @@ func (r LinuxFunctionAppResource) CustomImporter() sdk.ResourceRunFunc { if props.ServerFarmID == nil { return fmt.Errorf("determining Service Plan ID for Linux %s: %+v", id, err) } - servicePlanId, err := parse.ServicePlanID(*props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanID(*props.ServerFarmID) if err != nil { return err } - sp, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) - if err != nil || sp.Kind == nil { + sp, err := servicePlanClient.Get(ctx, *servicePlanId) + if err != nil || sp.Model == nil || sp.Model.Kind == nil { return fmt.Errorf("reading Service Plan for Linux %s: %+v", id, err) } - if !strings.Contains(strings.ToLower(*sp.Kind), "linux") && !strings.Contains(strings.ToLower(*sp.Kind), "elastic") && !strings.Contains(strings.ToLower(*sp.Kind), "functionapp") { + if !strings.Contains(strings.ToLower(*sp.Model.Kind), "linux") && !strings.Contains(strings.ToLower(*sp.Model.Kind), "elastic") && !strings.Contains(strings.ToLower(*sp.Model.Kind), "functionapp") { return fmt.Errorf("specified Service Plan is not a Linux Functionapp plan") } @@ -1225,41 +1236,49 @@ func (r LinuxFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { if rd.HasChange("service_plan_id") { currentPlanIdRaw, newPlanIdRaw := rd.GetChange("service_plan_id") + if strings.EqualFold(currentPlanIdRaw.(string), newPlanIdRaw.(string)) || currentPlanIdRaw == "" { + // State migration escape for correcting case in serverFarms + // change of case here will not move the app to a new Service Plan + // also if the current Service Plan is empty, this is a new resource, so can skip this + return nil + } if newPlanIdRaw.(string) == "" { // Plans creating a new service_plan inline will be empty as `Computed` known after apply return nil } - newPlanId, err := parse.ServicePlanID(newPlanIdRaw.(string)) + newPlanId, err := commonids.ParseAppServicePlanID(newPlanIdRaw.(string)) if err != nil { return fmt.Errorf("reading new plan id %+v", err) } var currentTierIsDynamic, newTierIsDynamic, newTierIsBasic bool - newPlan, err := client.Get(ctx, newPlanId.ResourceGroup, newPlanId.ServerfarmName) + newPlan, err := client.Get(ctx, *newPlanId) if err != nil { - return fmt.Errorf("could not read new Service Plan to check tier %s: %+v", newPlanId, err) + return fmt.Errorf("could not read new Service Plan to check tier %s: %+v ", newPlanId, err) } - if planSku := newPlan.Sku; planSku != nil { - if tier := planSku.Tier; tier != nil { - newTierIsDynamic = strings.EqualFold(*tier, "dynamic") - newTierIsBasic = strings.EqualFold(*tier, "basic") + if newPlan.Model != nil { + if planSku := newPlan.Model.Sku; planSku != nil { + if tier := planSku.Tier; tier != nil { + newTierIsDynamic = strings.EqualFold(*tier, "dynamic") + newTierIsBasic = strings.EqualFold(*tier, "basic") + } } } // Service Plans can only be updated in place when both New and Existing are not Dynamic if currentPlanIdRaw.(string) != "" { - currentPlanId, err := parse.ServicePlanID(currentPlanIdRaw.(string)) + currentPlanId, err := commonids.ParseAppServicePlanIDInsensitively(currentPlanIdRaw.(string)) if err != nil { return fmt.Errorf("reading existing plan id %+v", err) } - currentPlan, err := client.Get(ctx, currentPlanId.ResourceGroup, currentPlanId.ServerfarmName) - if err != nil { + currentPlan, err := client.Get(ctx, *currentPlanId) + if err != nil || currentPlan.Model == nil { return fmt.Errorf("could not read old Service Plan to check tier %s: %+v", currentPlanId, err) } - if planSku := currentPlan.Sku; planSku != nil { + if planSku := currentPlan.Model.Sku; planSku != nil { if tier := planSku.Tier; tier != nil { currentTierIsDynamic = strings.EqualFold(*tier, "dynamic") } @@ -1378,3 +1397,12 @@ func (m *LinuxFunctionAppModel) unpackLinuxFunctionAppSettings(input web.StringD m.AppSettings = appSettings } + +func (r LinuxFunctionAppResource) StateUpgraders() sdk.StateUpgradeData { + return sdk.StateUpgradeData{ + SchemaVersion: 1, + Upgraders: map[int]pluginsdk.StateUpgrade{ + 0: migration.LinuxFunctionAppV0toV1{}, + }, + } +} diff --git a/internal/services/appservice/linux_function_app_slot_resource.go b/internal/services/appservice/linux_function_app_slot_resource.go index 509621cdfa95..9b50d796a914 100644 --- a/internal/services/appservice/linux_function_app_slot_resource.go +++ b/internal/services/appservice/linux_function_app_slot_resource.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "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/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/validate" kvValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" @@ -73,6 +74,8 @@ type LinuxFunctionAppSlotModel struct { var _ sdk.ResourceWithUpdate = LinuxFunctionAppSlotResource{} +var _ sdk.ResourceWithStateMigration = LinuxFunctionAppSlotResource{} + func (r LinuxFunctionAppSlotResource) ModelObject() interface{} { return &LinuxFunctionAppSlotModel{} } @@ -106,7 +109,7 @@ func (r LinuxFunctionAppSlotResource) Arguments() map[string]*pluginsdk.Schema { "service_plan_id": { Type: pluginsdk.TypeString, Optional: true, - ValidateFunc: validate.ServicePlanID, + ValidateFunc: commonids.ValidateAppServicePlanID, }, "storage_account_name": { @@ -369,31 +372,66 @@ func (r LinuxFunctionAppSlotResource) Create() sdk.ResourceFunc { return fmt.Errorf("could not determine location for %s: %+v", id, err) } - var servicePlanId *parse.ServicePlanId + var servicePlanId *commonids.AppServicePlanId + servicePlanId, err = commonids.ParseAppServicePlanIDInsensitively(*functionApp.SiteProperties.ServerFarmID) + if err != nil { + return err + } + if functionAppSlot.ServicePlanID != "" { - servicePlanId, err = parse.ServicePlanID(functionAppSlot.ServicePlanID) + newServicePlanId, err := commonids.ParseAppServicePlanID(functionAppSlot.ServicePlanID) if err != nil { return err } - } else { - if props := functionApp.SiteProperties; props == nil || props.ServerFarmID == nil { - return fmt.Errorf("could not determine Service Plan ID for %s: %+v", id, err) - } else { - servicePlanId, err = parse.ServicePlanID(*props.ServerFarmID) - if err != nil { - return err - } + // we only set `service_plan_id` when it differs from the parent `service_plan_id` which is causing issues + // https://github.com/hashicorp/terraform-provider-azurerm/issues/21024 + // we'll error here if the `service_plan_id` equals the parent `service_plan_id` + if strings.EqualFold(newServicePlanId.ID(), servicePlanId.ID()) { + return fmt.Errorf("`service_plan_id` should only be specified when it differs from the `service_plan_id` of the associated Web App") } + + servicePlanId = newServicePlanId } - servicePlan, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) + servicePlan, err := servicePlanClient.Get(ctx, *servicePlanId) if err != nil { return fmt.Errorf("reading %s: %+v", servicePlanId, err) } + availabilityRequest := web.ResourceNameAvailabilityRequest{ + Name: pointer.To(fmt.Sprintf("%s-%s", id.SiteName, id.SlotName)), + Type: web.CheckNameResourceTypesMicrosoftWebsites, + } + var planSKU *string - if sku := servicePlan.Sku; sku != nil && sku.Name != nil { - planSKU = sku.Name + if model := servicePlan.Model; model != nil { + if sku := model.Sku; sku != nil && sku.Name != nil { + planSKU = sku.Name + } + if ase := model.Properties.HostingEnvironmentProfile; ase != nil { + // Attempt to check the ASE for the appropriate suffix for the name availability request. + // This varies between internal and external ASE Types, and potentially has other names in other clouds + // We use the "internal" as the fallback here, if we can read the ASE, we'll get the full one + nameSuffix := "appserviceenvironment.net" + if ase.Id != nil { + aseId, err := parse.AppServiceEnvironmentID(*ase.Id) + nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) + if err != nil { + metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionAppSlot.Name, servicePlanId) + } else { + existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) + if err != nil { + metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionAppSlot.Name, servicePlanId) + } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { + nameSuffix = *props.DNSSuffix + } + } + } + + availabilityRequest.Name = pointer.To(fmt.Sprintf("%s.%s", functionAppSlot.Name, nameSuffix)) + availabilityRequest.IsFqdn = pointer.To(true) + } + } // Only send for ElasticPremium sendContentSettings := helpers.PlanIsElastic(planSKU) && !functionAppSlot.ForceDisableContentShare @@ -407,35 +445,6 @@ func (r LinuxFunctionAppSlotResource) Create() sdk.ResourceFunc { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - availabilityRequest := web.ResourceNameAvailabilityRequest{ - Name: pointer.To(fmt.Sprintf("%s-%s", id.SiteName, id.SlotName)), - Type: web.CheckNameResourceTypesMicrosoftWebsites, - } - - if ase := servicePlan.HostingEnvironmentProfile; ase != nil { - // Attempt to check the ASE for the appropriate suffix for the name availability request. - // This varies between internal and external ASE Types, and potentially has other names in other clouds - // We use the "internal" as the fallback here, if we can read the ASE, we'll get the full one - nameSuffix := "appserviceenvironment.net" - if ase.ID != nil { - aseId, err := parse.AppServiceEnvironmentID(*ase.ID) - nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) - if err != nil { - metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionAppSlot.Name, servicePlanId) - } else { - existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) - if err != nil { - metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionAppSlot.Name, servicePlanId) - } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { - nameSuffix = *props.DNSSuffix - } - } - } - - availabilityRequest.Name = pointer.To(fmt.Sprintf("%s.%s", functionAppSlot.Name, nameSuffix)) - availabilityRequest.IsFqdn = pointer.To(true) - } - checkName, err := client.CheckNameAvailability(ctx, availabilityRequest) if err != nil { return fmt.Errorf("checking name availability for Linux %s: %+v", id, err) @@ -744,13 +753,17 @@ func (r LinuxFunctionAppSlotResource) Read() sdk.ResourceFunc { if functionApp.SiteProperties == nil || functionApp.SiteProperties.ServerFarmID == nil { return fmt.Errorf("reading parent Function App Service Plan information for Linux %s: %+v", *id, err) } - parentAppFarmId, err := parse.ServicePlanIDInsensitively(*functionApp.SiteProperties.ServerFarmID) + parentAppFarmId, err := commonids.ParseAppServicePlanIDInsensitively(*functionApp.SiteProperties.ServerFarmID) if err != nil { return err } - if slotPlanId := props.ServerFarmID; slotPlanId != nil && parentAppFarmId.ID() != *slotPlanId { - state.ServicePlanID = *slotPlanId + if slotPlanIdRaw := props.ServerFarmID; slotPlanIdRaw != nil && !strings.EqualFold(parentAppFarmId.ID(), *slotPlanIdRaw) { + slotPlanId, err := commonids.ParseAppServicePlanIDInsensitively(*slotPlanIdRaw) + if err != nil { + return err + } + state.ServicePlanID = slotPlanId.ID() } configResp, err := client.GetConfigurationSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) @@ -860,12 +873,12 @@ func (r LinuxFunctionAppSlotResource) Update() sdk.ResourceFunc { if metadata.ResourceData.HasChange("service_plan_id") { o, n := metadata.ResourceData.GetChange("service_plan_id") - oldPlan, err := parse.ServicePlanID(o.(string)) + oldPlan, err := commonids.ParseAppServicePlanID(o.(string)) if err != nil { return err } - newPlan, err := parse.ServicePlanID(n.(string)) + newPlan, err := commonids.ParseAppServicePlanID(n.(string)) if err != nil { return err } @@ -1192,3 +1205,12 @@ func (m *LinuxFunctionAppSlotModel) unpackLinuxFunctionAppSettings(input web.Str m.AppSettings = appSettings } + +func (r LinuxFunctionAppSlotResource) StateUpgraders() sdk.StateUpgradeData { + return sdk.StateUpgradeData{ + SchemaVersion: 1, + Upgraders: map[int]pluginsdk.StateUpgrade{ + 0: migration.LinuxFunctionAppSlotV0toV1{}, + }, + } +} diff --git a/internal/services/appservice/linux_web_app_resource.go b/internal/services/appservice/linux_web_app_resource.go index 6d2515431102..d1dd356a799c 100644 --- a/internal/services/appservice/linux_web_app_resource.go +++ b/internal/services/appservice/linux_web_app_resource.go @@ -17,6 +17,7 @@ import ( "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" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/migration" "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" @@ -70,6 +71,8 @@ var _ sdk.ResourceWithUpdate = LinuxWebAppResource{} var _ sdk.ResourceWithCustomImporter = LinuxWebAppResource{} +var _ sdk.ResourceWithStateMigration = LinuxWebAppResource{} + func (r LinuxWebAppResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "name": { @@ -86,7 +89,7 @@ func (r LinuxWebAppResource) Arguments() map[string]*pluginsdk.Schema { "service_plan_id": { Type: pluginsdk.TypeString, Required: true, - ValidateFunc: validate.ServicePlanID, + ValidateFunc: commonids.ValidateAppServicePlanID, }, // Optional @@ -293,37 +296,48 @@ func (r LinuxWebAppResource) Create() sdk.ResourceFunc { Type: web.CheckNameResourceTypesMicrosoftWebsites, } - servicePlanId, err := parse.ServicePlanID(webApp.ServicePlanId) + sc := webApp.SiteConfig[0] + + servicePlanId, err := commonids.ParseAppServicePlanID(webApp.ServicePlanId) if err != nil { return err } - servicePlan, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) + servicePlan, err := servicePlanClient.Get(ctx, *servicePlanId) if err != nil { return fmt.Errorf("reading %s: %+v", servicePlanId, err) } - if ase := servicePlan.HostingEnvironmentProfile; ase != nil { - // Attempt to check the ASE for the appropriate suffix for the name availability request. - // This varies between internal and external ASE Types, and potentially has other names in other clouds - // We use the "internal" as the fallback here, if we can read the ASE, we'll get the full one - nameSuffix := "appserviceenvironment.net" - if ase.ID != nil { - aseId, err := parse.AppServiceEnvironmentID(*ase.ID) - nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) - if err != nil { - metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", webApp.Name, servicePlanId) - } else { - existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) - if err != nil { - metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", webApp.Name, servicePlanId) - } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { - nameSuffix = *props.DNSSuffix + if servicePlan.Model != nil && servicePlan.Model.Properties != nil { + if servicePlan.Model.Sku != nil && servicePlan.Model.Sku.Name != nil { + if helpers.IsFreeOrSharedServicePlan(*servicePlan.Model.Sku.Name) { + if sc.AlwaysOn { + return fmt.Errorf("always_on cannot be set to true when using Free, F1, D1 Sku") } } } + if ase := servicePlan.Model.Properties.HostingEnvironmentProfile; ase != nil { + // Attempt to check the ASE for the appropriate suffix for the name availability request. + // This varies between internal and external ASE Types, and potentially has other names in other clouds + // We use the "internal" as the fallback here, if we can read the ASE, we'll get the full one + nameSuffix := "appserviceenvironment.net" + if ase.Id != nil { + aseId, err := parse.AppServiceEnvironmentID(*ase.Id) + nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) + if err != nil { + metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", webApp.Name, servicePlanId) + } else { + existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) + if err != nil { + metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", webApp.Name, servicePlanId) + } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { + nameSuffix = *props.DNSSuffix + } + } + } - availabilityRequest.Name = pointer.To(fmt.Sprintf("%s.%s", webApp.Name, nameSuffix)) - availabilityRequest.IsFqdn = pointer.To(true) + availabilityRequest.Name = pointer.To(fmt.Sprintf("%s.%s", webApp.Name, nameSuffix)) + availabilityRequest.IsFqdn = pointer.To(true) + } } checkName, err := client.CheckNameAvailability(ctx, availabilityRequest) @@ -334,16 +348,6 @@ func (r LinuxWebAppResource) Create() sdk.ResourceFunc { return fmt.Errorf("the Site Name %q failed the availability check: %+v", id.SiteName, *checkName.Message) } - sc := webApp.SiteConfig[0] - - if servicePlan.Sku != nil && servicePlan.Sku.Name != nil { - if helpers.IsFreeOrSharedServicePlan(*servicePlan.Sku.Name) { - if sc.AlwaysOn { - return fmt.Errorf("always_on cannot be set to true when using Free, F1, D1 Sku") - } - } - } - siteConfig, err := sc.ExpandForCreate(webApp.AppSettings) if err != nil { return err @@ -607,7 +611,6 @@ func (r LinuxWebAppResource) Read() sdk.ResourceFunc { 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), @@ -627,6 +630,12 @@ func (r LinuxWebAppResource) Read() sdk.ResourceFunc { Tags: tags.ToTypedObject(webApp.Tags), } + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(pointer.From(props.ServerFarmID)) + if err != nil { + return err + } + state.ServicePlanId = servicePlanId.ID() + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { hostingEnvId, err := parse.AppServiceEnvironmentIDInsensitively(*hostingEnv.ID) if err != nil { @@ -760,19 +769,19 @@ func (r LinuxWebAppResource) Update() sdk.ResourceFunc { } } - servicePlanId, err := parse.ServicePlanID(state.ServicePlanId) + servicePlanId, err := commonids.ParseAppServicePlanID(state.ServicePlanId) if err != nil { return err } - servicePlan, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) + servicePlan, err := servicePlanClient.Get(ctx, *servicePlanId) if err != nil { return fmt.Errorf("reading %s: %+v", servicePlanId, err) } sc := state.SiteConfig[0] - if servicePlan.Sku != nil && servicePlan.Sku.Name != nil { - if helpers.IsFreeOrSharedServicePlan(*servicePlan.Sku.Name) { + if servicePlan.Model != nil && servicePlan.Model.Sku != nil && servicePlan.Model.Sku.Name != nil { + if helpers.IsFreeOrSharedServicePlan(*servicePlan.Model.Sku.Name) { if sc.AlwaysOn { return fmt.Errorf("always_on feature has to be turned off before switching to a free/shared Sku") } @@ -1013,19 +1022,28 @@ func (r LinuxWebAppResource) CustomImporter() sdk.ResourceRunFunc { if props.ServerFarmID == nil { return fmt.Errorf("determining Service Plan ID for Linux %s: %+v", id, err) } - servicePlanId, err := parse.ServicePlanID(*props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanID(*props.ServerFarmID) if err != nil { return err } - sp, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) - if err != nil || sp.Kind == nil { + sp, err := servicePlanClient.Get(ctx, *servicePlanId) + if err != nil || sp.Model == nil || sp.Model.Kind == nil { return fmt.Errorf("reading Service Plan for Linux %s: %+v", id, err) } - if !strings.Contains(*sp.Kind, "linux") && !strings.Contains(*sp.Kind, "Linux") { + if !strings.Contains(strings.ToLower(*sp.Model.Kind), "linux") { return fmt.Errorf("specified Service Plan is not a Linux plan") } return nil } } + +func (r LinuxWebAppResource) StateUpgraders() sdk.StateUpgradeData { + return sdk.StateUpgradeData{ + SchemaVersion: 1, + Upgraders: map[int]pluginsdk.StateUpgrade{ + 0: migration.LinuxWebAppV0toV1{}, + }, + } +} diff --git a/internal/services/appservice/linux_web_app_slot_resource.go b/internal/services/appservice/linux_web_app_slot_resource.go index c7605347b05c..d603f5a97c22 100644 --- a/internal/services/appservice/linux_web_app_slot_resource.go +++ b/internal/services/appservice/linux_web_app_slot_resource.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "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/migration" "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" @@ -67,6 +68,8 @@ type LinuxWebAppSlotModel struct { var _ sdk.ResourceWithUpdate = LinuxWebAppSlotResource{} +var _ sdk.ResourceWithStateMigration = LinuxWebAppSlotResource{} + func (r LinuxWebAppSlotResource) ModelObject() interface{} { return &LinuxWebAppSlotModel{} } @@ -99,7 +102,7 @@ func (r LinuxWebAppSlotResource) Arguments() map[string]*pluginsdk.Schema { "service_plan_id": { Type: pluginsdk.TypeString, Optional: true, - ValidateFunc: validate.ServicePlanID, + ValidateFunc: commonids.ValidateAppServicePlanID, }, "app_settings": { @@ -298,18 +301,18 @@ func (r LinuxWebAppSlotResource) Create() sdk.ResourceFunc { return fmt.Errorf("could not determine location for %s: %+v", id, err) } - var servicePlanId *parse.ServicePlanId + var servicePlanId *commonids.AppServicePlanId if webApp.SiteProperties == nil || webApp.SiteProperties.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 = commonids.ParseAppServicePlanID(*webApp.SiteProperties.ServerFarmID) if err != nil { return err } if webAppSlot.ServicePlanID != "" { - newServicePlanId, err := parse.ServicePlanID(webAppSlot.ServicePlanID) + newServicePlanId, err := commonids.ParseAppServicePlanID(webAppSlot.ServicePlanID) if err != nil { return err } @@ -614,12 +617,16 @@ func (r LinuxWebAppSlotResource) Read() sdk.ResourceFunc { state.VirtualNetworkSubnetID = subnetId } - parentAppFarmId, err := parse.ServicePlanIDInsensitively(*webApp.SiteProperties.ServerFarmID) + parentAppFarmId, err := commonids.ParseAppServicePlanIDInsensitively(*webApp.SiteProperties.ServerFarmID) if err != nil { - return err + return fmt.Errorf("reading parent Service Plan ID: %+v", err) } - if slotPlanId := props.ServerFarmID; slotPlanId != nil && !strings.EqualFold(parentAppFarmId.ID(), *slotPlanId) { - state.ServicePlanID = *slotPlanId + if slotPlanIdRaw := props.ServerFarmID; slotPlanIdRaw != nil && *slotPlanIdRaw != "" && !strings.EqualFold(parentAppFarmId.ID(), *slotPlanIdRaw) { + slotPlanId, err := commonids.ParseAppServicePlanIDInsensitively(pointer.From(slotPlanIdRaw)) + if err != nil { + return fmt.Errorf("reading Slot Service Plan ID: %+v", err) + } + state.ServicePlanID = slotPlanId.ID() } if subnetId := pointer.From(props.VirtualNetworkSubnetID); subnetId != "" { @@ -746,18 +753,18 @@ func (r LinuxWebAppSlotResource) Update() sdk.ResourceFunc { if webApp.SiteProperties == nil || webApp.SiteProperties.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 := commonids.ParseAppServicePlanID(*webApp.SiteProperties.ServerFarmID) if err != nil { return err } o, n := metadata.ResourceData.GetChange("service_plan_id") - oldPlan, err := parse.ServicePlanID(o.(string)) + oldPlan, err := commonids.ParseAppServicePlanID(o.(string)) if err != nil { return err } - newPlan, err := parse.ServicePlanID(n.(string)) + newPlan, err := commonids.ParseAppServicePlanID(n.(string)) if err != nil { return err } @@ -971,3 +978,12 @@ func (r LinuxWebAppSlotResource) Update() sdk.ResourceFunc { }, } } + +func (r LinuxWebAppSlotResource) StateUpgraders() sdk.StateUpgradeData { + return sdk.StateUpgradeData{ + SchemaVersion: 1, + Upgraders: map[int]pluginsdk.StateUpgrade{ + 0: migration.LinuxWebAppSlotV0toV1{}, + }, + } +} diff --git a/internal/services/appservice/migration/linux_function_app.go b/internal/services/appservice/migration/linux_function_app.go new file mode 100644 index 000000000000..3c8810489899 --- /dev/null +++ b/internal/services/appservice/migration/linux_function_app.go @@ -0,0 +1,1617 @@ +package migration + +import ( + "context" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type LinuxFunctionAppV0toV1 struct{} + +var _ pluginsdk.StateUpgrade = LinuxFunctionAppV0toV1{} + +func (l LinuxFunctionAppV0toV1) Schema() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "resource_group_name": { + Type: schema.TypeString, + Required: true, + }, + + "location": { + Type: schema.TypeString, + Required: true, + }, + + "service_plan_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "storage_account_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "storage_account_access_key": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "storage_uses_managed_identity": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "storage_key_vault_secret_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_settings": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "auth_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "enabled": { + Type: pluginsdk.TypeBool, + Required: true, + }, + + "additional_login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be unset + }, + + "issuer": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "token_refresh_extension_hours": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "unauthenticated_client_action": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be removed + }, + + "active_directory": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "facebook": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "auth_settings_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "auth_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: `~1`, + }, + + "config_file_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "require_authentication": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "unauthenticated_action": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "RedirectToLoginPage", + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "excluded_paths": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "apple_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "active_directory_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "tenant_auth_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "client_secret_certificate_thumbprint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "jwt_allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "jwt_allowed_client_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "www_authentication_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_identities": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "azure_static_web_app_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "custom_oidc_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "openid_configuration_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "name_claim_type": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "client_credential_method": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "authorisation_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "token_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "issuer_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "certification_uri": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "facebook_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + AtLeastOneOf: []string{ + "auth_settings_v2.0.apple_v2", + "auth_settings_v2.0.active_directory_v2", + "auth_settings_v2.0.azure_static_web_app_v2", + "auth_settings_v2.0.custom_oidc_v2", + "auth_settings_v2.0.facebook_v2", + "auth_settings_v2.0.github_v2", + "auth_settings_v2.0.google_v2", + "auth_settings_v2.0.microsoft_v2", + "auth_settings_v2.0.twitter_v2", + }, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "graph_api_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "login": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Required: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "logout_endpoint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "token_refresh_extension_time": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_sas_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "preserve_url_fragments_for_logins": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "cookie_expiration_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "FixedTime", + }, + + "cookie_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "08:00:00", + }, + + "validate_nonce": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "nonce_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "00:05:00", + }, + }, + }, + }, + + "require_https": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + Description: "Should HTTPS be required on connections? Defaults to true.", + }, + + "http_route_api_prefix": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "/.auth", + }, + + "forward_proxy_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "NoProxy", + }, + + "forward_proxy_custom_host_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "forward_proxy_custom_scheme_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "backup": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "storage_account_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "schedule": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "frequency_interval": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "frequency_unit": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "keep_at_least_one_backup": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 30, + }, + + "start_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "last_execution_time": { + Type: pluginsdk.TypeString, + Computed: true, + Description: "The time the backup was last attempted.", + }, + }, + }, + }, + }, + }, + }, + + "builtin_logging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + Description: "Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting", + }, + + "client_certificate_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + Description: "Should the function app use Client Certificates", + }, + + "client_certificate_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Optional", + }, + + "client_certificate_exclusion_paths": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "connection_string": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "value": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + }, + }, + }, + + "daily_memory_time_quota": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 0, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "content_share_force_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "functions_extension_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "~4", + }, + + "https_only": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "identity": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": { + Type: schema.TypeString, + Required: true, + }, + "identity_ids": { + Type: schema.TypeSet, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "principal_id": { + Type: schema.TypeString, + Computed: true, + }, + "tenant_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + + "key_vault_reference_identity_id": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "public_network_access_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "webdeploy_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "ftp_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "site_config": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "always_on": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "api_management_api_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "api_definition_url": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_command_line": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_scale_limit": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "application_insights_key": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "application_insights_connection_string": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "application_stack": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "dotnet_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "use_dotnet_isolated_runtime": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "python_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "node_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "powershell_core_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*schema.Schema{ + "registry_url": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "registry_username": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "registry_password": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "image_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "image_tag": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "use_custom_runtime": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + }, + }, + }, + + "app_service_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*schema.Schema{ + "disk_quota_mb": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 35, + }, + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + }, + }, + }, + + "container_registry_use_managed_identity": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "container_registry_managed_identity_client_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "default_documents": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "elastic_instance_minimum": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "http2_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "scm_use_main_ip_restriction": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + Description: "Should the Linux Function App `ip_restriction` configuration be used for the SCM also.", + }, + + "scm_ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "load_balancing_mode": { // Supported on Function Apps? + Type: pluginsdk.TypeString, + Optional: true, + Default: "LeastRequests", + }, + + "managed_pipeline_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Integrated", + }, + + "pre_warmed_instance_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, // Variable defaults depending on plan etc + }, + + "remote_debugging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "remote_debugging_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "runtime_scale_monitoring_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "scm_type": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "use_32_bit_worker": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "websockets_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ftps_state": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Disabled", + }, + + "health_check_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "health_check_eviction_time_in_min": { // NOTE: Will evict the only node in single node configurations. + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "worker_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "scm_minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "cors": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "allowed_origins": { + Type: pluginsdk.TypeSet, + Optional: true, + MinItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "support_credentials": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "vnet_route_all_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_logging_enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + + "linux_fx_version": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "sticky_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_setting_names": { + Type: pluginsdk.TypeList, + MinItems: 1, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "connection_string_names": { + Type: pluginsdk.TypeList, + MinItems: 1, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "storage_account": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "share_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "access_key": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "mount_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "tags": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "zip_deploy_file": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + } +} + +func (l LinuxFunctionAppV0toV1) UpgradeFunc() pluginsdk.StateUpgraderFunc { + return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) { + oldId := rawState["service_plan_id"].(string) + parsedId, err := commonids.ParseAppServicePlanIDInsensitively(oldId) + if err != nil { + return nil, err + } + newId := parsedId.ID() + rawState["service_plan_id"] = newId + return rawState, nil + } +} diff --git a/internal/services/appservice/migration/linux_function_app_slot.go b/internal/services/appservice/migration/linux_function_app_slot.go new file mode 100644 index 000000000000..1db5d6ad7777 --- /dev/null +++ b/internal/services/appservice/migration/linux_function_app_slot.go @@ -0,0 +1,1588 @@ +package migration + +import ( + "context" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type LinuxFunctionAppSlotV0toV1 struct{} + +var _ pluginsdk.StateUpgrade = LinuxFunctionAppSlotV0toV1{} + +func (l LinuxFunctionAppSlotV0toV1) Schema() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "function_app_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + }, + + "service_plan_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "storage_account_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "storage_account_access_key": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "storage_uses_managed_identity": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "storage_key_vault_secret_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_settings": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "auth_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "enabled": { + Type: pluginsdk.TypeBool, + Required: true, + }, + + "additional_login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be unset + }, + + "issuer": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "token_refresh_extension_hours": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "unauthenticated_client_action": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be removed + }, + + "active_directory": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "facebook": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "auth_settings_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "auth_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: `~1`, + }, + + "config_file_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "require_authentication": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "unauthenticated_action": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "RedirectToLoginPage", + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "excluded_paths": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "apple_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "active_directory_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "tenant_auth_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "client_secret_certificate_thumbprint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "jwt_allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "jwt_allowed_client_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "www_authentication_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_identities": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "azure_static_web_app_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "custom_oidc_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "openid_configuration_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "name_claim_type": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "client_credential_method": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "authorisation_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "token_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "issuer_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "certification_uri": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "facebook_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + AtLeastOneOf: []string{ + "auth_settings_v2.0.apple_v2", + "auth_settings_v2.0.active_directory_v2", + "auth_settings_v2.0.azure_static_web_app_v2", + "auth_settings_v2.0.custom_oidc_v2", + "auth_settings_v2.0.facebook_v2", + "auth_settings_v2.0.github_v2", + "auth_settings_v2.0.google_v2", + "auth_settings_v2.0.microsoft_v2", + "auth_settings_v2.0.twitter_v2", + }, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "graph_api_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "login": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Required: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "logout_endpoint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "token_refresh_extension_time": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_sas_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "preserve_url_fragments_for_logins": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "cookie_expiration_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "FixedTime", + }, + + "cookie_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "08:00:00", + }, + + "validate_nonce": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "nonce_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "00:05:00", + }, + }, + }, + }, + + "require_https": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + Description: "Should HTTPS be required on connections? Defaults to true.", + }, + + "http_route_api_prefix": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "/.auth", + }, + + "forward_proxy_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "NoProxy", + }, + + "forward_proxy_custom_host_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "forward_proxy_custom_scheme_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "backup": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "storage_account_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "schedule": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "frequency_interval": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "frequency_unit": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "keep_at_least_one_backup": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 30, + }, + + "start_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "last_execution_time": { + Type: pluginsdk.TypeString, + Computed: true, + Description: "The time the backup was last attempted.", + }, + }, + }, + }, + }, + }, + }, + + "builtin_logging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "client_certificate_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "client_certificate_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Optional", + }, + + "client_certificate_exclusion_paths": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "connection_string": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "value": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + }, + }, + }, + + "daily_memory_time_quota": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 0, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "content_share_force_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "functions_extension_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "~4", + }, + + "https_only": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "identity": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": { + Type: schema.TypeString, + Required: true, + }, + "identity_ids": { + Type: schema.TypeSet, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "principal_id": { + Type: schema.TypeString, + Computed: true, + }, + "tenant_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + + "key_vault_reference_identity_id": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "public_network_access_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "webdeploy_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "ftp_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "site_config": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "always_on": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "api_management_api_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "api_definition_url": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_command_line": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_scale_limit": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "application_insights_key": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "application_insights_connection_string": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "application_stack": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "dotnet_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "use_dotnet_isolated_runtime": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "python_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "node_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "powershell_core_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*schema.Schema{ + "registry_url": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "registry_username": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "registry_password": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "image_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "image_tag": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "use_custom_runtime": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + }, + }, + }, + + "app_service_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*schema.Schema{ + "disk_quota_mb": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 35, + }, + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + }, + }, + }, + + "auto_swap_slot_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "container_registry_use_managed_identity": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "container_registry_managed_identity_client_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "default_documents": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "elastic_instance_minimum": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "http2_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "scm_use_main_ip_restriction": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + Description: "Should the Linux Function App `ip_restriction` configuration be used for the SCM also.", + }, + + "scm_ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "load_balancing_mode": { // Supported on Function Apps? + Type: pluginsdk.TypeString, + Optional: true, + Default: "LeastRequests", + }, + + "managed_pipeline_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Integrated", + }, + + "pre_warmed_instance_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, // Variable defaults depending on plan etc + }, + + "remote_debugging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "remote_debugging_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "runtime_scale_monitoring_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "scm_type": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "use_32_bit_worker": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "websockets_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ftps_state": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Disabled", + }, + + "health_check_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "health_check_eviction_time_in_min": { // NOTE: Will evict the only node in single node configurations. + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "worker_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "scm_minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "cors": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "allowed_origins": { + Type: pluginsdk.TypeSet, + Optional: true, + MinItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "support_credentials": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "vnet_route_all_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_logging_enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + + "linux_fx_version": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "storage_account": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "share_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "access_key": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "mount_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "tags": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: commonids.ValidateSubnetID, + }, + } +} + +func (l LinuxFunctionAppSlotV0toV1) UpgradeFunc() pluginsdk.StateUpgraderFunc { + return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) { + oldId := rawState["service_plan_id"].(string) + // service_plan_id can be empty if it is not in a different Service Plan to the "parent" app + if oldId == "" { + return rawState, nil + } + parsedId, err := commonids.ParseAppServicePlanIDInsensitively(oldId) + if err != nil { + return nil, err + } + newId := parsedId.ID() + rawState["service_plan_id"] = newId + return rawState, nil + } +} diff --git a/internal/services/appservice/migration/linux_web_app.go b/internal/services/appservice/migration/linux_web_app.go new file mode 100644 index 000000000000..0c980ba01872 --- /dev/null +++ b/internal/services/appservice/migration/linux_web_app.go @@ -0,0 +1,1770 @@ +package migration + +import ( + "context" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type LinuxWebAppV0toV1 struct{} + +var _ pluginsdk.StateUpgrade = LinuxWebAppV0toV1{} + +func (l LinuxWebAppV0toV1) Schema() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "resource_group_name": { + Type: schema.TypeString, + Required: true, + }, + + "location": { + Type: schema.TypeString, + Required: true, + }, + + "service_plan_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_settings": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "auth_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "enabled": { + Type: pluginsdk.TypeBool, + Required: true, + }, + + "additional_login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be unset + }, + + "issuer": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "token_refresh_extension_hours": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "unauthenticated_client_action": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be removed + }, + + "active_directory": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "facebook": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "auth_settings_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "auth_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: `~1`, + }, + + "config_file_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "require_authentication": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "unauthenticated_action": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "RedirectToLoginPage", + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "excluded_paths": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "apple_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "active_directory_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "tenant_auth_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "client_secret_certificate_thumbprint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "jwt_allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "jwt_allowed_client_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "www_authentication_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_identities": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "azure_static_web_app_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "custom_oidc_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "openid_configuration_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "name_claim_type": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "client_credential_method": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "authorisation_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "token_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "issuer_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "certification_uri": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "facebook_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + AtLeastOneOf: []string{ + "auth_settings_v2.0.apple_v2", + "auth_settings_v2.0.active_directory_v2", + "auth_settings_v2.0.azure_static_web_app_v2", + "auth_settings_v2.0.custom_oidc_v2", + "auth_settings_v2.0.facebook_v2", + "auth_settings_v2.0.github_v2", + "auth_settings_v2.0.google_v2", + "auth_settings_v2.0.microsoft_v2", + "auth_settings_v2.0.twitter_v2", + }, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "graph_api_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "login": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Required: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "logout_endpoint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "token_refresh_extension_time": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_sas_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "preserve_url_fragments_for_logins": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "cookie_expiration_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "FixedTime", + }, + + "cookie_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "08:00:00", + }, + + "validate_nonce": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "nonce_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "00:05:00", + }, + }, + }, + }, + + "require_https": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + Description: "Should HTTPS be required on connections? Defaults to true.", + }, + + "http_route_api_prefix": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "/.auth", + }, + + "forward_proxy_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "NoProxy", + }, + + "forward_proxy_custom_host_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "forward_proxy_custom_scheme_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "backup": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "storage_account_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "schedule": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "frequency_interval": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "frequency_unit": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "keep_at_least_one_backup": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 30, + }, + + "start_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "last_execution_time": { + Type: pluginsdk.TypeString, + Computed: true, + Description: "The time the backup was last attempted.", + }, + }, + }, + }, + }, + }, + }, + + "client_affinity_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "client_certificate_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "client_certificate_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Optional", + }, + + "client_certificate_exclusion_paths": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "connection_string": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "value": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + }, + }, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "https_only": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "identity": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": { + Type: schema.TypeString, + Required: true, + }, + "identity_ids": { + Type: schema.TypeSet, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "principal_id": { + Type: schema.TypeString, + Computed: true, + }, + "tenant_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + + "key_vault_reference_identity_id": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "application_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "file_system_level": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "azure_blob_storage": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "level": { + Type: pluginsdk.TypeString, + Required: true, + }, + "sas_url": { + Type: pluginsdk.TypeString, + Required: true, + }, + "retention_in_days": { + Type: pluginsdk.TypeInt, + Required: true, + }, + }, + }, + }, + }, + }, + }, + + "http_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "file_system": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + ConflictsWith: []string{"logs.0.http_logs.0.azure_blob_storage"}, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "retention_in_mb": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "retention_in_days": { + Type: pluginsdk.TypeInt, + Required: true, + }, + }, + }, + }, + + "azure_blob_storage": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + ConflictsWith: []string{"logs.0.http_logs.0.file_system"}, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "sas_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + "retention_in_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 0, + }, + }, + }, + }, + }, + }, + }, + + "failed_request_tracing": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_messages": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "public_network_access_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "webdeploy_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "ftp_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "site_config": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "always_on": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "api_management_api_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "api_definition_url": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_command_line": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "application_stack": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "dotnet_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "go_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "php_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "python_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "node_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "ruby_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_server": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_server_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_image": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_image_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_image_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_registry_url": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "docker_registry_username": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "docker_registry_password": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + Sensitive: true, + }, + }, + }, + }, + + "auto_heal_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "auto_heal_setting": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "trigger": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "requests": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "status_code": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "status_code_range": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "sub_status": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + + "win32_status_code": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + + "path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "slow_request": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "time_taken": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "action": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "action_type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "minimum_process_execution_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + }, + }, + }, + }, + }, + }, + + "container_registry_use_managed_identity": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "container_registry_managed_identity_client_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "default_documents": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "http2_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "scm_use_main_ip_restriction": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "scm_ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "local_mysql_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "load_balancing_mode": { // Supported on Function Apps? + Type: pluginsdk.TypeString, + Optional: true, + Default: "LeastRequests", + }, + + "managed_pipeline_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Integrated", + }, + + "remote_debugging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "remote_debugging_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "scm_type": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "use_32_bit_worker": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "websockets_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ftps_state": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Disabled", + }, + + "health_check_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "health_check_eviction_time_in_min": { // NOTE: Will evict the only node in single node configurations. + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "worker_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "scm_minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "cors": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "allowed_origins": { + Type: pluginsdk.TypeSet, + Optional: true, + MinItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "support_credentials": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "vnet_route_all_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_logging_enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + + "linux_fx_version": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "sticky_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_setting_names": { + Type: pluginsdk.TypeList, + MinItems: 1, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "connection_string_names": { + Type: pluginsdk.TypeList, + MinItems: 1, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "storage_account": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "share_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "access_key": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "mount_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "tags": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "zip_deploy_file": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + } +} + +func (l LinuxWebAppV0toV1) UpgradeFunc() pluginsdk.StateUpgraderFunc { + return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) { + oldId := rawState["service_plan_id"].(string) + parsedId, err := commonids.ParseAppServicePlanIDInsensitively(oldId) + if err != nil { + return nil, err + } + newId := parsedId.ID() + rawState["service_plan_id"] = newId + return rawState, nil + } +} diff --git a/internal/services/appservice/migration/linux_web_app_slot.go b/internal/services/appservice/migration/linux_web_app_slot.go new file mode 100644 index 000000000000..95234ebc7cb4 --- /dev/null +++ b/internal/services/appservice/migration/linux_web_app_slot.go @@ -0,0 +1,1751 @@ +package migration + +import ( + "context" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type LinuxWebAppSlotV0toV1 struct{} + +var _ pluginsdk.StateUpgrade = LinuxWebAppSlotV0toV1{} + +func (l LinuxWebAppSlotV0toV1) Schema() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "resource_group_name": { + Type: schema.TypeString, + Required: true, + }, + + "location": { + Type: schema.TypeString, + Required: true, + }, + + "service_plan_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_settings": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "auth_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "enabled": { + Type: pluginsdk.TypeBool, + Required: true, + }, + + "additional_login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be unset + }, + + "issuer": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "token_refresh_extension_hours": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "unauthenticated_client_action": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be removed + }, + + "active_directory": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "facebook": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "auth_settings_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "auth_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: `~1`, + }, + + "config_file_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "require_authentication": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "unauthenticated_action": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "RedirectToLoginPage", + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "excluded_paths": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "apple_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "active_directory_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "tenant_auth_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "client_secret_certificate_thumbprint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "jwt_allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "jwt_allowed_client_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "www_authentication_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_identities": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "azure_static_web_app_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "custom_oidc_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "openid_configuration_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "name_claim_type": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "client_credential_method": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "authorisation_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "token_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "issuer_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "certification_uri": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "facebook_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + AtLeastOneOf: []string{ + "auth_settings_v2.0.apple_v2", + "auth_settings_v2.0.active_directory_v2", + "auth_settings_v2.0.azure_static_web_app_v2", + "auth_settings_v2.0.custom_oidc_v2", + "auth_settings_v2.0.facebook_v2", + "auth_settings_v2.0.github_v2", + "auth_settings_v2.0.google_v2", + "auth_settings_v2.0.microsoft_v2", + "auth_settings_v2.0.twitter_v2", + }, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "graph_api_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "login": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Required: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "logout_endpoint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "token_refresh_extension_time": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_sas_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "preserve_url_fragments_for_logins": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "cookie_expiration_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "FixedTime", + }, + + "cookie_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "08:00:00", + }, + + "validate_nonce": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "nonce_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "00:05:00", + }, + }, + }, + }, + + "require_https": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + Description: "Should HTTPS be required on connections? Defaults to true.", + }, + + "http_route_api_prefix": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "/.auth", + }, + + "forward_proxy_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "NoProxy", + }, + + "forward_proxy_custom_host_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "forward_proxy_custom_scheme_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "backup": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "storage_account_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "schedule": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "frequency_interval": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "frequency_unit": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "keep_at_least_one_backup": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 30, + }, + + "start_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "last_execution_time": { + Type: pluginsdk.TypeString, + Computed: true, + Description: "The time the backup was last attempted.", + }, + }, + }, + }, + }, + }, + }, + + "client_affinity_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "client_certificate_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "client_certificate_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Optional", + }, + + "client_certificate_exclusion_paths": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "connection_string": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "value": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + }, + }, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "https_only": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "identity": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": { + Type: schema.TypeString, + Required: true, + }, + "identity_ids": { + Type: schema.TypeSet, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "principal_id": { + Type: schema.TypeString, + Computed: true, + }, + "tenant_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + + "key_vault_reference_identity_id": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "application_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "file_system_level": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "azure_blob_storage": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "level": { + Type: pluginsdk.TypeString, + Required: true, + }, + "sas_url": { + Type: pluginsdk.TypeString, + Required: true, + }, + "retention_in_days": { + Type: pluginsdk.TypeInt, + Required: true, + }, + }, + }, + }, + }, + }, + }, + + "http_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "file_system": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + ConflictsWith: []string{"logs.0.http_logs.0.azure_blob_storage"}, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "retention_in_mb": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "retention_in_days": { + Type: pluginsdk.TypeInt, + Required: true, + }, + }, + }, + }, + + "azure_blob_storage": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + ConflictsWith: []string{"logs.0.http_logs.0.file_system"}, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "sas_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + "retention_in_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 0, + }, + }, + }, + }, + }, + }, + }, + + "failed_request_tracing": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_messages": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "public_network_access_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "webdeploy_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "ftp_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "site_config": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "always_on": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "api_management_api_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "api_definition_url": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_command_line": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "application_stack": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "dotnet_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "go_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "php_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "python_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "node_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "ruby_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_server": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_server_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_image": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_image_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_image_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_registry_url": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "docker_registry_username": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "docker_registry_password": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + Sensitive: true, + }, + }, + }, + }, + + "auto_heal_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "auto_heal_setting": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "trigger": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "requests": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "status_code": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "status_code_range": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "sub_status": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + + "win32_status_code": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + + "path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "slow_request": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "time_taken": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "action": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "action_type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "minimum_process_execution_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + }, + }, + }, + }, + }, + }, + + "container_registry_use_managed_identity": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "container_registry_managed_identity_client_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "default_documents": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "http2_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "scm_use_main_ip_restriction": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "scm_ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "local_mysql_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "load_balancing_mode": { // Supported on Function Apps? + Type: pluginsdk.TypeString, + Optional: true, + Default: "LeastRequests", + }, + + "managed_pipeline_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Integrated", + }, + + "remote_debugging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "remote_debugging_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "scm_type": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "use_32_bit_worker": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "websockets_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ftps_state": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Disabled", + }, + + "health_check_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "health_check_eviction_time_in_min": { // NOTE: Will evict the only node in single node configurations. + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "worker_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "scm_minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "cors": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "allowed_origins": { + Type: pluginsdk.TypeSet, + Optional: true, + MinItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "support_credentials": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "auto_swap_slot_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "vnet_route_all_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_logging_enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + + "linux_fx_version": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "storage_account": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "share_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "access_key": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "mount_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "tags": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "zip_deploy_file": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + } +} + +func (l LinuxWebAppSlotV0toV1) UpgradeFunc() pluginsdk.StateUpgraderFunc { + return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) { + oldId := rawState["service_plan_id"].(string) + if oldId == "" { + return rawState, nil + } + parsedId, err := commonids.ParseAppServicePlanIDInsensitively(oldId) + if err != nil { + return nil, err + } + newId := parsedId.ID() + rawState["service_plan_id"] = newId + return rawState, nil + } +} diff --git a/internal/services/appservice/migration/service_plan.go b/internal/services/appservice/migration/service_plan.go new file mode 100644 index 000000000000..921b976263ed --- /dev/null +++ b/internal/services/appservice/migration/service_plan.go @@ -0,0 +1,96 @@ +package migration + +import ( + "context" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type ServicePlanV0toV1 struct{} + +var _ pluginsdk.StateUpgrade = ServicePlanV0toV1{} + +func (s ServicePlanV0toV1) Schema() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + }, + + "resource_group_name": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + "location": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + "sku_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "os_type": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + }, + + "app_service_environment_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "per_site_scaling_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "worker_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "maximum_elastic_worker_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "zone_balancing_enabled": { + Type: pluginsdk.TypeBool, + ForceNew: true, + Optional: true, + }, + + "tags": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + } +} + +func (s ServicePlanV0toV1) UpgradeFunc() pluginsdk.StateUpgraderFunc { + return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) { + oldId := rawState["id"].(string) + parsedId, err := commonids.ParseAppServicePlanIDInsensitively(oldId) + if err != nil { + return nil, err + } + newId := parsedId.ID() + rawState["id"] = newId + return rawState, nil + } +} diff --git a/internal/services/appservice/migration/windows_function_app.go b/internal/services/appservice/migration/windows_function_app.go new file mode 100644 index 000000000000..18941cddae64 --- /dev/null +++ b/internal/services/appservice/migration/windows_function_app.go @@ -0,0 +1,1568 @@ +package migration + +import ( + "context" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type WindowsFunctionAppV0toV1 struct{} + +var _ pluginsdk.StateUpgrade = WindowsFunctionAppV0toV1{} + +func (w WindowsFunctionAppV0toV1) Schema() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "resource_group_name": { + Type: schema.TypeString, + Required: true, + }, + + "location": { + Type: schema.TypeString, + Required: true, + }, + + "service_plan_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "storage_account_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "storage_account_access_key": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "storage_uses_managed_identity": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "storage_key_vault_secret_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_settings": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "auth_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "enabled": { + Type: pluginsdk.TypeBool, + Required: true, + }, + + "additional_login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be unset + }, + + "issuer": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "token_refresh_extension_hours": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "unauthenticated_client_action": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be removed + }, + + "active_directory": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "facebook": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "auth_settings_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "auth_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: `~1`, + }, + + "config_file_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "require_authentication": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "unauthenticated_action": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "RedirectToLoginPage", + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "excluded_paths": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "apple_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "active_directory_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "tenant_auth_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "client_secret_certificate_thumbprint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "jwt_allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "jwt_allowed_client_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "www_authentication_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_identities": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "azure_static_web_app_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "custom_oidc_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "openid_configuration_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "name_claim_type": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "client_credential_method": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "authorisation_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "token_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "issuer_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "certification_uri": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "facebook_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + AtLeastOneOf: []string{ + "auth_settings_v2.0.apple_v2", + "auth_settings_v2.0.active_directory_v2", + "auth_settings_v2.0.azure_static_web_app_v2", + "auth_settings_v2.0.custom_oidc_v2", + "auth_settings_v2.0.facebook_v2", + "auth_settings_v2.0.github_v2", + "auth_settings_v2.0.google_v2", + "auth_settings_v2.0.microsoft_v2", + "auth_settings_v2.0.twitter_v2", + }, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "graph_api_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "login": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Required: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "logout_endpoint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "token_refresh_extension_time": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_sas_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "preserve_url_fragments_for_logins": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "cookie_expiration_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "FixedTime", + }, + + "cookie_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "08:00:00", + }, + + "validate_nonce": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "nonce_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "00:05:00", + }, + }, + }, + }, + + "require_https": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + Description: "Should HTTPS be required on connections? Defaults to true.", + }, + + "http_route_api_prefix": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "/.auth", + }, + + "forward_proxy_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "NoProxy", + }, + + "forward_proxy_custom_host_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "forward_proxy_custom_scheme_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "backup": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "storage_account_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "schedule": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "frequency_interval": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "frequency_unit": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "keep_at_least_one_backup": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 30, + }, + + "start_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "last_execution_time": { + Type: pluginsdk.TypeString, + Computed: true, + Description: "The time the backup was last attempted.", + }, + }, + }, + }, + }, + }, + }, + + "builtin_logging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + Description: "Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting", + }, + + "client_certificate_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + Description: "Should the function app use Client Certificates", + }, + + "client_certificate_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Optional", + }, + + "client_certificate_exclusion_paths": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "connection_string": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "value": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + }, + }, + }, + + "daily_memory_time_quota": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 0, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "content_share_force_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "functions_extension_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "~4", + }, + + "https_only": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "identity": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": { + Type: schema.TypeString, + Required: true, + }, + "identity_ids": { + Type: schema.TypeSet, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "principal_id": { + Type: schema.TypeString, + Computed: true, + }, + "tenant_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + + "key_vault_reference_identity_id": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "public_network_access_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "webdeploy_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "ftp_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "site_config": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "always_on": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "api_management_api_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "api_definition_url": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_command_line": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_scale_limit": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "application_insights_key": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "application_insights_connection_string": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "application_stack": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "dotnet_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "v4.0", + }, + + "use_dotnet_isolated_runtime": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "node_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "powershell_core_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "use_custom_runtime": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + }, + }, + }, + + "app_service_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*schema.Schema{ + "disk_quota_mb": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 35, + }, + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + }, + }, + }, + + "default_documents": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "elastic_instance_minimum": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "http2_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "scm_use_main_ip_restriction": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "scm_ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "load_balancing_mode": { // Supported on Function Apps? + Type: pluginsdk.TypeString, + Optional: true, + Default: "LeastRequests", + }, + + "managed_pipeline_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Integrated", + }, + + "pre_warmed_instance_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, // Variable defaults depending on plan etc + }, + + "remote_debugging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "remote_debugging_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "runtime_scale_monitoring_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "scm_type": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "use_32_bit_worker": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "websockets_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ftps_state": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Disabled", + }, + + "health_check_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "health_check_eviction_time_in_min": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "worker_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "scm_minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "cors": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "allowed_origins": { + Type: pluginsdk.TypeSet, + Optional: true, + MinItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "support_credentials": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "vnet_route_all_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_logging_enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + + "windows_fx_version": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "sticky_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_setting_names": { + Type: pluginsdk.TypeList, + MinItems: 1, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "connection_string_names": { + Type: pluginsdk.TypeList, + MinItems: 1, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "storage_account": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "share_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "access_key": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "mount_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "tags": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "zip_deploy_file": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + } +} + +func (w WindowsFunctionAppV0toV1) UpgradeFunc() pluginsdk.StateUpgraderFunc { + return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) { + oldId := rawState["service_plan_id"].(string) + parsedId, err := commonids.ParseAppServicePlanIDInsensitively(oldId) + if err != nil { + return nil, err + } + newId := parsedId.ID() + rawState["service_plan_id"] = newId + return rawState, nil + } +} diff --git a/internal/services/appservice/migration/windows_function_app_slot.go b/internal/services/appservice/migration/windows_function_app_slot.go new file mode 100644 index 000000000000..f1a5d6c4da7f --- /dev/null +++ b/internal/services/appservice/migration/windows_function_app_slot.go @@ -0,0 +1,1540 @@ +package migration + +import ( + "context" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type WindowsFunctionAppSlotV0toV1 struct{} + +var _ pluginsdk.StateUpgrade = WindowsFunctionAppSlotV0toV1{} + +func (w WindowsFunctionAppSlotV0toV1) Schema() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "function_app_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + }, + + "service_plan_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "storage_account_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "storage_account_access_key": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "storage_uses_managed_identity": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "storage_key_vault_secret_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_settings": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "auth_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "enabled": { + Type: pluginsdk.TypeBool, + Required: true, + }, + + "additional_login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be unset + }, + + "issuer": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "token_refresh_extension_hours": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "unauthenticated_client_action": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be removed + }, + + "active_directory": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "facebook": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "auth_settings_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "auth_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: `~1`, + }, + + "config_file_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "require_authentication": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "unauthenticated_action": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "RedirectToLoginPage", + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "excluded_paths": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "apple_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "active_directory_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "tenant_auth_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "client_secret_certificate_thumbprint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "jwt_allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "jwt_allowed_client_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "www_authentication_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_identities": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "azure_static_web_app_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "custom_oidc_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "openid_configuration_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "name_claim_type": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "client_credential_method": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "authorisation_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "token_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "issuer_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "certification_uri": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "facebook_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + AtLeastOneOf: []string{ + "auth_settings_v2.0.apple_v2", + "auth_settings_v2.0.active_directory_v2", + "auth_settings_v2.0.azure_static_web_app_v2", + "auth_settings_v2.0.custom_oidc_v2", + "auth_settings_v2.0.facebook_v2", + "auth_settings_v2.0.github_v2", + "auth_settings_v2.0.google_v2", + "auth_settings_v2.0.microsoft_v2", + "auth_settings_v2.0.twitter_v2", + }, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "graph_api_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "login": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Required: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "logout_endpoint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "token_refresh_extension_time": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_sas_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "preserve_url_fragments_for_logins": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "cookie_expiration_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "FixedTime", + }, + + "cookie_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "08:00:00", + }, + + "validate_nonce": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "nonce_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "00:05:00", + }, + }, + }, + }, + + "require_https": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + Description: "Should HTTPS be required on connections? Defaults to true.", + }, + + "http_route_api_prefix": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "/.auth", + }, + + "forward_proxy_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "NoProxy", + }, + + "forward_proxy_custom_host_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "forward_proxy_custom_scheme_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "backup": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "storage_account_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "schedule": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "frequency_interval": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "frequency_unit": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "keep_at_least_one_backup": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 30, + }, + + "start_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "last_execution_time": { + Type: pluginsdk.TypeString, + Computed: true, + Description: "The time the backup was last attempted.", + }, + }, + }, + }, + }, + }, + }, + + "builtin_logging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "client_certificate_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "client_certificate_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Optional", + }, + + "client_certificate_exclusion_paths": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "connection_string": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "value": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + }, + }, + }, + + "daily_memory_time_quota": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 0, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "content_share_force_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "functions_extension_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "~4", + }, + + "https_only": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "identity": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": { + Type: schema.TypeString, + Required: true, + }, + "identity_ids": { + Type: schema.TypeSet, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "principal_id": { + Type: schema.TypeString, + Computed: true, + }, + "tenant_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + + "key_vault_reference_identity_id": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "public_network_access_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "webdeploy_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "ftp_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "site_config": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "always_on": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "api_management_api_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "api_definition_url": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_command_line": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_scale_limit": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "application_insights_key": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "application_insights_connection_string": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "application_stack": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "dotnet_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "v4.0", + }, + + "use_dotnet_isolated_runtime": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "node_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "powershell_core_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "use_custom_runtime": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + }, + }, + }, + + "app_service_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*schema.Schema{ + "disk_quota_mb": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 35, + }, + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + }, + }, + }, + + "auto_swap_slot_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "default_documents": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "elastic_instance_minimum": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "http2_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "scm_use_main_ip_restriction": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + Description: "Should the Linux Function App `ip_restriction` configuration be used for the SCM also.", + }, + + "scm_ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "load_balancing_mode": { // Supported on Function Apps? + Type: pluginsdk.TypeString, + Optional: true, + Default: "LeastRequests", + }, + + "managed_pipeline_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Integrated", + }, + + "pre_warmed_instance_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, // Variable defaults depending on plan etc + }, + + "remote_debugging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "remote_debugging_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "runtime_scale_monitoring_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "scm_type": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "use_32_bit_worker": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "websockets_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ftps_state": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Disabled", + }, + + "health_check_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "health_check_eviction_time_in_min": { // NOTE: Will evict the only node in single node configurations. + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "worker_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "scm_minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "cors": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "allowed_origins": { + Type: pluginsdk.TypeSet, + Optional: true, + MinItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "support_credentials": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "vnet_route_all_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_logging_enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + + "windows_fx_version": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "storage_account": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "share_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "access_key": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "mount_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "tags": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: commonids.ValidateSubnetID, + }, + } +} + +func (w WindowsFunctionAppSlotV0toV1) UpgradeFunc() pluginsdk.StateUpgraderFunc { + return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) { + oldId := rawState["service_plan_id"].(string) + // service_plan_id can be empty if it is not in a different Service Plan to the "parent" app + if oldId == "" { + return rawState, nil + } + parsedId, err := commonids.ParseAppServicePlanIDInsensitively(oldId) + if err != nil { + return nil, err + } + newId := parsedId.ID() + rawState["service_plan_id"] = newId + return rawState, nil + } +} diff --git a/internal/services/appservice/migration/windows_web_app.go b/internal/services/appservice/migration/windows_web_app.go new file mode 100644 index 000000000000..85f0550d01b4 --- /dev/null +++ b/internal/services/appservice/migration/windows_web_app.go @@ -0,0 +1,1860 @@ +package migration + +import ( + "context" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type WindowsWebAppV0toV1 struct{} + +var _ pluginsdk.StateUpgrade = WindowsWebAppV0toV1{} + +func (w WindowsWebAppV0toV1) Schema() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "resource_group_name": { + Type: schema.TypeString, + Required: true, + }, + + "location": { + Type: schema.TypeString, + Required: true, + }, + + "service_plan_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_settings": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "auth_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "enabled": { + Type: pluginsdk.TypeBool, + Required: true, + }, + + "additional_login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be unset + }, + + "issuer": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "token_refresh_extension_hours": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "unauthenticated_client_action": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be removed + }, + + "active_directory": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "facebook": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "auth_settings_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "auth_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: `~1`, + }, + + "config_file_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "require_authentication": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "unauthenticated_action": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "RedirectToLoginPage", + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "excluded_paths": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "apple_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "active_directory_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "tenant_auth_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "client_secret_certificate_thumbprint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "jwt_allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "jwt_allowed_client_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "www_authentication_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_identities": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "azure_static_web_app_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "custom_oidc_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "openid_configuration_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "name_claim_type": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "client_credential_method": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "authorisation_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "token_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "issuer_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "certification_uri": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "facebook_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + AtLeastOneOf: []string{ + "auth_settings_v2.0.apple_v2", + "auth_settings_v2.0.active_directory_v2", + "auth_settings_v2.0.azure_static_web_app_v2", + "auth_settings_v2.0.custom_oidc_v2", + "auth_settings_v2.0.facebook_v2", + "auth_settings_v2.0.github_v2", + "auth_settings_v2.0.google_v2", + "auth_settings_v2.0.microsoft_v2", + "auth_settings_v2.0.twitter_v2", + }, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "graph_api_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "login": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Required: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "logout_endpoint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "token_refresh_extension_time": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_sas_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "preserve_url_fragments_for_logins": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "cookie_expiration_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "FixedTime", + }, + + "cookie_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "08:00:00", + }, + + "validate_nonce": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "nonce_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "00:05:00", + }, + }, + }, + }, + + "require_https": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + Description: "Should HTTPS be required on connections? Defaults to true.", + }, + + "http_route_api_prefix": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "/.auth", + }, + + "forward_proxy_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "NoProxy", + }, + + "forward_proxy_custom_host_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "forward_proxy_custom_scheme_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "backup": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "storage_account_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "schedule": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "frequency_interval": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "frequency_unit": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "keep_at_least_one_backup": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 30, + }, + + "start_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "last_execution_time": { + Type: pluginsdk.TypeString, + Computed: true, + Description: "The time the backup was last attempted.", + }, + }, + }, + }, + }, + }, + }, + + "client_affinity_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "client_certificate_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "client_certificate_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Optional", + }, + + "client_certificate_exclusion_paths": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "connection_string": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "value": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + }, + }, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "https_only": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "identity": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": { + Type: schema.TypeString, + Required: true, + }, + "identity_ids": { + Type: schema.TypeSet, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "principal_id": { + Type: schema.TypeString, + Computed: true, + }, + "tenant_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + + "key_vault_reference_identity_id": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "application_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "file_system_level": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "azure_blob_storage": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "level": { + Type: pluginsdk.TypeString, + Required: true, + }, + "sas_url": { + Type: pluginsdk.TypeString, + Required: true, + }, + "retention_in_days": { + Type: pluginsdk.TypeInt, + Required: true, + }, + }, + }, + }, + }, + }, + }, + + "http_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "file_system": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + ConflictsWith: []string{"logs.0.http_logs.0.azure_blob_storage"}, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "retention_in_mb": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "retention_in_days": { + Type: pluginsdk.TypeInt, + Required: true, + }, + }, + }, + }, + + "azure_blob_storage": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + ConflictsWith: []string{"logs.0.http_logs.0.file_system"}, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "sas_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + "retention_in_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 0, + }, + }, + }, + }, + }, + }, + }, + + "failed_request_tracing": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_messages": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "public_network_access_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "webdeploy_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "ftp_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "site_config": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "always_on": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "api_management_api_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "api_definition_url": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_command_line": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "application_stack": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "dotnet_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "dotnet_core_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "php_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "python": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "node_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_embedded_server_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "tomcat_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_container": { + Type: pluginsdk.TypeString, + Optional: true, + Deprecated: "this property has been deprecated in favour of `tomcat_version` and `java_embedded_server_enabled`", + }, + + "java_container_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_container_registry": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_container_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_container_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_image_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_registry_url": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_registry_username": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_registry_password": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "python_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "current_stack": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + }, + }, + }, + + "auto_heal_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "auto_heal_setting": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "trigger": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "requests": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "private_memory_kb": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + + "status_code": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "status_code_range": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "sub_status": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + + "win32_status_code": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + + "path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "slow_request": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "time_taken": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "action": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "action_type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "custom_action": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "executable": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "parameters": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "minimum_process_execution_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + }, + }, + }, + }, + }, + }, + + "container_registry_use_managed_identity": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "container_registry_managed_identity_client_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "default_documents": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "http2_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "scm_use_main_ip_restriction": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "scm_ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "local_mysql_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "load_balancing_mode": { // Supported on Function Apps? + Type: pluginsdk.TypeString, + Optional: true, + Default: "LeastRequests", + }, + + "managed_pipeline_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Integrated", + }, + + "remote_debugging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "remote_debugging_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "scm_type": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "use_32_bit_worker": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "websockets_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ftps_state": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Disabled", + }, + + "health_check_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "health_check_eviction_time_in_min": { // NOTE: Will evict the only node in single node configurations. + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "worker_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "scm_minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "cors": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "allowed_origins": { + Type: pluginsdk.TypeSet, + Optional: true, + MinItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "support_credentials": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "virtual_application": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "virtual_path": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "physical_path": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "preload": { + Type: pluginsdk.TypeBool, + Required: true, + }, + + "virtual_directory": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "virtual_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "physical_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "vnet_route_all_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_logging_enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + + "windows_fx_version": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "sticky_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_setting_names": { + Type: pluginsdk.TypeList, + MinItems: 1, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "connection_string_names": { + Type: pluginsdk.TypeList, + MinItems: 1, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "storage_account": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "share_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "access_key": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "mount_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "tags": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "zip_deploy_file": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + } +} + +func (w WindowsWebAppV0toV1) UpgradeFunc() pluginsdk.StateUpgraderFunc { + return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) { + oldId := rawState["service_plan_id"].(string) + parsedId, err := commonids.ParseAppServicePlanIDInsensitively(oldId) + if err != nil { + return nil, err + } + newId := parsedId.ID() + rawState["service_plan_id"] = newId + return rawState, nil + } +} diff --git a/internal/services/appservice/migration/windows_web_app_slot.go b/internal/services/appservice/migration/windows_web_app_slot.go new file mode 100644 index 000000000000..e19c919950eb --- /dev/null +++ b/internal/services/appservice/migration/windows_web_app_slot.go @@ -0,0 +1,1816 @@ +package migration + +import ( + "context" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type WindowsWebAppSlotV0toV1 struct{} + +var _ pluginsdk.StateUpgrade = WindowsWebAppSlotV0toV1{} + +func (w WindowsWebAppSlotV0toV1) Schema() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_service_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + }, + + "service_plan_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_settings": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "auth_settings": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "enabled": { + Type: pluginsdk.TypeBool, + Required: true, + }, + + "additional_login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be unset + }, + + "issuer": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "token_refresh_extension_hours": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "unauthenticated_client_action": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, // Once set, cannot be removed + }, + + "active_directory": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "facebook": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "oauth_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "auth_settings_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "auth_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "runtime_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: `~1`, + }, + + "config_file_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "require_authentication": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "unauthenticated_action": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "RedirectToLoginPage", + }, + + "default_provider": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "excluded_paths": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "apple_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "active_directory_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "tenant_auth_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "client_secret_certificate_thumbprint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "jwt_allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "jwt_allowed_client_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "www_authentication_disabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "allowed_groups": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_identities": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_applications": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_parameters": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "azure_static_web_app_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "custom_oidc_v2": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "openid_configuration_endpoint": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "name_claim_type": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "client_credential_method": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "authorisation_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "token_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "issuer_endpoint": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "certification_uri": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "facebook_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + AtLeastOneOf: []string{ + "auth_settings_v2.0.apple_v2", + "auth_settings_v2.0.active_directory_v2", + "auth_settings_v2.0.azure_static_web_app_v2", + "auth_settings_v2.0.custom_oidc_v2", + "auth_settings_v2.0.facebook_v2", + "auth_settings_v2.0.github_v2", + "auth_settings_v2.0.google_v2", + "auth_settings_v2.0.microsoft_v2", + "auth_settings_v2.0.twitter_v2", + }, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "app_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "app_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "graph_api_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "github_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "google_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "microsoft_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "client_id": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "client_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "allowed_audiences": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "login_scopes": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + + "twitter_v2": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "consumer_key": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "consumer_secret_setting_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "login": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Required: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "logout_endpoint": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "token_refresh_extension_time": { + Type: pluginsdk.TypeFloat, + Optional: true, + Default: 72, + }, + + "token_store_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "token_store_sas_setting_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "preserve_url_fragments_for_logins": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "allowed_external_redirect_urls": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "cookie_expiration_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "FixedTime", + }, + + "cookie_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "08:00:00", + }, + + "validate_nonce": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "nonce_expiration_time": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "00:05:00", + }, + }, + }, + }, + + "require_https": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + Description: "Should HTTPS be required on connections? Defaults to true.", + }, + + "http_route_api_prefix": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "/.auth", + }, + + "forward_proxy_convention": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "NoProxy", + }, + + "forward_proxy_custom_host_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "forward_proxy_custom_scheme_header_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "backup": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "storage_account_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "schedule": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "frequency_interval": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "frequency_unit": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "keep_at_least_one_backup": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "retention_period_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 30, + }, + + "start_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "last_execution_time": { + Type: pluginsdk.TypeString, + Computed: true, + Description: "The time the backup was last attempted.", + }, + }, + }, + }, + }, + }, + }, + + "client_affinity_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "client_certificate_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "client_certificate_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Optional", + }, + + "client_certificate_exclusion_paths": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "connection_string": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "value": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + }, + }, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "https_only": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "identity": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "type": { + Type: schema.TypeString, + Required: true, + }, + "identity_ids": { + Type: schema.TypeSet, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "principal_id": { + Type: schema.TypeString, + Computed: true, + }, + "tenant_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + + "key_vault_reference_identity_id": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "application_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "file_system_level": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "azure_blob_storage": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "level": { + Type: pluginsdk.TypeString, + Required: true, + }, + "sas_url": { + Type: pluginsdk.TypeString, + Required: true, + }, + "retention_in_days": { + Type: pluginsdk.TypeInt, + Required: true, + }, + }, + }, + }, + }, + }, + }, + + "http_logs": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "file_system": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + ConflictsWith: []string{"logs.0.http_logs.0.azure_blob_storage"}, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "retention_in_mb": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "retention_in_days": { + Type: pluginsdk.TypeInt, + Required: true, + }, + }, + }, + }, + + "azure_blob_storage": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + ConflictsWith: []string{"logs.0.http_logs.0.file_system"}, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "sas_url": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + "retention_in_days": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 0, + }, + }, + }, + }, + }, + }, + }, + + "failed_request_tracing": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_messages": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "public_network_access_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "webdeploy_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "ftp_publish_basic_authentication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "site_config": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "always_on": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "api_management_api_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "api_definition_url": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "app_command_line": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "application_stack": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "dotnet_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "dotnet_core_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "php_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "python": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "node_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_embedded_server_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + }, + + "tomcat_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_container": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "java_container_version": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_image_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_registry_url": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_registry_username": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "docker_registry_password": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + }, + + "current_stack": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + }, + }, + }, + + "auto_heal_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + + "auto_heal_setting": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "trigger": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "requests": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + }, + }, + }, + + "private_memory_kb": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + + "status_code": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "status_code_range": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "sub_status": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + + "win32_status_code": { + Type: pluginsdk.TypeInt, + Optional: true, + }, + + "path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "slow_request": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "time_taken": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "interval": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "count": { + Type: pluginsdk.TypeInt, + Required: true, + }, + + "path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "action": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "action_type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "custom_action": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "executable": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "parameters": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "minimum_process_execution_time": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + }, + }, + }, + }, + }, + }, + + "auto_swap_slot_name": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "container_registry_use_managed_identity": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "container_registry_managed_identity_client_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "default_documents": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "http2_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "scm_use_main_ip_restriction": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "scm_ip_restriction": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_address": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "service_tag": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "name": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "priority": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 65000, + }, + + "action": { + Type: pluginsdk.TypeString, + Default: "Allow", + Optional: true, + }, + + "headers": { + Type: pluginsdk.TypeList, + MaxItems: 1, + Optional: true, + ConfigMode: pluginsdk.SchemaConfigModeAttr, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "x_forwarded_host": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_forwarded_for": { + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_azure_fdid": { // Front Door ID (UUID) + Type: pluginsdk.TypeList, + MaxItems: 8, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "x_fd_health_probe": { // 1 or absent + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "local_mysql_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "load_balancing_mode": { // Supported on Function Apps? + Type: pluginsdk.TypeString, + Optional: true, + Default: "LeastRequests", + }, + + "managed_pipeline_mode": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Integrated", + }, + + "remote_debugging_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "remote_debugging_version": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + + "scm_type": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "use_32_bit_worker": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "websockets_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "ftps_state": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Disabled", + }, + + "health_check_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "health_check_eviction_time_in_min": { // NOTE: Will evict the only node in single node configurations. + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "worker_count": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + }, + + "minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "scm_minimum_tls_version": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "1.2", + }, + + "cors": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "allowed_origins": { + Type: pluginsdk.TypeSet, + Optional: true, + MinItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "support_credentials": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + }, + + "virtual_application": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "virtual_path": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "physical_path": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "preload": { + Type: pluginsdk.TypeBool, + Required: true, + }, + + "virtual_directory": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "virtual_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "physical_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + }, + }, + }, + + "vnet_route_all_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "detailed_error_logging_enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + + "windows_fx_version": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "storage_account": { + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "share_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "access_key": { + Type: pluginsdk.TypeString, + Required: true, + Sensitive: true, + }, + + "mount_path": { + Type: pluginsdk.TypeString, + Optional: true, + }, + }, + }, + }, + + "tags": { + Type: pluginsdk.TypeMap, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + }, + + "zip_deploy_file": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + }, + } +} + +func (w WindowsWebAppSlotV0toV1) UpgradeFunc() pluginsdk.StateUpgraderFunc { + return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) { + oldId := rawState["service_plan_id"].(string) + // service_plan_id can be empty if it is not in a different Service Plan to the "parent" app + if oldId == "" { + return rawState, nil + } + parsedId, err := commonids.ParseAppServicePlanIDInsensitively(oldId) + if err != nil { + return nil, err + } + newId := parsedId.ID() + rawState["service_plan_id"] = newId + return rawState, nil + } +} diff --git a/internal/services/appservice/parse/service_plan.go b/internal/services/appservice/parse/service_plan.go deleted file mode 100644 index 9ededc951436..000000000000 --- a/internal/services/appservice/parse/service_plan.go +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package parse - -// NOTE: this file is generated via 'go:generate' - manual changes will be overwritten - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -type ServicePlanId struct { - SubscriptionId string - ResourceGroup string - ServerfarmName string -} - -func NewServicePlanID(subscriptionId, resourceGroup, serverfarmName string) ServicePlanId { - return ServicePlanId{ - SubscriptionId: subscriptionId, - ResourceGroup: resourceGroup, - ServerfarmName: serverfarmName, - } -} - -func (id ServicePlanId) String() string { - segments := []string{ - fmt.Sprintf("Serverfarm Name %q", id.ServerfarmName), - fmt.Sprintf("Resource Group %q", id.ResourceGroup), - } - segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "Service Plan", segmentsStr) -} - -func (id ServicePlanId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/serverfarms/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroup, id.ServerfarmName) -} - -// ServicePlanID parses a ServicePlan ID into an ServicePlanId struct -func ServicePlanID(input string) (*ServicePlanId, error) { - id, err := resourceids.ParseAzureResourceID(input) - if err != nil { - return nil, fmt.Errorf("parsing %q as an ServicePlan ID: %+v", input, err) - } - - resourceId := ServicePlanId{ - SubscriptionId: id.SubscriptionID, - ResourceGroup: id.ResourceGroup, - } - - if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") - } - - if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") - } - - if resourceId.ServerfarmName, err = id.PopSegment("serverfarms"); err != nil { - return nil, err - } - - if err := id.ValidateNoEmptySegments(input); err != nil { - return nil, err - } - - return &resourceId, nil -} - -// ServicePlanIDInsensitively parses an ServicePlan ID into an ServicePlanId struct, insensitively -// This should only be used to parse an ID for rewriting, the ServicePlanID -// method should be used instead for validation etc. -// -// Whilst this may seem strange, this enables Terraform have consistent casing -// which works around issues in Core, whilst handling broken API responses. -func ServicePlanIDInsensitively(input string) (*ServicePlanId, error) { - id, err := resourceids.ParseAzureResourceID(input) - if err != nil { - return nil, err - } - - resourceId := ServicePlanId{ - SubscriptionId: id.SubscriptionID, - ResourceGroup: id.ResourceGroup, - } - - if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") - } - - if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") - } - - // find the correct casing for the 'serverfarms' segment - serverfarmsKey := "serverfarms" - for key := range id.Path { - if strings.EqualFold(key, serverfarmsKey) { - serverfarmsKey = key - break - } - } - if resourceId.ServerfarmName, err = id.PopSegment(serverfarmsKey); err != nil { - return nil, err - } - - if err := id.ValidateNoEmptySegments(input); err != nil { - return nil, err - } - - return &resourceId, nil -} diff --git a/internal/services/appservice/parse/service_plan_test.go b/internal/services/appservice/parse/service_plan_test.go deleted file mode 100644 index 1be5f8416133..000000000000 --- a/internal/services/appservice/parse/service_plan_test.go +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package parse - -// NOTE: this file is generated via 'go:generate' - manual changes will be overwritten - -import ( - "testing" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -var _ resourceids.Id = ServicePlanId{} - -func TestServicePlanIDFormatter(t *testing.T) { - actual := NewServicePlanID("12345678-1234-9876-4563-123456789012", "resGroup1", "farm1").ID() - expected := "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverfarms/farm1" - if actual != expected { - t.Fatalf("Expected %q but got %q", expected, actual) - } -} - -func TestServicePlanID(t *testing.T) { - testData := []struct { - Input string - Error bool - Expected *ServicePlanId - }{ - - { - // empty - Input: "", - Error: true, - }, - - { - // missing SubscriptionId - Input: "/", - Error: true, - }, - - { - // missing value for SubscriptionId - Input: "/subscriptions/", - Error: true, - }, - - { - // missing ResourceGroup - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/", - Error: true, - }, - - { - // missing value for ResourceGroup - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/", - Error: true, - }, - - { - // missing ServerfarmName - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/", - Error: true, - }, - - { - // missing value for ServerfarmName - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverfarms/", - Error: true, - }, - - { - // valid - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverfarms/farm1", - Expected: &ServicePlanId{ - SubscriptionId: "12345678-1234-9876-4563-123456789012", - ResourceGroup: "resGroup1", - ServerfarmName: "farm1", - }, - }, - - { - // upper-cased - Input: "/SUBSCRIPTIONS/12345678-1234-9876-4563-123456789012/RESOURCEGROUPS/RESGROUP1/PROVIDERS/MICROSOFT.WEB/SERVERFARMS/FARM1", - Error: true, - }, - } - - for _, v := range testData { - t.Logf("[DEBUG] Testing %q", v.Input) - - actual, err := ServicePlanID(v.Input) - if err != nil { - if v.Error { - continue - } - - t.Fatalf("Expect a value but got an error: %s", err) - } - if v.Error { - t.Fatal("Expect an error but didn't get one") - } - - if actual.SubscriptionId != v.Expected.SubscriptionId { - t.Fatalf("Expected %q but got %q for SubscriptionId", v.Expected.SubscriptionId, actual.SubscriptionId) - } - if actual.ResourceGroup != v.Expected.ResourceGroup { - t.Fatalf("Expected %q but got %q for ResourceGroup", v.Expected.ResourceGroup, actual.ResourceGroup) - } - if actual.ServerfarmName != v.Expected.ServerfarmName { - t.Fatalf("Expected %q but got %q for ServerfarmName", v.Expected.ServerfarmName, actual.ServerfarmName) - } - } -} - -func TestServicePlanIDInsensitively(t *testing.T) { - testData := []struct { - Input string - Error bool - Expected *ServicePlanId - }{ - - { - // empty - Input: "", - Error: true, - }, - - { - // missing SubscriptionId - Input: "/", - Error: true, - }, - - { - // missing value for SubscriptionId - Input: "/subscriptions/", - Error: true, - }, - - { - // missing ResourceGroup - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/", - Error: true, - }, - - { - // missing value for ResourceGroup - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/", - Error: true, - }, - - { - // missing ServerfarmName - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/", - Error: true, - }, - - { - // missing value for ServerfarmName - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverfarms/", - Error: true, - }, - - { - // valid - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverfarms/farm1", - Expected: &ServicePlanId{ - SubscriptionId: "12345678-1234-9876-4563-123456789012", - ResourceGroup: "resGroup1", - ServerfarmName: "farm1", - }, - }, - - { - // lower-cased segment names - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverfarms/farm1", - Expected: &ServicePlanId{ - SubscriptionId: "12345678-1234-9876-4563-123456789012", - ResourceGroup: "resGroup1", - ServerfarmName: "farm1", - }, - }, - - { - // upper-cased segment names - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/SERVERFARMS/farm1", - Expected: &ServicePlanId{ - SubscriptionId: "12345678-1234-9876-4563-123456789012", - ResourceGroup: "resGroup1", - ServerfarmName: "farm1", - }, - }, - - { - // mixed-cased segment names - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/SeRvErFaRmS/farm1", - Expected: &ServicePlanId{ - SubscriptionId: "12345678-1234-9876-4563-123456789012", - ResourceGroup: "resGroup1", - ServerfarmName: "farm1", - }, - }, - } - - for _, v := range testData { - t.Logf("[DEBUG] Testing %q", v.Input) - - actual, err := ServicePlanIDInsensitively(v.Input) - if err != nil { - if v.Error { - continue - } - - t.Fatalf("Expect a value but got an error: %s", err) - } - if v.Error { - t.Fatal("Expect an error but didn't get one") - } - - if actual.SubscriptionId != v.Expected.SubscriptionId { - t.Fatalf("Expected %q but got %q for SubscriptionId", v.Expected.SubscriptionId, actual.SubscriptionId) - } - if actual.ResourceGroup != v.Expected.ResourceGroup { - t.Fatalf("Expected %q but got %q for ResourceGroup", v.Expected.ResourceGroup, actual.ResourceGroup) - } - if actual.ServerfarmName != v.Expected.ServerfarmName { - t.Fatalf("Expected %q but got %q for ServerfarmName", v.Expected.ServerfarmName, actual.ServerfarmName) - } - } -} diff --git a/internal/services/appservice/resourceids.go b/internal/services/appservice/resourceids.go index f2d9903a055b..f8b92f88da8b 100644 --- a/internal/services/appservice/resourceids.go +++ b/internal/services/appservice/resourceids.go @@ -12,4 +12,4 @@ package appservice //go:generate go run ../../tools/generator-resource-id/main.go -path=./ -name=AppHybridConnection -id=/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1/hybridConnectionNamespaces/hybridConnectionNamespace1/relays/relay1 // @tombuildsstuff: this Resource is going to need a State Migration `serverfarms` -> `serverFarms` -//go:generate go run ../../tools/generator-resource-id/main.go -path=./ -name=ServicePlan -id=/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverfarms/farm1 -rewrite=true +// //go:generate go run ../../tools/generator-resource-id/main.go -path=./ -name=ServicePlan -id=/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverfarms/farm1 -rewrite=true diff --git a/internal/services/appservice/service_plan_data_source.go b/internal/services/appservice/service_plan_data_source.go index f8129efd6bb0..55fa8e01380f 100644 --- a/internal/services/appservice/service_plan_data_source.go +++ b/internal/services/appservice/service_plan_data_source.go @@ -8,10 +8,12 @@ import ( "fmt" "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/terraform-provider-azurerm/internal/sdk" - "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" @@ -123,50 +125,52 @@ func (r ServicePlanDataSource) Read() sdk.ResourceFunc { return err } - id := parse.NewServicePlanID(subscriptionId, servicePlan.ResourceGroup, servicePlan.Name) + id := commonids.NewAppServicePlanID(subscriptionId, servicePlan.ResourceGroup, servicePlan.Name) - existing, err := client.Get(ctx, id.ResourceGroup, id.ServerfarmName) + existing, err := client.Get(ctx, id) if err != nil { - if utils.ResponseWasNotFound(existing.Response) { + if response.WasNotFound(existing.HttpResponse) { return fmt.Errorf("%s not found", id) } return fmt.Errorf("retrieving %s: %+v", id, err) } - servicePlan.Location = location.NormalizeNilable(existing.Location) - servicePlan.Kind = utils.NormalizeNilableString(existing.Kind) + if model := existing.Model; model != nil { + servicePlan.Location = location.Normalize(model.Location) + servicePlan.Kind = pointer.From(model.Kind) - if sku := existing.Sku; sku != nil { - if sku.Name != nil { - servicePlan.Sku = *sku.Name - if sku.Capacity != nil { - servicePlan.WorkerCount = int(*sku.Capacity) + if sku := model.Sku; sku != nil { + if sku.Name != nil { + servicePlan.Sku = *sku.Name + if sku.Capacity != nil { + servicePlan.WorkerCount = int(*sku.Capacity) + } } } - } - if props := existing.AppServicePlanProperties; props != nil { - servicePlan.OSType = OSTypeWindows - if props.HyperV != nil && *props.HyperV { - servicePlan.OSType = OSTypeWindowsContainer - } - if props.Reserved != nil && *props.Reserved { - servicePlan.OSType = OSTypeLinux - } + if props := model.Properties; props != nil { + servicePlan.OSType = OSTypeWindows + if props.HyperV != nil && *props.HyperV { + servicePlan.OSType = OSTypeWindowsContainer + } + if props.Reserved != nil && *props.Reserved { + servicePlan.OSType = OSTypeLinux + } - if props.HostingEnvironmentProfile != nil && props.HostingEnvironmentProfile.ID != nil { - servicePlan.AppServiceEnvironmentId = utils.NormalizeNilableString(props.HostingEnvironmentProfile.ID) - } + if props.HostingEnvironmentProfile != nil && props.HostingEnvironmentProfile.Id != nil { + servicePlan.AppServiceEnvironmentId = utils.NormalizeNilableString(props.HostingEnvironmentProfile.Id) + } - servicePlan.PerSiteScaling = utils.NormaliseNilableBool(props.PerSiteScaling) + servicePlan.PerSiteScaling = utils.NormaliseNilableBool(props.PerSiteScaling) - servicePlan.Reserved = utils.NormaliseNilableBool(props.Reserved) + servicePlan.Reserved = utils.NormaliseNilableBool(props.Reserved) - servicePlan.ZoneBalancing = utils.NormaliseNilableBool(props.ZoneRedundant) + servicePlan.ZoneBalancing = utils.NormaliseNilableBool(props.ZoneRedundant) - servicePlan.MaximumElasticWorkerCount = int(utils.NormaliseNilableInt32(props.MaximumElasticWorkerCount)) + servicePlan.MaximumElasticWorkerCount = int(pointer.From(props.MaximumElasticWorkerCount)) + } + servicePlan.Tags = pointer.From(model.Tags) } - servicePlan.Tags = tags.ToTypedObject(existing.Tags) metadata.SetID(id) diff --git a/internal/services/appservice/service_plan_resource.go b/internal/services/appservice/service_plan_resource.go index b0a941d20305..ef59584bb3e0 100644 --- a/internal/services/appservice/service_plan_resource.go +++ b/internal/services/appservice/service_plan_resource.go @@ -9,24 +9,29 @@ import ( "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-sdk/resource-manager/web/2023-01-01/appserviceplans" "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/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/validate" webValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/web/validate" "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 ServicePlanResource struct{} var _ sdk.ResourceWithUpdate = ServicePlanResource{} +var _ sdk.ResourceWithStateMigration = ServicePlanResource{} + type OSType string const ( @@ -153,36 +158,36 @@ func (r ServicePlanResource) Create() sdk.ResourceFunc { client := metadata.Client.AppService.ServicePlanClient subscriptionId := metadata.Client.Account.SubscriptionId - id := parse.NewServicePlanID(subscriptionId, servicePlan.ResourceGroup, servicePlan.Name) + id := commonids.NewAppServicePlanID(subscriptionId, servicePlan.ResourceGroup, servicePlan.Name) - existing, err := client.Get(ctx, id.ResourceGroup, id.ServerfarmName) - if err != nil && !utils.ResponseWasNotFound(existing.Response) { + existing, err := client.Get(ctx, id) + if err != nil && !response.WasNotFound(existing.HttpResponse) { return fmt.Errorf("retreiving %s: %v", id, err) } - if !utils.ResponseWasNotFound(existing.Response) { + if !response.WasNotFound(existing.HttpResponse) { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - appServicePlan := web.AppServicePlan{ - AppServicePlanProperties: &web.AppServicePlanProperties{ + appServicePlan := appserviceplans.AppServicePlan{ + Properties: &appserviceplans.AppServicePlanProperties{ PerSiteScaling: utils.Bool(servicePlan.PerSiteScaling), Reserved: utils.Bool(servicePlan.OSType == OSTypeLinux), HyperV: utils.Bool(servicePlan.OSType == OSTypeWindowsContainer), ZoneRedundant: utils.Bool(servicePlan.ZoneBalancing), }, - Sku: &web.SkuDescription{ - Name: utils.String(servicePlan.Sku), + Sku: &appserviceplans.SkuDescription{ + Name: pointer.To(servicePlan.Sku), }, - Location: utils.String(location.Normalize(servicePlan.Location)), - Tags: tags.FromTypedObject(servicePlan.Tags), + Location: location.Normalize(servicePlan.Location), + Tags: pointer.To(servicePlan.Tags), } if servicePlan.AppServiceEnvironmentId != "" { if !strings.HasPrefix(servicePlan.Sku, "I") { return fmt.Errorf("App Service Environment based Service Plans can only be used with Isolated SKUs") } - appServicePlan.AppServicePlanProperties.HostingEnvironmentProfile = &web.HostingEnvironmentProfile{ - ID: utils.String(servicePlan.AppServiceEnvironmentId), + appServicePlan.Properties.HostingEnvironmentProfile = &appserviceplans.HostingEnvironmentProfile{ + Id: utils.String(servicePlan.AppServiceEnvironmentId), } } @@ -190,22 +195,17 @@ func (r ServicePlanResource) Create() sdk.ResourceFunc { if !isServicePlanSupportScaleOut(servicePlan.Sku) { return fmt.Errorf("`maximum_elastic_worker_count` can only be specified with Elastic Premium Skus") } - appServicePlan.AppServicePlanProperties.MaximumElasticWorkerCount = utils.Int32(int32(servicePlan.MaximumElasticWorkerCount)) + appServicePlan.Properties.MaximumElasticWorkerCount = pointer.To(int64(servicePlan.MaximumElasticWorkerCount)) } if servicePlan.WorkerCount != 0 { - appServicePlan.Sku.Capacity = utils.Int32(int32(servicePlan.WorkerCount)) + appServicePlan.Sku.Capacity = pointer.To(int64(servicePlan.WorkerCount)) } - future, err := client.CreateOrUpdate(ctx, id.ResourceGroup, id.ServerfarmName, appServicePlan) - if err != nil { + if err := client.CreateOrUpdateThenPoll(ctx, id, appServicePlan); err != nil { return fmt.Errorf("creating %s: %v", id, err) } - if err := future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waitng for creation of %s: %v", id, err) - } - metadata.SetID(id) return nil @@ -218,59 +218,62 @@ func (r ServicePlanResource) Read() sdk.ResourceFunc { Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.AppService.ServicePlanClient - id, err := parse.ServicePlanID(metadata.ResourceData.Id()) + id, err := commonids.ParseAppServicePlanID(metadata.ResourceData.Id()) if err != nil { return err } - servicePlan, err := client.Get(ctx, id.ResourceGroup, id.ServerfarmName) + servicePlan, err := client.Get(ctx, *id) if err != nil { - if utils.ResponseWasNotFound(servicePlan.Response) { + if response.WasNotFound(servicePlan.HttpResponse) { return metadata.MarkAsGone(id) } return fmt.Errorf("reading %s: %+v", id, err) } state := ServicePlanModel{ - Name: id.ServerfarmName, - ResourceGroup: id.ResourceGroup, - Location: location.NormalizeNilable(servicePlan.Location), - Kind: utils.NormalizeNilableString(servicePlan.Kind), + Name: id.ServerFarmName, + ResourceGroup: id.ResourceGroupName, } - // sku read - if sku := servicePlan.Sku; sku != nil { - if sku.Name != nil { - state.Sku = *sku.Name - if sku.Capacity != nil { - state.WorkerCount = int(*sku.Capacity) + if model := servicePlan.Model; model != nil { + state.Location = location.Normalize(model.Location) + state.Kind = pointer.From(model.Kind) + + // sku read + if sku := model.Sku; sku != nil { + if sku.Name != nil { + state.Sku = *sku.Name + if sku.Capacity != nil { + state.WorkerCount = int(*sku.Capacity) + } } } - } - // props read - if props := servicePlan.AppServicePlanProperties; props != nil { - state.OSType = OSTypeWindows - if props.HyperV != nil && *props.HyperV { - state.OSType = OSTypeWindowsContainer - } - if props.Reserved != nil && *props.Reserved { - state.OSType = OSTypeLinux - } + // props read + if props := model.Properties; props != nil { + state.OSType = OSTypeWindows + if props.HyperV != nil && *props.HyperV { + state.OSType = OSTypeWindowsContainer + } + if props.Reserved != nil && *props.Reserved { + state.OSType = OSTypeLinux + } - if ase := props.HostingEnvironmentProfile; ase != nil && ase.ID != nil { - state.AppServiceEnvironmentId = *ase.ID - } + if ase := props.HostingEnvironmentProfile; ase != nil && ase.Id != nil { + state.AppServiceEnvironmentId = *ase.Id + } - state.PerSiteScaling = utils.NormaliseNilableBool(props.PerSiteScaling) + state.PerSiteScaling = utils.NormaliseNilableBool(props.PerSiteScaling) - state.Reserved = utils.NormaliseNilableBool(props.Reserved) + state.Reserved = utils.NormaliseNilableBool(props.Reserved) - state.ZoneBalancing = utils.NormaliseNilableBool(props.ZoneRedundant) + state.ZoneBalancing = utils.NormaliseNilableBool(props.ZoneRedundant) - state.MaximumElasticWorkerCount = int(utils.NormaliseNilableInt32(props.MaximumElasticWorkerCount)) + state.MaximumElasticWorkerCount = int(pointer.From(props.MaximumElasticWorkerCount)) + } + state.Tags = pointer.From(model.Tags) } - state.Tags = tags.ToTypedObject(servicePlan.Tags) return metadata.Encode(&state) }, @@ -281,7 +284,7 @@ func (r ServicePlanResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 60 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - id, err := parse.ServicePlanID(metadata.ResourceData.Id()) + id, err := commonids.ParseAppServicePlanID(metadata.ResourceData.Id()) if err != nil { return err } @@ -289,7 +292,7 @@ func (r ServicePlanResource) Delete() sdk.ResourceFunc { client := metadata.Client.AppService.ServicePlanClient metadata.Logger.Infof("deleting %s", id) - if _, err := client.Delete(ctx, id.ResourceGroup, id.ServerfarmName); err != nil { + if _, err := client.Delete(ctx, *id); err != nil { return fmt.Errorf("deleting %s: %v", id, err) } @@ -299,14 +302,14 @@ func (r ServicePlanResource) Delete() sdk.ResourceFunc { } func (r ServicePlanResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { - return validate.ServicePlanID + return commonids.ValidateAppServicePlanID } func (r ServicePlanResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 60 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - id, err := parse.ServicePlanID(metadata.ResourceData.Id()) + id, err := commonids.ParseAppServicePlanID(metadata.ResourceData.Id()) if err != nil { return err } @@ -318,43 +321,40 @@ func (r ServicePlanResource) Update() sdk.ResourceFunc { return fmt.Errorf("decoding: %+v", err) } - existing, err := client.Get(ctx, id.ResourceGroup, id.ServerfarmName) + existing, err := client.Get(ctx, *id) if err != nil { return fmt.Errorf("reading %s: %+v", id, err) } + model := *existing.Model + if metadata.ResourceData.HasChange("per_site_scaling_enabled") { - existing.AppServicePlanProperties.PerSiteScaling = utils.Bool(state.PerSiteScaling) + model.Properties.PerSiteScaling = utils.Bool(state.PerSiteScaling) } if metadata.ResourceData.HasChange("sku_name") { - existing.Sku.Name = utils.String(state.Sku) + model.Sku.Name = utils.String(state.Sku) } if metadata.ResourceData.HasChange("tags") { - existing.Tags = tags.FromTypedObject(state.Tags) + model.Tags = pointer.To(state.Tags) } if metadata.ResourceData.HasChange("worker_count") { - existing.Sku.Capacity = utils.Int32(int32(state.WorkerCount)) + model.Sku.Capacity = pointer.To(int64(state.WorkerCount)) } if metadata.ResourceData.HasChange("maximum_elastic_worker_count") { if metadata.ResourceData.HasChange("maximum_elastic_worker_count") && !isServicePlanSupportScaleOut(state.Sku) { return fmt.Errorf("`maximum_elastic_worker_count` can only be specified with Elastic Premium Skus") } - existing.AppServicePlanProperties.MaximumElasticWorkerCount = utils.Int32(int32(state.MaximumElasticWorkerCount)) + model.Properties.MaximumElasticWorkerCount = pointer.To(int64(state.MaximumElasticWorkerCount)) } - future, err := client.CreateOrUpdate(ctx, id.ResourceGroup, id.ServerfarmName, existing) - if err != nil { + if err = client.CreateOrUpdateThenPoll(ctx, *id, model); err != nil { return fmt.Errorf("updating %s: %+v", id, err) } - if err := future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for update to %s: %+v", id, err) - } - return nil }, } @@ -367,3 +367,12 @@ func isServicePlanSupportScaleOut(plan string) bool { support = support || strings.HasPrefix(plan, "WS") return support } + +func (r ServicePlanResource) StateUpgraders() sdk.StateUpgradeData { + return sdk.StateUpgradeData{ + SchemaVersion: 1, + Upgraders: map[int]pluginsdk.StateUpgrade{ + 0: migration.ServicePlanV0toV1{}, + }, + } +} diff --git a/internal/services/appservice/service_plan_resource_test.go b/internal/services/appservice/service_plan_resource_test.go index 4a5cb196ee97..a417bf23d4a6 100644 --- a/internal/services/appservice/service_plan_resource_test.go +++ b/internal/services/appservice/service_plan_resource_test.go @@ -8,10 +8,11 @@ import ( "fmt" "testing" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -196,19 +197,19 @@ func TestAccServicePlanIsolated_appServiceEnvironmentV3(t *testing.T) { } func (r ServicePlanResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := parse.ServicePlanID(state.ID) + id, err := commonids.ParseAppServicePlanID(state.ID) if err != nil { return nil, err } - resp, err := client.AppService.ServicePlanClient.Get(ctx, id.ResourceGroup, id.ServerfarmName) + resp, err := client.AppService.ServicePlanClient.Get(ctx, *id) if err != nil { - if utils.ResponseWasNotFound(resp.Response) { + if response.WasNotFound(resp.HttpResponse) { return utils.Bool(false), nil } return nil, fmt.Errorf("retreiving %s: %v", id, err) } - if utils.ResponseWasNotFound(resp.Response) { + if response.WasNotFound(resp.HttpResponse) { return utils.Bool(false), nil } return utils.Bool(true), nil diff --git a/internal/services/appservice/validate/service_plan_id.go b/internal/services/appservice/validate/service_plan_id.go deleted file mode 100644 index cde7453bd32a..000000000000 --- a/internal/services/appservice/validate/service_plan_id.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package validate - -// NOTE: this file is generated via 'go:generate' - manual changes will be overwritten - -import ( - "fmt" - - "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/parse" -) - -func ServicePlanID(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 := parse.ServicePlanID(v); err != nil { - errors = append(errors, err) - } - - return -} diff --git a/internal/services/appservice/validate/service_plan_id_test.go b/internal/services/appservice/validate/service_plan_id_test.go deleted file mode 100644 index 60b1939d0eb1..000000000000 --- a/internal/services/appservice/validate/service_plan_id_test.go +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package validate - -// NOTE: this file is generated via 'go:generate' - manual changes will be overwritten - -import "testing" - -func TestServicePlanID(t *testing.T) { - cases := []struct { - Input string - Valid bool - }{ - - { - // empty - Input: "", - Valid: false, - }, - - { - // missing SubscriptionId - Input: "/", - Valid: false, - }, - - { - // missing value for SubscriptionId - Input: "/subscriptions/", - Valid: false, - }, - - { - // missing ResourceGroup - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/", - Valid: false, - }, - - { - // missing value for ResourceGroup - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/", - Valid: false, - }, - - { - // missing ServerfarmName - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/", - Valid: false, - }, - - { - // missing value for ServerfarmName - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverfarms/", - Valid: false, - }, - - { - // valid - Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverfarms/farm1", - Valid: true, - }, - - { - // upper-cased - Input: "/SUBSCRIPTIONS/12345678-1234-9876-4563-123456789012/RESOURCEGROUPS/RESGROUP1/PROVIDERS/MICROSOFT.WEB/SERVERFARMS/FARM1", - Valid: false, - }, - } - for _, tc := range cases { - t.Logf("[DEBUG] Testing Value %s", tc.Input) - _, errors := ServicePlanID(tc.Input, "test") - valid := len(errors) == 0 - - if tc.Valid != valid { - t.Fatalf("Expected %t but got %t", tc.Valid, valid) - } - } -} diff --git a/internal/services/appservice/windows_function_app_data_source.go b/internal/services/appservice/windows_function_app_data_source.go index 412f49cf0250..ae3bccd7dad3 100644 --- a/internal/services/appservice/windows_function_app_data_source.go +++ b/internal/services/appservice/windows_function_app_data_source.go @@ -11,6 +11,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" + "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/terraform-provider-azurerm/internal/sdk" @@ -292,7 +293,11 @@ func (d WindowsFunctionAppDataSource) Read() sdk.ResourceFunc { functionApp.Name = id.SiteName functionApp.ResourceGroup = id.ResourceGroup - functionApp.ServicePlanId = utils.NormalizeNilableString(props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanID(pointer.From(props.ServerFarmID)) + if err != nil { + return fmt.Errorf("reading Service Plan Id for %s: %+v", id, err) + } + functionApp.ServicePlanId = servicePlanId.ID() functionApp.Location = location.NormalizeNilable(existing.Location) functionApp.Enabled = utils.NormaliseNilableBool(existing.Enabled) functionApp.ClientCertMode = string(existing.ClientCertMode) diff --git a/internal/services/appservice/windows_function_app_resource.go b/internal/services/appservice/windows_function_app_resource.go index bb69eaad0471..2ad50d68c9d1 100644 --- a/internal/services/appservice/windows_function_app_resource.go +++ b/internal/services/appservice/windows_function_app_resource.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "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/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/validate" kvValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" @@ -85,6 +86,8 @@ var _ sdk.ResourceWithCustomImporter = WindowsFunctionAppResource{} var _ sdk.ResourceWithCustomizeDiff = WindowsFunctionAppResource{} +var _ sdk.ResourceWithStateMigration = WindowsFunctionAppResource{} + func (r WindowsFunctionAppResource) ModelObject() interface{} { return &WindowsFunctionAppModel{} } @@ -114,7 +117,7 @@ func (r WindowsFunctionAppResource) Arguments() map[string]*pluginsdk.Schema { "service_plan_id": { Type: pluginsdk.TypeString, Required: true, - ValidateFunc: validate.ServicePlanID, + ValidateFunc: commonids.ValidateAppServicePlanID, Description: "The ID of the App Service Plan within which to create this Function App", }, @@ -375,19 +378,51 @@ func (r WindowsFunctionAppResource) Create() sdk.ResourceFunc { id := parse.NewFunctionAppID(subscriptionId, functionApp.ResourceGroup, functionApp.Name) - servicePlanId, err := parse.ServicePlanID(functionApp.ServicePlanId) + servicePlanId, err := commonids.ParseAppServicePlanID(functionApp.ServicePlanId) if err != nil { return err } - servicePlan, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) + servicePlan, err := servicePlanClient.Get(ctx, *servicePlanId) if err != nil { return fmt.Errorf("reading %s: %+v", servicePlanId, err) } + availabilityRequest := web.ResourceNameAvailabilityRequest{ + Name: utils.String(functionApp.Name), + Type: web.CheckNameResourceTypesMicrosoftWebsites, + } + var planSKU *string - if sku := servicePlan.Sku; sku != nil && sku.Name != nil { - planSKU = sku.Name + if model := servicePlan.Model; model != nil { + if sku := model.Sku; sku != nil && sku.Name != nil { + planSKU = sku.Name + } + if model.Properties != nil { + if ase := model.Properties.HostingEnvironmentProfile; ase != nil { + // Attempt to check the ASE for the appropriate suffix for the name availability request. + // This varies between internal and external ASE Types, and potentially has other names in other clouds + // We use the "internal" as the fallback here, if we can read the ASE, we'll get the full one + nameSuffix := "appserviceenvironment.net" + if ase.Id != nil { + aseId, err := parse.AppServiceEnvironmentID(*ase.Id) + nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) + if err != nil { + metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionApp.Name, servicePlanId) + } else { + existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) + if err != nil { + metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionApp.Name, servicePlanId) + } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { + nameSuffix = *props.DNSSuffix + } + } + } + + availabilityRequest.Name = utils.String(fmt.Sprintf("%s.%s", functionApp.Name, nameSuffix)) + availabilityRequest.IsFqdn = utils.Bool(true) + } + } } // Only send for Dynamic and ElasticPremium sendContentSettings := (helpers.PlanIsConsumption(planSKU) || helpers.PlanIsElastic(planSKU)) && !functionApp.ForceDisableContentShare @@ -401,35 +436,6 @@ func (r WindowsFunctionAppResource) Create() sdk.ResourceFunc { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - availabilityRequest := web.ResourceNameAvailabilityRequest{ - Name: utils.String(functionApp.Name), - Type: web.CheckNameResourceTypesMicrosoftWebsites, - } - - if ase := servicePlan.HostingEnvironmentProfile; ase != nil { - // Attempt to check the ASE for the appropriate suffix for the name availability request. - // This varies between internal and external ASE Types, and potentially has other names in other clouds - // We use the "internal" as the fallback here, if we can read the ASE, we'll get the full one - nameSuffix := "appserviceenvironment.net" - if ase.ID != nil { - aseId, err := parse.AppServiceEnvironmentID(*ase.ID) - nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) - if err != nil { - metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionApp.Name, servicePlanId) - } else { - existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) - if err != nil { - metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionApp.Name, servicePlanId) - } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { - nameSuffix = *props.DNSSuffix - } - } - } - - availabilityRequest.Name = utils.String(fmt.Sprintf("%s.%s", functionApp.Name, nameSuffix)) - availabilityRequest.IsFqdn = utils.Bool(true) - } - checkName, err := client.CheckNameAvailability(ctx, availabilityRequest) if err != nil { return fmt.Errorf("checking name availability for Windows %s: %+v", id, err) @@ -739,7 +745,6 @@ func (r WindowsFunctionAppResource) Read() sdk.ResourceFunc { state := WindowsFunctionAppModel{ Name: id.SiteName, ResourceGroup: id.ResourceGroup, - ServicePlanId: utils.NormalizeNilableString(props.ServerFarmID), Location: location.NormalizeNilable(functionApp.Location), Enabled: utils.NormaliseNilableBool(functionApp.Enabled), ClientCertMode: string(functionApp.ClientCertMode), @@ -754,6 +759,12 @@ func (r WindowsFunctionAppResource) Read() sdk.ResourceFunc { PublicNetworkAccess: !strings.EqualFold(pointer.From(props.PublicNetworkAccess), helpers.PublicNetworkAccessDisabled), } + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(*props.ServerFarmID) + if err != nil { + return err + } + state.ServicePlanId = servicePlanId.ID() + state.PublishingFTPBasicAuthEnabled = basicAuthFTP state.PublishingDeployBasicAuthEnabled = basicAuthWebDeploy @@ -894,19 +905,21 @@ func (r WindowsFunctionAppResource) Update() sdk.ResourceFunc { // Some service plan updates are allowed - see customiseDiff for exceptions if metadata.ResourceData.HasChange("service_plan_id") { existing.SiteProperties.ServerFarmID = utils.String(state.ServicePlanId) - servicePlanId, err := parse.ServicePlanID(state.ServicePlanId) + servicePlanId, err := commonids.ParseAppServicePlanID(state.ServicePlanId) if err != nil { return err } servicePlanClient := metadata.Client.AppService.ServicePlanClient - servicePlan, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) + servicePlan, err := servicePlanClient.Get(ctx, *servicePlanId) if err != nil { return fmt.Errorf("reading new service plan (%s) for Windows %s: %+v", servicePlanId, id, err) } - if sku := servicePlan.Sku; sku != nil && sku.Name != nil { - planSKU = sku.Name + if servicePlan.Model != nil { + if sku := servicePlan.Model.Sku; sku != nil && sku.Name != nil { + planSKU = sku.Name + } } } @@ -1201,17 +1214,17 @@ func (r WindowsFunctionAppResource) CustomImporter() sdk.ResourceRunFunc { if props.ServerFarmID == nil { return fmt.Errorf("determining Service Plan ID for Windows %s: %+v", id, err) } - servicePlanId, err := parse.ServicePlanID(*props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanID(*props.ServerFarmID) if err != nil { return err } - sp, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) - if err != nil || sp.Kind == nil { + sp, err := servicePlanClient.Get(ctx, *servicePlanId) + if err != nil || sp.Model == nil || sp.Model.Kind == nil { return fmt.Errorf("reading Service Plan for Windows %s: %+v", id, err) } - if strings.Contains(strings.ToLower(*sp.Kind), "Windows") { + if strings.Contains(strings.ToLower(*sp.Model.Kind), "Windows") { return fmt.Errorf("specified Service Plan is not a Windows Functionapp plan") } @@ -1228,22 +1241,27 @@ func (r WindowsFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { if rd.HasChange("service_plan_id") { currentPlanIdRaw, newPlanIdRaw := rd.GetChange("service_plan_id") + if strings.EqualFold(currentPlanIdRaw.(string), newPlanIdRaw.(string)) || currentPlanIdRaw == "" { + // State migration escape for correcting case in serverFarms + // change of case here will not move the app to a new Service Plan + return nil + } if newPlanIdRaw.(string) == "" { // Plans creating a new service_plan inline will be empty as `Computed` known after apply return nil } - newPlanId, err := parse.ServicePlanID(newPlanIdRaw.(string)) + newPlanId, err := commonids.ParseAppServicePlanID(newPlanIdRaw.(string)) if err != nil { return fmt.Errorf("reading new plan id %+v", err) } var currentTierIsDynamic, newTierIsDynamic, newTierIsBasic bool - newPlan, err := client.Get(ctx, newPlanId.ResourceGroup, newPlanId.ServerfarmName) - if err != nil { + newPlan, err := client.Get(ctx, *newPlanId) + if err != nil || newPlan.Model == nil { return fmt.Errorf("could not read new Service Plan to check tier %s: %+v", newPlanId, err) } - if planSku := newPlan.Sku; planSku != nil { + if planSku := newPlan.Model.Sku; planSku != nil { if tier := planSku.Tier; tier != nil { newTierIsDynamic = strings.EqualFold(*tier, "dynamic") newTierIsBasic = strings.EqualFold(*tier, "basic") @@ -1252,17 +1270,17 @@ func (r WindowsFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { // Service Plans can only be updated in place when both New and Existing are not Dynamic if currentPlanIdRaw.(string) != "" { - currentPlanId, err := parse.ServicePlanID(currentPlanIdRaw.(string)) + currentPlanId, err := commonids.ParseAppServicePlanID(currentPlanIdRaw.(string)) if err != nil { return fmt.Errorf("reading existing plan id %+v", err) } - currentPlan, err := client.Get(ctx, currentPlanId.ResourceGroup, currentPlanId.ServerfarmName) - if err != nil { + currentPlan, err := client.Get(ctx, *currentPlanId) + if err != nil || currentPlan.Model == nil { return fmt.Errorf("could not read current Service Plan to check tier %s: %+v", currentPlanId, err) } - if planSku := currentPlan.Sku; planSku != nil { + if planSku := currentPlan.Model.Sku; planSku != nil { if tier := planSku.Tier; tier != nil { currentTierIsDynamic = strings.EqualFold(*tier, "dynamic") } @@ -1375,3 +1393,12 @@ func (m *WindowsFunctionAppModel) unpackWindowsFunctionAppSettings(input web.Str m.AppSettings = appSettings } + +func (r WindowsFunctionAppResource) StateUpgraders() sdk.StateUpgradeData { + return sdk.StateUpgradeData{ + SchemaVersion: 1, + Upgraders: map[int]pluginsdk.StateUpgrade{ + 0: migration.WindowsFunctionAppV0toV1{}, + }, + } +} diff --git a/internal/services/appservice/windows_function_app_slot_resource.go b/internal/services/appservice/windows_function_app_slot_resource.go index afe88b392bf4..cf0c53a65e4a 100644 --- a/internal/services/appservice/windows_function_app_slot_resource.go +++ b/internal/services/appservice/windows_function_app_slot_resource.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "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/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/validate" kvValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" @@ -74,6 +75,8 @@ type WindowsFunctionAppSlotModel struct { var _ sdk.ResourceWithUpdate = WindowsFunctionAppSlotResource{} +var _ sdk.ResourceWithStateMigration = WindowsFunctionAppSlotResource{} + func (r WindowsFunctionAppSlotResource) ModelObject() interface{} { return &WindowsFunctionAppSlotModel{} } @@ -107,7 +110,7 @@ func (r WindowsFunctionAppSlotResource) Arguments() map[string]*pluginsdk.Schema "service_plan_id": { Type: pluginsdk.TypeString, Optional: true, - ValidateFunc: validate.ServicePlanID, + ValidateFunc: commonids.ValidateAppServicePlanID, }, "storage_account_name": { @@ -377,32 +380,76 @@ func (r WindowsFunctionAppSlotResource) Create() sdk.ResourceFunc { return fmt.Errorf("could not determine location for %s: %+v", id, err) } - var servicePlanId *parse.ServicePlanId + var servicePlanId *commonids.AppServicePlanId + differentServicePlanToParent := false + if functionApp.SiteProperties == nil || functionApp.SiteProperties.ServerFarmID == nil { + return fmt.Errorf("could not determine Service Plan ID for %s: %+v", id, err) + } + + servicePlanId, err = commonids.ParseAppServicePlanIDInsensitively(*functionApp.SiteProperties.ServerFarmID) + if err != nil { + return err + } + if functionAppSlot.ServicePlanID != "" { - servicePlanId, err = parse.ServicePlanID(functionAppSlot.ServicePlanID) + newServicePlanId, err := commonids.ParseAppServicePlanID(functionAppSlot.ServicePlanID) if err != nil { return err } - } else { - if props := functionApp.SiteProperties; props == nil || props.ServerFarmID == nil { - return fmt.Errorf("could not determine Service Plan ID for %s: %+v", id, err) - } else { - servicePlanId, err = parse.ServicePlanID(*props.ServerFarmID) - if err != nil { - return err - } + // we only set `service_plan_id` when it differs from the parent `service_plan_id` which is causing issues + // https://github.com/hashicorp/terraform-provider-azurerm/issues/21024 + // we'll error here if the `service_plan_id` equals the parent `service_plan_id` + if strings.EqualFold(newServicePlanId.ID(), servicePlanId.ID()) { + return fmt.Errorf("`service_plan_id` should only be specified when it differs from the `service_plan_id` of the associated Web App") } + + servicePlanId = newServicePlanId + differentServicePlanToParent = true } - servicePlan, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) + + servicePlan, err := servicePlanClient.Get(ctx, *servicePlanId) if err != nil { return fmt.Errorf("reading %s: %+v", servicePlanId, err) } + availabilityRequest := web.ResourceNameAvailabilityRequest{ + Name: pointer.To(fmt.Sprintf("%s-%s", id.SiteName, id.SlotName)), + Type: web.CheckNameResourceTypesMicrosoftWebsites, + } + var planSKU *string - if sku := servicePlan.Sku; sku != nil && sku.Name != nil { - planSKU = sku.Name - } else { - return fmt.Errorf("could not determine Service Plan SKU type") + if model := servicePlan.Model; model != nil { + if sku := model.Sku; sku != nil && sku.Name != nil { + planSKU = sku.Name + } else { + return fmt.Errorf("could not determine Service Plan SKU type") + } + + if model.Properties != nil { + if ase := model.Properties.HostingEnvironmentProfile; ase != nil { + // Attempt to check the ASE for the appropriate suffix for the name availability request. + // This varies between internal and external ASE Types, and potentially has other names in other clouds + // We use the "internal" as the fallback here, if we can read the ASE, we'll get the full one + nameSuffix := "appserviceenvironment.net" + if ase.Id != nil { + aseId, err := parse.AppServiceEnvironmentID(*ase.Id) + nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) + if err != nil { + metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionAppSlot.Name, servicePlanId) + } else { + existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) + if err != nil { + metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionAppSlot.Name, servicePlanId) + } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { + nameSuffix = *props.DNSSuffix + } + } + } + + availabilityRequest.Name = pointer.To(fmt.Sprintf("%s.%s", functionAppSlot.Name, nameSuffix)) + availabilityRequest.IsFqdn = pointer.To(true) + } + } } // Only send for Dynamic and ElasticPremium sendContentSettings := (helpers.PlanIsConsumption(planSKU) || helpers.PlanIsElastic(planSKU)) && !functionAppSlot.ForceDisableContentShare @@ -416,35 +463,6 @@ func (r WindowsFunctionAppSlotResource) Create() sdk.ResourceFunc { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - availabilityRequest := web.ResourceNameAvailabilityRequest{ - Name: pointer.To(fmt.Sprintf("%s-%s", id.SiteName, id.SlotName)), - Type: web.CheckNameResourceTypesMicrosoftWebsites, - } - - if ase := servicePlan.HostingEnvironmentProfile; ase != nil { - // Attempt to check the ASE for the appropriate suffix for the name availability request. - // This varies between internal and external ASE Types, and potentially has other names in other clouds - // We use the "internal" as the fallback here, if we can read the ASE, we'll get the full one - nameSuffix := "appserviceenvironment.net" - if ase.ID != nil { - aseId, err := parse.AppServiceEnvironmentID(*ase.ID) - nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) - if err != nil { - metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionAppSlot.Name, servicePlanId) - } else { - existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) - if err != nil { - metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", functionAppSlot.Name, servicePlanId) - } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { - nameSuffix = *props.DNSSuffix - } - } - } - - availabilityRequest.Name = pointer.To(fmt.Sprintf("%s.%s", functionAppSlot.Name, nameSuffix)) - availabilityRequest.IsFqdn = pointer.To(true) - } - checkName, err := client.CheckNameAvailability(ctx, availabilityRequest) if err != nil { return fmt.Errorf("checking name availability for Windows %s: %+v", id, err) @@ -509,7 +527,6 @@ func (r WindowsFunctionAppSlotResource) Create() sdk.ResourceFunc { Kind: pointer.To("functionapp"), Identity: expandedIdentity, SiteProperties: &web.SiteProperties{ - ServerFarmID: pointer.To(servicePlanId.ID()), Enabled: pointer.To(functionAppSlot.Enabled), HTTPSOnly: pointer.To(functionAppSlot.HttpsOnly), SiteConfig: siteConfig, @@ -519,6 +536,9 @@ func (r WindowsFunctionAppSlotResource) Create() sdk.ResourceFunc { VnetRouteAllEnabled: siteConfig.VnetRouteAllEnabled, }, } + if differentServicePlanToParent { + siteEnvelope.SiteProperties.ServerFarmID = pointer.To(servicePlanId.ID()) + } pna := helpers.PublicNetworkAccessEnabled if !functionAppSlot.PublicNetworkAccess { @@ -753,13 +773,17 @@ func (r WindowsFunctionAppSlotResource) Read() sdk.ResourceFunc { if functionApp.SiteProperties == nil || functionApp.SiteProperties.ServerFarmID == nil { return fmt.Errorf("reading parent Function App Service Plan information for Windows %s: %+v", *id, err) } - parentAppFarmId, err := parse.ServicePlanIDInsensitively(*functionApp.SiteProperties.ServerFarmID) + parentAppFarmId, err := commonids.ParseAppServicePlanIDInsensitively(*functionApp.SiteProperties.ServerFarmID) if err != nil { - return err + return fmt.Errorf("parsing parent Service Plan ID for %s: %+v", *id, err) } - if slotPlanId := props.ServerFarmID; slotPlanId != nil && parentAppFarmId.ID() != *slotPlanId { - state.ServicePlanID = *slotPlanId + if slotPlanIdRaw := props.ServerFarmID; slotPlanIdRaw != nil && !strings.EqualFold(parentAppFarmId.ID(), *slotPlanIdRaw) { + slotPlanId, err := commonids.ParseAppServicePlanIDInsensitively(*slotPlanIdRaw) + if err != nil { + return fmt.Errorf("parsing Service Plan ID for %s: %+v", *id, err) + } + state.ServicePlanID = slotPlanId.ID() } configResp, err := client.GetConfigurationSlot(ctx, id.ResourceGroup, id.SiteName, id.SlotName) @@ -868,12 +892,12 @@ func (r WindowsFunctionAppSlotResource) Update() sdk.ResourceFunc { if metadata.ResourceData.HasChange("service_plan_id") { o, n := metadata.ResourceData.GetChange("service_plan_id") - oldPlan, err := parse.ServicePlanID(o.(string)) + oldPlan, err := commonids.ParseAppServicePlanID(o.(string)) if err != nil { return err } - newPlan, err := parse.ServicePlanID(n.(string)) + newPlan, err := commonids.ParseAppServicePlanID(n.(string)) if err != nil { return err } @@ -1189,3 +1213,12 @@ func (m *WindowsFunctionAppSlotModel) unpackWindowsFunctionAppSettings(input web m.AppSettings = appSettings } + +func (r WindowsFunctionAppSlotResource) StateUpgraders() sdk.StateUpgradeData { + return sdk.StateUpgradeData{ + SchemaVersion: 1, + Upgraders: map[int]pluginsdk.StateUpgrade{ + 0: migration.WindowsFunctionAppSlotV0toV1{}, + }, + } +} diff --git a/internal/services/appservice/windows_web_app_data_source.go b/internal/services/appservice/windows_web_app_data_source.go index e7137c3b958c..98eeadd5d2ce 100644 --- a/internal/services/appservice/windows_web_app_data_source.go +++ b/internal/services/appservice/windows_web_app_data_source.go @@ -10,6 +10,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" + "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/terraform-provider-azurerm/internal/sdk" @@ -329,7 +330,11 @@ func (d WindowsWebAppDataSource) Read() sdk.ResourceFunc { if props.HTTPSOnly != nil { webApp.HttpsOnly = *props.HTTPSOnly } - webApp.ServicePlanId = utils.NormalizeNilableString(props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanID(pointer.From(props.ServerFarmID)) + if err != nil { + return fmt.Errorf("parsing Service Plan ID for %s, %+v", id, err) + } + webApp.ServicePlanId = servicePlanId.ID() webApp.OutboundIPAddresses = utils.NormalizeNilableString(props.OutboundIPAddresses) webApp.OutboundIPAddressList = strings.Split(webApp.OutboundIPAddresses, ",") webApp.PossibleOutboundIPAddresses = utils.NormalizeNilableString(props.PossibleOutboundIPAddresses) diff --git a/internal/services/appservice/windows_web_app_resource.go b/internal/services/appservice/windows_web_app_resource.go index a306e469dc44..c6efdc2d368b 100644 --- a/internal/services/appservice/windows_web_app_resource.go +++ b/internal/services/appservice/windows_web_app_resource.go @@ -17,6 +17,7 @@ import ( "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" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/migration" "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" @@ -68,6 +69,8 @@ type WindowsWebAppModel struct { var _ sdk.ResourceWithCustomImporter = WindowsWebAppResource{} +var _ sdk.ResourceWithStateMigration = WindowsWebAppResource{} + func (r WindowsWebAppResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "name": { @@ -84,7 +87,7 @@ func (r WindowsWebAppResource) Arguments() map[string]*pluginsdk.Schema { "service_plan_id": { Type: pluginsdk.TypeString, Required: true, - ValidateFunc: validate.ServicePlanID, + ValidateFunc: commonids.ValidateAppServicePlanID, }, // Optional @@ -200,9 +203,6 @@ func (r WindowsWebAppResource) Arguments() map[string]*pluginsdk.Schema { } } -// TODO - Feature: Deployments (Preview)? -// TODO - Feature: App Insights? - func (r WindowsWebAppResource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "custom_domain_verification_id": { @@ -288,41 +288,52 @@ func (r WindowsWebAppResource) Create() sdk.ResourceFunc { return metadata.ResourceRequiresImport(r.ResourceType(), id) } + sc := webApp.SiteConfig[0] + availabilityRequest := web.ResourceNameAvailabilityRequest{ Name: pointer.To(webApp.Name), Type: web.CheckNameResourceTypesMicrosoftWebsites, } - servicePlanId, err := parse.ServicePlanID(webApp.ServicePlanId) + servicePlanId, err := commonids.ParseAppServicePlanID(webApp.ServicePlanId) if err != nil { return err } - servicePlan, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) + servicePlan, err := servicePlanClient.Get(ctx, *servicePlanId) if err != nil { return fmt.Errorf("reading App %s: %+v", servicePlanId, err) } - if ase := servicePlan.HostingEnvironmentProfile; ase != nil { - // Attempt to check the ASE for the appropriate suffix for the name availability request. Not convinced - // the `DNSSuffix` field is still valid and possibly should have been deprecated / removed as is legacy - // setting from ASEv1? Hence the non-fatal approach here. - nameSuffix := "appserviceenvironment.net" - if ase.ID != nil { - aseId, err := parse.AppServiceEnvironmentID(*ase.ID) - nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) - if err != nil { - metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", webApp.Name, servicePlanId) - } else { - existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) + if servicePlan.Model != nil && servicePlan.Model.Properties != nil { + if ase := servicePlan.Model.Properties.HostingEnvironmentProfile; ase != nil { + // Attempt to check the ASE for the appropriate suffix for the name availability request. Not convinced + // the `DNSSuffix` field is still valid and possibly should have been deprecated / removed as is legacy + // setting from ASEv1? Hence the non-fatal approach here. + nameSuffix := "appserviceenvironment.net" + if ase.Id != nil { + aseId, err := parse.AppServiceEnvironmentID(*ase.Id) + nameSuffix = fmt.Sprintf("%s.%s", aseId.HostingEnvironmentName, nameSuffix) if err != nil { - metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", webApp.Name, servicePlanId) - } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { - nameSuffix = *props.DNSSuffix + metadata.Logger.Warnf("could not parse App Service Environment ID determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", webApp.Name, servicePlanId) + } else { + existingASE, err := aseClient.Get(ctx, aseId.ResourceGroup, aseId.HostingEnvironmentName) + if err != nil { + metadata.Logger.Warnf("could not read App Service Environment to determine FQDN for name availability check, defaulting to `%s.%s.appserviceenvironment.net`", webApp.Name, servicePlanId) + } else if props := existingASE.AppServiceEnvironment; props != nil && props.DNSSuffix != nil && *props.DNSSuffix != "" { + nameSuffix = *props.DNSSuffix + } + } + } + availabilityRequest.Name = pointer.To(fmt.Sprintf("%s.%s", webApp.Name, nameSuffix)) + availabilityRequest.IsFqdn = pointer.To(true) + } + if servicePlan.Model.Sku != nil && servicePlan.Model.Sku.Name != nil { + if helpers.IsFreeOrSharedServicePlan(*servicePlan.Model.Sku.Name) { + if sc.AlwaysOn { + return fmt.Errorf("always_on cannot be set to true when using Free, F1, D1 Sku") } } } - availabilityRequest.Name = pointer.To(fmt.Sprintf("%s.%s", webApp.Name, nameSuffix)) - availabilityRequest.IsFqdn = pointer.To(true) } checkName, err := client.CheckNameAvailability(ctx, availabilityRequest) @@ -333,16 +344,6 @@ func (r WindowsWebAppResource) Create() sdk.ResourceFunc { return fmt.Errorf("the Site Name %q failed the availability check: %+v", id.SiteName, *checkName.Message) } - sc := webApp.SiteConfig[0] - - if servicePlan.Sku != nil && servicePlan.Sku.Name != nil { - if helpers.IsFreeOrSharedServicePlan(*servicePlan.Sku.Name) { - if sc.AlwaysOn { - return fmt.Errorf("always_on cannot be set to true when using Free, F1, D1 Sku") - } - } - } - siteConfig, err := sc.ExpandForCreate(webApp.AppSettings) if err != nil { return err @@ -653,7 +654,7 @@ func (r WindowsWebAppResource) Read() sdk.ResourceFunc { Tags: tags.ToTypedObject(webApp.Tags), } - serverFarmId, err := parse.ServicePlanID(pointer.From(props.ServerFarmID)) + serverFarmId, err := commonids.ParseAppServicePlanIDInsensitively(pointer.From(props.ServerFarmID)) if err != nil { return fmt.Errorf("parsing Service Plan ID for %s: %+v", id, err) } @@ -799,12 +800,12 @@ func (r WindowsWebAppResource) Update() sdk.ResourceFunc { existing.SiteProperties.ServerFarmID = pointer.To(serviceFarmId) servicePlanChange = true } - servicePlanId, err := parse.ServicePlanID(serviceFarmId) + servicePlanId, err := commonids.ParseAppServicePlanID(serviceFarmId) if err != nil { return err } - servicePlan, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) + servicePlan, err := servicePlanClient.Get(ctx, *servicePlanId) if err != nil { return fmt.Errorf("reading App %s: %+v", servicePlanId, err) } @@ -860,8 +861,8 @@ func (r WindowsWebAppResource) Update() sdk.ResourceFunc { currentStack := "" sc := state.SiteConfig[0] - if servicePlan.Sku != nil && servicePlan.Sku.Name != nil { - if helpers.IsFreeOrSharedServicePlan(*servicePlan.Sku.Name) { + if servicePlan.Model != nil && servicePlan.Model.Sku != nil && servicePlan.Model.Sku.Name != nil { + if helpers.IsFreeOrSharedServicePlan(*servicePlan.Model.Sku.Name) { if sc.AlwaysOn { return fmt.Errorf("always_on feature has to be turned off before switching to a free/shared Sku") } @@ -1063,19 +1064,28 @@ func (r WindowsWebAppResource) CustomImporter() sdk.ResourceRunFunc { if props.ServerFarmID == nil { return fmt.Errorf("determining Service Plan ID for Windows %s: %+v", id, err) } - servicePlanId, err := parse.ServicePlanID(*props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanID(*props.ServerFarmID) if err != nil { return err } - sp, err := servicePlanClient.Get(ctx, servicePlanId.ResourceGroup, servicePlanId.ServerfarmName) - if err != nil || sp.Kind == nil { + sp, err := servicePlanClient.Get(ctx, *servicePlanId) + if err != nil || sp.Model == nil || sp.Model.Kind == nil { return fmt.Errorf("reading Service Plan for Windows %s: %+v", id, err) } - if strings.Contains(*sp.Kind, "linux") || strings.Contains(*sp.Kind, "Linux") { + if strings.Contains(strings.ToLower(*sp.Model.Kind), "linux") { return fmt.Errorf("specified Service Plan is not a Windows plan") } return nil } } + +func (r WindowsWebAppResource) StateUpgraders() sdk.StateUpgradeData { + return sdk.StateUpgradeData{ + SchemaVersion: 1, + Upgraders: map[int]pluginsdk.StateUpgrade{ + 0: migration.WindowsWebAppV0toV1{}, + }, + } +} diff --git a/internal/services/appservice/windows_web_app_slot_resource.go b/internal/services/appservice/windows_web_app_slot_resource.go index 742dea72aba2..a786fc17309a 100644 --- a/internal/services/appservice/windows_web_app_slot_resource.go +++ b/internal/services/appservice/windows_web_app_slot_resource.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "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/migration" "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" @@ -66,6 +67,8 @@ type WindowsWebAppSlotModel struct { var _ sdk.ResourceWithUpdate = WindowsWebAppSlotResource{} +var _ sdk.ResourceWithStateMigration = WindowsWebAppSlotResource{} + func (r WindowsWebAppSlotResource) ModelObject() interface{} { return &WindowsWebAppSlotModel{} } @@ -99,7 +102,7 @@ func (r WindowsWebAppSlotResource) Arguments() map[string]*pluginsdk.Schema { "service_plan_id": { Type: pluginsdk.TypeString, Optional: true, - ValidateFunc: validate.ServicePlanID, + ValidateFunc: commonids.ValidateAppServicePlanID, }, "app_settings": { @@ -289,20 +292,21 @@ func (r WindowsWebAppSlotResource) Create() sdk.ResourceFunc { return fmt.Errorf("could not determine location for %s: %+v", id, err) } - var servicePlanId *parse.ServicePlanId + var servicePlanId *commonids.AppServicePlanId + differentServicePlanToParent := false if webApp.SiteProperties == nil || webApp.SiteProperties.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 = commonids.ParseAppServicePlanIDInsensitively(*webApp.SiteProperties.ServerFarmID) if err != nil { return err } if webAppSlot.ServicePlanID != "" { - newServicePlanId, err := parse.ServicePlanID(webAppSlot.ServicePlanID) + newServicePlanId, err := commonids.ParseAppServicePlanID(webAppSlot.ServicePlanID) if err != nil { - return err + return fmt.Errorf("parsing service_plan_id for %s: %+v", id, err) } // we only set `service_plan_id` when it differs from the parent `service_plan_id` which is causing issues // https://github.com/hashicorp/terraform-provider-azurerm/issues/21024 @@ -344,7 +348,6 @@ func (r WindowsWebAppSlotResource) Create() sdk.ResourceFunc { Tags: tags.FromTypedObject(webAppSlot.Tags), Identity: expandedIdentity, SiteProperties: &web.SiteProperties{ - ServerFarmID: pointer.To(servicePlanId.ID()), Enabled: pointer.To(webAppSlot.Enabled), HTTPSOnly: pointer.To(webAppSlot.HttpsOnly), SiteConfig: siteConfig, @@ -356,6 +359,10 @@ func (r WindowsWebAppSlotResource) Create() sdk.ResourceFunc { }, } + if differentServicePlanToParent { + siteEnvelope.SiteProperties.ServerFarmID = pointer.To(servicePlanId.ID()) + } + pna := helpers.PublicNetworkAccessEnabled if !webAppSlot.PublicNetworkAccess { pna = helpers.PublicNetworkAccessDisabled @@ -638,12 +645,16 @@ func (r WindowsWebAppSlotResource) Read() sdk.ResourceFunc { state.HostingEnvId = hostingEnvId.ID() } - parentAppFarmId, err := parse.ServicePlanIDInsensitively(*webApp.SiteProperties.ServerFarmID) + parentAppFarmId, err := commonids.ParseAppServicePlanIDInsensitively(*webApp.SiteProperties.ServerFarmID) if err != nil { - return err + return fmt.Errorf("reading parent Service Plan ID: %+v", err) } - if slotPlanId := props.ServerFarmID; slotPlanId != nil && parentAppFarmId.ID() != *slotPlanId { - state.ServicePlanID = *slotPlanId + if slotPlanIdRaw := props.ServerFarmID; slotPlanIdRaw != nil && *slotPlanIdRaw != "" && !strings.EqualFold(parentAppFarmId.ID(), *slotPlanIdRaw) { + slotPlanId, err := commonids.ParseAppServicePlanIDInsensitively(pointer.From(slotPlanIdRaw)) + if err != nil { + return fmt.Errorf("reading Slot Service Plan ID: %+v", err) + } + state.ServicePlanID = slotPlanId.ID() } if subnetId := pointer.From(props.VirtualNetworkSubnetID); subnetId != "" { @@ -759,18 +770,18 @@ func (r WindowsWebAppSlotResource) Update() sdk.ResourceFunc { if webApp.SiteProperties == nil || webApp.SiteProperties.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 := commonids.ParseAppServicePlanID(*webApp.SiteProperties.ServerFarmID) if err != nil { return err } o, n := metadata.ResourceData.GetChange("service_plan_id") - oldPlan, err := parse.ServicePlanID(o.(string)) + oldPlan, err := commonids.ParseAppServicePlanID(o.(string)) if err != nil { return err } - newPlan, err := parse.ServicePlanID(n.(string)) + newPlan, err := commonids.ParseAppServicePlanID(n.(string)) if err != nil { return err } @@ -1005,3 +1016,12 @@ func (r WindowsWebAppSlotResource) Update() sdk.ResourceFunc { }, } } + +func (r WindowsWebAppSlotResource) StateUpgraders() sdk.StateUpgradeData { + return sdk.StateUpgradeData{ + SchemaVersion: 1, + Upgraders: map[int]pluginsdk.StateUpgrade{ + 0: migration.WindowsWebAppSlotV0toV1{}, + }, + } +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md new file mode 100644 index 000000000000..31140f6bac1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md @@ -0,0 +1,832 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments` Documentation + +The `appserviceenvironments` 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/appserviceenvironments" +``` + + +### Client Initialization + +```go +client := appserviceenvironments.NewAppServiceEnvironmentsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ApproveOrRejectPrivateEndpointConnection` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "privateEndpointConnectionValue") + +payload := appserviceenvironments.RemotePrivateEndpointConnectionARMResource{ + // ... +} + + +if err := client.ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ChangeVnet` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +payload := appserviceenvironments.VirtualNetworkProfile{ + // ... +} + + +// alternatively `client.ChangeVnet(ctx, id, payload)` can be used to do batched pagination +items, err := client.ChangeVnetComplete(ctx, id, payload) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +payload := appserviceenvironments.AppServiceEnvironmentResource{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.CreateOrUpdateMultiRolePool` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +payload := appserviceenvironments.WorkerPoolResource{ + // ... +} + + +if err := client.CreateOrUpdateMultiRolePoolThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.CreateOrUpdateWorkerPool` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") + +payload := appserviceenvironments.WorkerPoolResource{ + // ... +} + + +if err := client.CreateOrUpdateWorkerPoolThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.Delete` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +if err := client.DeleteThenPoll(ctx, id, appserviceenvironments.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.DeleteAseCustomDnsSuffixConfiguration` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +read, err := client.DeleteAseCustomDnsSuffixConfiguration(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.DeletePrivateEndpointConnection` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "privateEndpointConnectionValue") + +if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.Get` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +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: `AppServiceEnvironmentsClient.GetAseCustomDnsSuffixConfiguration` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +read, err := client.GetAseCustomDnsSuffixConfiguration(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.GetAseV3NetworkingConfiguration` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +read, err := client.GetAseV3NetworkingConfiguration(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.GetDiagnosticsItem` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewHostingEnvironmentDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "diagnosticValue") + +read, err := client.GetDiagnosticsItem(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.GetInboundNetworkDependenciesEndpoints` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.GetInboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination +items, err := client.GetInboundNetworkDependenciesEndpointsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.GetMultiRolePool` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +read, err := client.GetMultiRolePool(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.GetOutboundNetworkDependenciesEndpoints` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.GetOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination +items, err := client.GetOutboundNetworkDependenciesEndpointsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.GetPrivateEndpointConnection` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "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: `AppServiceEnvironmentsClient.GetPrivateEndpointConnectionList` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// 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: `AppServiceEnvironmentsClient.GetPrivateLinkResources` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +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: `AppServiceEnvironmentsClient.GetVipInfo` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +read, err := client.GetVipInfo(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.GetWorkerPool` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") + +read, err := client.GetWorkerPool(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.List` + +```go +ctx := context.TODO() +id := appserviceenvironments.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: `AppServiceEnvironmentsClient.ListAppServicePlans` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.ListAppServicePlans(ctx, id)` can be used to do batched pagination +items, err := client.ListAppServicePlansComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListCapacities` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.ListCapacities(ctx, id)` can be used to do batched pagination +items, err := client.ListCapacitiesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListDiagnostics` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +read, err := client.ListDiagnostics(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListMultiRoleMetricDefinitions` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.ListMultiRoleMetricDefinitions(ctx, id)` can be used to do batched pagination +items, err := client.ListMultiRoleMetricDefinitionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListMultiRolePoolInstanceMetricDefinitions` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewDefaultInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "instanceValue") + +// alternatively `client.ListMultiRolePoolInstanceMetricDefinitions(ctx, id)` can be used to do batched pagination +items, err := client.ListMultiRolePoolInstanceMetricDefinitionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListMultiRolePoolSkus` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.ListMultiRolePoolSkus(ctx, id)` can be used to do batched pagination +items, err := client.ListMultiRolePoolSkusComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListMultiRolePools` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.ListMultiRolePools(ctx, id)` can be used to do batched pagination +items, err := client.ListMultiRolePoolsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListMultiRoleUsages` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.ListMultiRoleUsages(ctx, id)` can be used to do batched pagination +items, err := client.ListMultiRoleUsagesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListOperations` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +read, err := client.ListOperations(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListUsages` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.ListUsages(ctx, id, appserviceenvironments.DefaultListUsagesOperationOptions())` can be used to do batched pagination +items, err := client.ListUsagesComplete(ctx, id, appserviceenvironments.DefaultListUsagesOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListWebApps` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.ListWebApps(ctx, id, appserviceenvironments.DefaultListWebAppsOperationOptions())` can be used to do batched pagination +items, err := client.ListWebAppsComplete(ctx, id, appserviceenvironments.DefaultListWebAppsOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListWebWorkerMetricDefinitions` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") + +// alternatively `client.ListWebWorkerMetricDefinitions(ctx, id)` can be used to do batched pagination +items, err := client.ListWebWorkerMetricDefinitionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListWebWorkerUsages` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") + +// alternatively `client.ListWebWorkerUsages(ctx, id)` can be used to do batched pagination +items, err := client.ListWebWorkerUsagesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListWorkerPoolInstanceMetricDefinitions` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewWorkerPoolInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue", "instanceValue") + +// alternatively `client.ListWorkerPoolInstanceMetricDefinitions(ctx, id)` can be used to do batched pagination +items, err := client.ListWorkerPoolInstanceMetricDefinitionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListWorkerPoolSkus` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") + +// alternatively `client.ListWorkerPoolSkus(ctx, id)` can be used to do batched pagination +items, err := client.ListWorkerPoolSkusComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.ListWorkerPools` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.ListWorkerPools(ctx, id)` can be used to do batched pagination +items, err := client.ListWorkerPoolsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.Reboot` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +read, err := client.Reboot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.Resume` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.Resume(ctx, id)` can be used to do batched pagination +items, err := client.ResumeComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.Suspend` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +// alternatively `client.Suspend(ctx, id)` can be used to do batched pagination +items, err := client.SuspendComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.TestUpgradeAvailableNotification` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +read, err := client.TestUpgradeAvailableNotification(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.Update` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +payload := appserviceenvironments.AppServiceEnvironmentPatchResource{ + // ... +} + + +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: `AppServiceEnvironmentsClient.UpdateAseCustomDnsSuffixConfiguration` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +payload := appserviceenvironments.CustomDnsSuffixConfiguration{ + // ... +} + + +read, err := client.UpdateAseCustomDnsSuffixConfiguration(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.UpdateAseNetworkingConfiguration` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +payload := appserviceenvironments.AseV3NetworkingConfiguration{ + // ... +} + + +read, err := client.UpdateAseNetworkingConfiguration(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.UpdateMultiRolePool` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +payload := appserviceenvironments.WorkerPoolResource{ + // ... +} + + +read, err := client.UpdateMultiRolePool(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.UpdateWorkerPool` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") + +payload := appserviceenvironments.WorkerPoolResource{ + // ... +} + + +read, err := client.UpdateWorkerPool(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServiceEnvironmentsClient.Upgrade` + +```go +ctx := context.TODO() +id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") + +if err := client.UpgradeThenPoll(ctx, id); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go new file mode 100644 index 000000000000..b9c0ff155f69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go @@ -0,0 +1,26 @@ +package appserviceenvironments + +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 AppServiceEnvironmentsClient struct { + Client *resourcemanager.Client +} + +func NewAppServiceEnvironmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*AppServiceEnvironmentsClient, error) { + client, err := resourcemanager.NewResourceManagerClient(sdkApi, "appserviceenvironments", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating AppServiceEnvironmentsClient: %+v", err) + } + + return &AppServiceEnvironmentsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/constants.go new file mode 100644 index 000000000000..3629a2b370c8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/constants.go @@ -0,0 +1,1439 @@ +package appserviceenvironments + +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 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 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 ComputeModeOptions string + +const ( + ComputeModeOptionsDedicated ComputeModeOptions = "Dedicated" + ComputeModeOptionsDynamic ComputeModeOptions = "Dynamic" + ComputeModeOptionsShared ComputeModeOptions = "Shared" +) + +func PossibleValuesForComputeModeOptions() []string { + return []string{ + string(ComputeModeOptionsDedicated), + string(ComputeModeOptionsDynamic), + string(ComputeModeOptionsShared), + } +} + +func (s *ComputeModeOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseComputeModeOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseComputeModeOptions(input string) (*ComputeModeOptions, error) { + vals := map[string]ComputeModeOptions{ + "dedicated": ComputeModeOptionsDedicated, + "dynamic": ComputeModeOptionsDynamic, + "shared": ComputeModeOptionsShared, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ComputeModeOptions(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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 StatusOptions string + +const ( + StatusOptionsCreating StatusOptions = "Creating" + StatusOptionsPending StatusOptions = "Pending" + StatusOptionsReady StatusOptions = "Ready" +) + +func PossibleValuesForStatusOptions() []string { + return []string{ + string(StatusOptionsCreating), + string(StatusOptionsPending), + string(StatusOptionsReady), + } +} + +func (s *StatusOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseStatusOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseStatusOptions(input string) (*StatusOptions, error) { + vals := map[string]StatusOptions{ + "creating": StatusOptionsCreating, + "pending": StatusOptionsPending, + "ready": StatusOptionsReady, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := StatusOptions(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 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 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 WorkerSizeOptions string + +const ( + WorkerSizeOptionsDOne WorkerSizeOptions = "D1" + WorkerSizeOptionsDThree WorkerSizeOptions = "D3" + WorkerSizeOptionsDTwo WorkerSizeOptions = "D2" + WorkerSizeOptionsDefault WorkerSizeOptions = "Default" + WorkerSizeOptionsLarge WorkerSizeOptions = "Large" + WorkerSizeOptionsLargeVThree WorkerSizeOptions = "LargeV3" + WorkerSizeOptionsMedium WorkerSizeOptions = "Medium" + WorkerSizeOptionsMediumVThree WorkerSizeOptions = "MediumV3" + WorkerSizeOptionsNestedSmall WorkerSizeOptions = "NestedSmall" + WorkerSizeOptionsNestedSmallLinux WorkerSizeOptions = "NestedSmallLinux" + WorkerSizeOptionsSmall WorkerSizeOptions = "Small" + WorkerSizeOptionsSmallVThree WorkerSizeOptions = "SmallV3" +) + +func PossibleValuesForWorkerSizeOptions() []string { + return []string{ + string(WorkerSizeOptionsDOne), + string(WorkerSizeOptionsDThree), + string(WorkerSizeOptionsDTwo), + string(WorkerSizeOptionsDefault), + string(WorkerSizeOptionsLarge), + string(WorkerSizeOptionsLargeVThree), + string(WorkerSizeOptionsMedium), + string(WorkerSizeOptionsMediumVThree), + string(WorkerSizeOptionsNestedSmall), + string(WorkerSizeOptionsNestedSmallLinux), + string(WorkerSizeOptionsSmall), + string(WorkerSizeOptionsSmallVThree), + } +} + +func (s *WorkerSizeOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWorkerSizeOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWorkerSizeOptions(input string) (*WorkerSizeOptions, error) { + vals := map[string]WorkerSizeOptions{ + "d1": WorkerSizeOptionsDOne, + "d3": WorkerSizeOptionsDThree, + "d2": WorkerSizeOptionsDTwo, + "default": WorkerSizeOptionsDefault, + "large": WorkerSizeOptionsLarge, + "largev3": WorkerSizeOptionsLargeVThree, + "medium": WorkerSizeOptionsMedium, + "mediumv3": WorkerSizeOptionsMediumVThree, + "nestedsmall": WorkerSizeOptionsNestedSmall, + "nestedsmalllinux": WorkerSizeOptionsNestedSmallLinux, + "small": WorkerSizeOptionsSmall, + "smallv3": WorkerSizeOptionsSmallVThree, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WorkerSizeOptions(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go new file mode 100644 index 000000000000..3082830caa7d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go @@ -0,0 +1,136 @@ +package appserviceenvironments + +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 = DefaultInstanceId{} + +// DefaultInstanceId is a struct representing the Resource ID for a Default Instance +type DefaultInstanceId struct { + SubscriptionId string + ResourceGroupName string + HostingEnvironmentName string + InstanceName string +} + +// NewDefaultInstanceID returns a new DefaultInstanceId struct +func NewDefaultInstanceID(subscriptionId string, resourceGroupName string, hostingEnvironmentName string, instanceName string) DefaultInstanceId { + return DefaultInstanceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + HostingEnvironmentName: hostingEnvironmentName, + InstanceName: instanceName, + } +} + +// ParseDefaultInstanceID parses 'input' into a DefaultInstanceId +func ParseDefaultInstanceID(input string) (*DefaultInstanceId, error) { + parser := resourceids.NewParserFromResourceIdType(DefaultInstanceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DefaultInstanceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseDefaultInstanceIDInsensitively parses 'input' case-insensitively into a DefaultInstanceId +// note: this method should only be used for API response data and not user input +func ParseDefaultInstanceIDInsensitively(input string) (*DefaultInstanceId, error) { + parser := resourceids.NewParserFromResourceIdType(DefaultInstanceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DefaultInstanceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *DefaultInstanceId) 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.HostingEnvironmentName, ok = input.Parsed["hostingEnvironmentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hostingEnvironmentName", input) + } + + if id.InstanceName, ok = input.Parsed["instanceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "instanceName", input) + } + + return nil +} + +// ValidateDefaultInstanceID checks that 'input' can be parsed as a Default Instance ID +func ValidateDefaultInstanceID(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 := ParseDefaultInstanceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Default Instance ID +func (id DefaultInstanceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/hostingEnvironments/%s/multiRolePools/default/instances/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.HostingEnvironmentName, id.InstanceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Default Instance ID +func (id DefaultInstanceId) 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("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), + resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), + resourceids.StaticSegment("staticMultiRolePools", "multiRolePools", "multiRolePools"), + resourceids.StaticSegment("staticDefault", "default", "default"), + resourceids.StaticSegment("staticInstances", "instances", "instances"), + resourceids.UserSpecifiedSegment("instanceName", "instanceValue"), + } +} + +// String returns a human-readable description of this Default Instance ID +func (id DefaultInstanceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Hosting Environment Name: %q", id.HostingEnvironmentName), + fmt.Sprintf("Instance Name: %q", id.InstanceName), + } + return fmt.Sprintf("Default Instance (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go new file mode 100644 index 000000000000..812ab39d5c8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go @@ -0,0 +1,134 @@ +package appserviceenvironments + +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 = HostingEnvironmentDiagnosticId{} + +// HostingEnvironmentDiagnosticId is a struct representing the Resource ID for a Hosting Environment Diagnostic +type HostingEnvironmentDiagnosticId struct { + SubscriptionId string + ResourceGroupName string + HostingEnvironmentName string + DiagnosticName string +} + +// NewHostingEnvironmentDiagnosticID returns a new HostingEnvironmentDiagnosticId struct +func NewHostingEnvironmentDiagnosticID(subscriptionId string, resourceGroupName string, hostingEnvironmentName string, diagnosticName string) HostingEnvironmentDiagnosticId { + return HostingEnvironmentDiagnosticId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + HostingEnvironmentName: hostingEnvironmentName, + DiagnosticName: diagnosticName, + } +} + +// ParseHostingEnvironmentDiagnosticID parses 'input' into a HostingEnvironmentDiagnosticId +func ParseHostingEnvironmentDiagnosticID(input string) (*HostingEnvironmentDiagnosticId, error) { + parser := resourceids.NewParserFromResourceIdType(HostingEnvironmentDiagnosticId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HostingEnvironmentDiagnosticId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseHostingEnvironmentDiagnosticIDInsensitively parses 'input' case-insensitively into a HostingEnvironmentDiagnosticId +// note: this method should only be used for API response data and not user input +func ParseHostingEnvironmentDiagnosticIDInsensitively(input string) (*HostingEnvironmentDiagnosticId, error) { + parser := resourceids.NewParserFromResourceIdType(HostingEnvironmentDiagnosticId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HostingEnvironmentDiagnosticId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *HostingEnvironmentDiagnosticId) 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.HostingEnvironmentName, ok = input.Parsed["hostingEnvironmentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hostingEnvironmentName", input) + } + + if id.DiagnosticName, ok = input.Parsed["diagnosticName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "diagnosticName", input) + } + + return nil +} + +// ValidateHostingEnvironmentDiagnosticID checks that 'input' can be parsed as a Hosting Environment Diagnostic ID +func ValidateHostingEnvironmentDiagnosticID(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 := ParseHostingEnvironmentDiagnosticID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Hosting Environment Diagnostic ID +func (id HostingEnvironmentDiagnosticId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/hostingEnvironments/%s/diagnostics/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.HostingEnvironmentName, id.DiagnosticName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Hosting Environment Diagnostic ID +func (id HostingEnvironmentDiagnosticId) 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("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), + resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), + resourceids.StaticSegment("staticDiagnostics", "diagnostics", "diagnostics"), + resourceids.UserSpecifiedSegment("diagnosticName", "diagnosticValue"), + } +} + +// String returns a human-readable description of this Hosting Environment Diagnostic ID +func (id HostingEnvironmentDiagnosticId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Hosting Environment Name: %q", id.HostingEnvironmentName), + fmt.Sprintf("Diagnostic Name: %q", id.DiagnosticName), + } + return fmt.Sprintf("Hosting Environment Diagnostic (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go new file mode 100644 index 000000000000..b020f7935907 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go @@ -0,0 +1,134 @@ +package appserviceenvironments + +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 = HostingEnvironmentPrivateEndpointConnectionId{} + +// HostingEnvironmentPrivateEndpointConnectionId is a struct representing the Resource ID for a Hosting Environment Private Endpoint Connection +type HostingEnvironmentPrivateEndpointConnectionId struct { + SubscriptionId string + ResourceGroupName string + HostingEnvironmentName string + PrivateEndpointConnectionName string +} + +// NewHostingEnvironmentPrivateEndpointConnectionID returns a new HostingEnvironmentPrivateEndpointConnectionId struct +func NewHostingEnvironmentPrivateEndpointConnectionID(subscriptionId string, resourceGroupName string, hostingEnvironmentName string, privateEndpointConnectionName string) HostingEnvironmentPrivateEndpointConnectionId { + return HostingEnvironmentPrivateEndpointConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + HostingEnvironmentName: hostingEnvironmentName, + PrivateEndpointConnectionName: privateEndpointConnectionName, + } +} + +// ParseHostingEnvironmentPrivateEndpointConnectionID parses 'input' into a HostingEnvironmentPrivateEndpointConnectionId +func ParseHostingEnvironmentPrivateEndpointConnectionID(input string) (*HostingEnvironmentPrivateEndpointConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(HostingEnvironmentPrivateEndpointConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HostingEnvironmentPrivateEndpointConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseHostingEnvironmentPrivateEndpointConnectionIDInsensitively parses 'input' case-insensitively into a HostingEnvironmentPrivateEndpointConnectionId +// note: this method should only be used for API response data and not user input +func ParseHostingEnvironmentPrivateEndpointConnectionIDInsensitively(input string) (*HostingEnvironmentPrivateEndpointConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(HostingEnvironmentPrivateEndpointConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HostingEnvironmentPrivateEndpointConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *HostingEnvironmentPrivateEndpointConnectionId) 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.HostingEnvironmentName, ok = input.Parsed["hostingEnvironmentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hostingEnvironmentName", input) + } + + if id.PrivateEndpointConnectionName, ok = input.Parsed["privateEndpointConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointConnectionName", input) + } + + return nil +} + +// ValidateHostingEnvironmentPrivateEndpointConnectionID checks that 'input' can be parsed as a Hosting Environment Private Endpoint Connection ID +func ValidateHostingEnvironmentPrivateEndpointConnectionID(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 := ParseHostingEnvironmentPrivateEndpointConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Hosting Environment Private Endpoint Connection ID +func (id HostingEnvironmentPrivateEndpointConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/hostingEnvironments/%s/privateEndpointConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.HostingEnvironmentName, id.PrivateEndpointConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Hosting Environment Private Endpoint Connection ID +func (id HostingEnvironmentPrivateEndpointConnectionId) 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("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), + resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), + resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + } +} + +// String returns a human-readable description of this Hosting Environment Private Endpoint Connection ID +func (id HostingEnvironmentPrivateEndpointConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Hosting Environment Name: %q", id.HostingEnvironmentName), + fmt.Sprintf("Private Endpoint Connection Name: %q", id.PrivateEndpointConnectionName), + } + return fmt.Sprintf("Hosting Environment Private Endpoint Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go new file mode 100644 index 000000000000..00002ea09ab0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go @@ -0,0 +1,134 @@ +package appserviceenvironments + +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 = WorkerPoolId{} + +// WorkerPoolId is a struct representing the Resource ID for a Worker Pool +type WorkerPoolId struct { + SubscriptionId string + ResourceGroupName string + HostingEnvironmentName string + WorkerPoolName string +} + +// NewWorkerPoolID returns a new WorkerPoolId struct +func NewWorkerPoolID(subscriptionId string, resourceGroupName string, hostingEnvironmentName string, workerPoolName string) WorkerPoolId { + return WorkerPoolId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + HostingEnvironmentName: hostingEnvironmentName, + WorkerPoolName: workerPoolName, + } +} + +// ParseWorkerPoolID parses 'input' into a WorkerPoolId +func ParseWorkerPoolID(input string) (*WorkerPoolId, error) { + parser := resourceids.NewParserFromResourceIdType(WorkerPoolId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkerPoolId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkerPoolIDInsensitively parses 'input' case-insensitively into a WorkerPoolId +// note: this method should only be used for API response data and not user input +func ParseWorkerPoolIDInsensitively(input string) (*WorkerPoolId, error) { + parser := resourceids.NewParserFromResourceIdType(WorkerPoolId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkerPoolId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkerPoolId) 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.HostingEnvironmentName, ok = input.Parsed["hostingEnvironmentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hostingEnvironmentName", input) + } + + if id.WorkerPoolName, ok = input.Parsed["workerPoolName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workerPoolName", input) + } + + return nil +} + +// ValidateWorkerPoolID checks that 'input' can be parsed as a Worker Pool ID +func ValidateWorkerPoolID(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 := ParseWorkerPoolID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Worker Pool ID +func (id WorkerPoolId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/hostingEnvironments/%s/workerPools/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.HostingEnvironmentName, id.WorkerPoolName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Worker Pool ID +func (id WorkerPoolId) 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("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), + resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), + resourceids.StaticSegment("staticWorkerPools", "workerPools", "workerPools"), + resourceids.UserSpecifiedSegment("workerPoolName", "workerPoolValue"), + } +} + +// String returns a human-readable description of this Worker Pool ID +func (id WorkerPoolId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Hosting Environment Name: %q", id.HostingEnvironmentName), + fmt.Sprintf("Worker Pool Name: %q", id.WorkerPoolName), + } + return fmt.Sprintf("Worker Pool (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go new file mode 100644 index 000000000000..d15caa575953 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go @@ -0,0 +1,143 @@ +package appserviceenvironments + +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 = WorkerPoolInstanceId{} + +// WorkerPoolInstanceId is a struct representing the Resource ID for a Worker Pool Instance +type WorkerPoolInstanceId struct { + SubscriptionId string + ResourceGroupName string + HostingEnvironmentName string + WorkerPoolName string + InstanceName string +} + +// NewWorkerPoolInstanceID returns a new WorkerPoolInstanceId struct +func NewWorkerPoolInstanceID(subscriptionId string, resourceGroupName string, hostingEnvironmentName string, workerPoolName string, instanceName string) WorkerPoolInstanceId { + return WorkerPoolInstanceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + HostingEnvironmentName: hostingEnvironmentName, + WorkerPoolName: workerPoolName, + InstanceName: instanceName, + } +} + +// ParseWorkerPoolInstanceID parses 'input' into a WorkerPoolInstanceId +func ParseWorkerPoolInstanceID(input string) (*WorkerPoolInstanceId, error) { + parser := resourceids.NewParserFromResourceIdType(WorkerPoolInstanceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkerPoolInstanceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkerPoolInstanceIDInsensitively parses 'input' case-insensitively into a WorkerPoolInstanceId +// note: this method should only be used for API response data and not user input +func ParseWorkerPoolInstanceIDInsensitively(input string) (*WorkerPoolInstanceId, error) { + parser := resourceids.NewParserFromResourceIdType(WorkerPoolInstanceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkerPoolInstanceId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkerPoolInstanceId) 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.HostingEnvironmentName, ok = input.Parsed["hostingEnvironmentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hostingEnvironmentName", input) + } + + if id.WorkerPoolName, ok = input.Parsed["workerPoolName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workerPoolName", input) + } + + if id.InstanceName, ok = input.Parsed["instanceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "instanceName", input) + } + + return nil +} + +// ValidateWorkerPoolInstanceID checks that 'input' can be parsed as a Worker Pool Instance ID +func ValidateWorkerPoolInstanceID(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 := ParseWorkerPoolInstanceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Worker Pool Instance ID +func (id WorkerPoolInstanceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/hostingEnvironments/%s/workerPools/%s/instances/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.HostingEnvironmentName, id.WorkerPoolName, id.InstanceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Worker Pool Instance ID +func (id WorkerPoolInstanceId) 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("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), + resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), + resourceids.StaticSegment("staticWorkerPools", "workerPools", "workerPools"), + resourceids.UserSpecifiedSegment("workerPoolName", "workerPoolValue"), + resourceids.StaticSegment("staticInstances", "instances", "instances"), + resourceids.UserSpecifiedSegment("instanceName", "instanceValue"), + } +} + +// String returns a human-readable description of this Worker Pool Instance ID +func (id WorkerPoolInstanceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Hosting Environment Name: %q", id.HostingEnvironmentName), + fmt.Sprintf("Worker Pool Name: %q", id.WorkerPoolName), + fmt.Sprintf("Instance Name: %q", id.InstanceName), + } + return fmt.Sprintf("Worker Pool Instance (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_approveorrejectprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_approveorrejectprivateendpointconnection.go new file mode 100644 index 000000000000..d7cab2b50908 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_approveorrejectprivateendpointconnection.go @@ -0,0 +1,74 @@ +package appserviceenvironments + +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 AppServiceEnvironmentsClient) ApproveOrRejectPrivateEndpointConnection(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId, input RemotePrivateEndpointConnectionARMResource) (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 AppServiceEnvironmentsClient) ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId, input RemotePrivateEndpointConnectionARMResource) 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/appserviceenvironments/method_changevnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go new file mode 100644 index 000000000000..d75f62e4169d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go @@ -0,0 +1,89 @@ +package appserviceenvironments + +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 ChangeVnetOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *[]Site +} + +type ChangeVnetCompleteResult struct { + Items []Site +} + +// ChangeVnet ... +func (c AppServiceEnvironmentsClient) ChangeVnet(ctx context.Context, id commonids.AppServiceEnvironmentId, input VirtualNetworkProfile) (result ChangeVnetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/changeVirtualNetwork", 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 + } + + var values struct { + Values *[]Site `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ChangeVnetThenPoll performs ChangeVnet then polls until it's completed +func (c AppServiceEnvironmentsClient) ChangeVnetThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId, input VirtualNetworkProfile) error { + result, err := c.ChangeVnet(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ChangeVnet: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ChangeVnet: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdate.go new file mode 100644 index 000000000000..3f89071e79bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdate.go @@ -0,0 +1,76 @@ +package appserviceenvironments + +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 AppServiceEnvironmentsClient) CreateOrUpdate(ctx context.Context, id commonids.AppServiceEnvironmentId, input AppServiceEnvironmentResource) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + 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 + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c AppServiceEnvironmentsClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId, input AppServiceEnvironmentResource) 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/appserviceenvironments/method_createorupdatemultirolepool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdatemultirolepool.go new file mode 100644 index 000000000000..0e455ad8ceab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdatemultirolepool.go @@ -0,0 +1,75 @@ +package appserviceenvironments + +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 CreateOrUpdateMultiRolePoolOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateOrUpdateMultiRolePool ... +func (c AppServiceEnvironmentsClient) CreateOrUpdateMultiRolePool(ctx context.Context, id commonids.AppServiceEnvironmentId, input WorkerPoolResource) (result CreateOrUpdateMultiRolePoolOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/multiRolePools/default", 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 +} + +// CreateOrUpdateMultiRolePoolThenPoll performs CreateOrUpdateMultiRolePool then polls until it's completed +func (c AppServiceEnvironmentsClient) CreateOrUpdateMultiRolePoolThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId, input WorkerPoolResource) error { + result, err := c.CreateOrUpdateMultiRolePool(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdateMultiRolePool: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdateMultiRolePool: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdateworkerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdateworkerpool.go new file mode 100644 index 000000000000..19889645f530 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdateworkerpool.go @@ -0,0 +1,74 @@ +package appserviceenvironments + +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 CreateOrUpdateWorkerPoolOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateOrUpdateWorkerPool ... +func (c AppServiceEnvironmentsClient) CreateOrUpdateWorkerPool(ctx context.Context, id WorkerPoolId, input WorkerPoolResource) (result CreateOrUpdateWorkerPoolOperationResponse, 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 +} + +// CreateOrUpdateWorkerPoolThenPoll performs CreateOrUpdateWorkerPool then polls until it's completed +func (c AppServiceEnvironmentsClient) CreateOrUpdateWorkerPoolThenPoll(ctx context.Context, id WorkerPoolId, input WorkerPoolResource) error { + result, err := c.CreateOrUpdateWorkerPool(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdateWorkerPool: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdateWorkerPool: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go new file mode 100644 index 000000000000..67e550c19291 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go @@ -0,0 +1,99 @@ +package appserviceenvironments + +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 DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + ForceDelete *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.ForceDelete != nil { + out.Append("forceDelete", fmt.Sprintf("%v", *o.ForceDelete)) + } + return &out +} + +// Delete ... +func (c AppServiceEnvironmentsClient) Delete(ctx context.Context, id commonids.AppServiceEnvironmentId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + 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 + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c AppServiceEnvironmentsClient) DeleteThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go new file mode 100644 index 000000000000..089f30b0b524 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go @@ -0,0 +1,54 @@ +package appserviceenvironments + +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 DeleteAseCustomDnsSuffixConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *interface{} +} + +// DeleteAseCustomDnsSuffixConfiguration ... +func (c AppServiceEnvironmentsClient) DeleteAseCustomDnsSuffixConfiguration(ctx context.Context, id commonids.AppServiceEnvironmentId) (result DeleteAseCustomDnsSuffixConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/configurations/customdnssuffix", 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/appserviceenvironments/method_deleteprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteprivateendpointconnection.go new file mode 100644 index 000000000000..254bd4b07884 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteprivateendpointconnection.go @@ -0,0 +1,71 @@ +package appserviceenvironments + +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 AppServiceEnvironmentsClient) DeletePrivateEndpointConnection(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId) (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 AppServiceEnvironmentsClient) DeletePrivateEndpointConnectionThenPoll(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId) 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/appserviceenvironments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_get.go new file mode 100644 index 000000000000..41f11fa71b7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_get.go @@ -0,0 +1,52 @@ +package appserviceenvironments + +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 *AppServiceEnvironmentResource +} + +// Get ... +func (c AppServiceEnvironmentsClient) Get(ctx context.Context, id commonids.AppServiceEnvironmentId) (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/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go new file mode 100644 index 000000000000..e58f8f3a46cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go @@ -0,0 +1,53 @@ +package appserviceenvironments + +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 GetAseCustomDnsSuffixConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CustomDnsSuffixConfiguration +} + +// GetAseCustomDnsSuffixConfiguration ... +func (c AppServiceEnvironmentsClient) GetAseCustomDnsSuffixConfiguration(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetAseCustomDnsSuffixConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/configurations/customdnssuffix", 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/appserviceenvironments/method_getasev3networkingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasev3networkingconfiguration.go new file mode 100644 index 000000000000..33ff156e7bdf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasev3networkingconfiguration.go @@ -0,0 +1,53 @@ +package appserviceenvironments + +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 GetAseV3NetworkingConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AseV3NetworkingConfiguration +} + +// GetAseV3NetworkingConfiguration ... +func (c AppServiceEnvironmentsClient) GetAseV3NetworkingConfiguration(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetAseV3NetworkingConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/configurations/networking", 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/appserviceenvironments/method_getdiagnosticsitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getdiagnosticsitem.go new file mode 100644 index 000000000000..d47606f5edd0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getdiagnosticsitem.go @@ -0,0 +1,51 @@ +package appserviceenvironments + +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 GetDiagnosticsItemOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HostingEnvironmentDiagnostics +} + +// GetDiagnosticsItem ... +func (c AppServiceEnvironmentsClient) GetDiagnosticsItem(ctx context.Context, id HostingEnvironmentDiagnosticId) (result GetDiagnosticsItemOperationResponse, 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/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go new file mode 100644 index 000000000000..c9d6e0fb97d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 GetInboundNetworkDependenciesEndpointsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]InboundEnvironmentEndpoint +} + +type GetInboundNetworkDependenciesEndpointsCompleteResult struct { + Items []InboundEnvironmentEndpoint +} + +// GetInboundNetworkDependenciesEndpoints ... +func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetInboundNetworkDependenciesEndpointsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/inboundNetworkDependenciesEndpoints", 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 *[]InboundEnvironmentEndpoint `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// GetInboundNetworkDependenciesEndpointsComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpointsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (GetInboundNetworkDependenciesEndpointsCompleteResult, error) { + return c.GetInboundNetworkDependenciesEndpointsCompleteMatchingPredicate(ctx, id, InboundEnvironmentEndpointOperationPredicate{}) +} + +// GetInboundNetworkDependenciesEndpointsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpointsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate InboundEnvironmentEndpointOperationPredicate) (result GetInboundNetworkDependenciesEndpointsCompleteResult, err error) { + items := make([]InboundEnvironmentEndpoint, 0) + + resp, err := c.GetInboundNetworkDependenciesEndpoints(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 = GetInboundNetworkDependenciesEndpointsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go new file mode 100644 index 000000000000..d2fcfb6fd4aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go @@ -0,0 +1,53 @@ +package appserviceenvironments + +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 GetMultiRolePoolOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WorkerPoolResource +} + +// GetMultiRolePool ... +func (c AppServiceEnvironmentsClient) GetMultiRolePool(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetMultiRolePoolOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/multiRolePools/default", 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/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go new file mode 100644 index 000000000000..a3a688a58319 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 GetOutboundNetworkDependenciesEndpointsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]OutboundEnvironmentEndpoint +} + +type GetOutboundNetworkDependenciesEndpointsCompleteResult struct { + Items []OutboundEnvironmentEndpoint +} + +// GetOutboundNetworkDependenciesEndpoints ... +func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetOutboundNetworkDependenciesEndpointsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", 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 *[]OutboundEnvironmentEndpoint `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// GetOutboundNetworkDependenciesEndpointsComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpointsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (GetOutboundNetworkDependenciesEndpointsCompleteResult, error) { + return c.GetOutboundNetworkDependenciesEndpointsCompleteMatchingPredicate(ctx, id, OutboundEnvironmentEndpointOperationPredicate{}) +} + +// GetOutboundNetworkDependenciesEndpointsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpointsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate OutboundEnvironmentEndpointOperationPredicate) (result GetOutboundNetworkDependenciesEndpointsCompleteResult, err error) { + items := make([]OutboundEnvironmentEndpoint, 0) + + resp, err := c.GetOutboundNetworkDependenciesEndpoints(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 = GetOutboundNetworkDependenciesEndpointsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go new file mode 100644 index 000000000000..c7245babf611 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go @@ -0,0 +1,51 @@ +package appserviceenvironments + +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 AppServiceEnvironmentsClient) GetPrivateEndpointConnection(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId) (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/appserviceenvironments/method_getprivateendpointconnectionlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnectionlist.go new file mode 100644 index 000000000000..d0934658d921 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnectionlist.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 AppServiceEnvironmentsClient) GetPrivateEndpointConnectionList(ctx context.Context, id commonids.AppServiceEnvironmentId) (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 AppServiceEnvironmentsClient) GetPrivateEndpointConnectionListComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (GetPrivateEndpointConnectionListCompleteResult, error) { + return c.GetPrivateEndpointConnectionListCompleteMatchingPredicate(ctx, id, RemotePrivateEndpointConnectionARMResourceOperationPredicate{}) +} + +// GetPrivateEndpointConnectionListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) GetPrivateEndpointConnectionListCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, 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/appserviceenvironments/method_getprivatelinkresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivatelinkresources.go new file mode 100644 index 000000000000..a1325a3ad3a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivatelinkresources.go @@ -0,0 +1,53 @@ +package appserviceenvironments + +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 AppServiceEnvironmentsClient) GetPrivateLinkResources(ctx context.Context, id commonids.AppServiceEnvironmentId) (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/appserviceenvironments/method_getvipinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getvipinfo.go new file mode 100644 index 000000000000..b55b497bad15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getvipinfo.go @@ -0,0 +1,53 @@ +package appserviceenvironments + +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 GetVipInfoOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AddressResponse +} + +// GetVipInfo ... +func (c AppServiceEnvironmentsClient) GetVipInfo(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetVipInfoOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/capacities/virtualip", 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/appserviceenvironments/method_getworkerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getworkerpool.go new file mode 100644 index 000000000000..416590b74f7c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getworkerpool.go @@ -0,0 +1,51 @@ +package appserviceenvironments + +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 GetWorkerPoolOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WorkerPoolResource +} + +// GetWorkerPool ... +func (c AppServiceEnvironmentsClient) GetWorkerPool(ctx context.Context, id WorkerPoolId) (result GetWorkerPoolOperationResponse, 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/appserviceenvironments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_list.go new file mode 100644 index 000000000000..455fe6fc0ae7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_list.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 *[]AppServiceEnvironmentResource +} + +type ListCompleteResult struct { + Items []AppServiceEnvironmentResource +} + +// List ... +func (c AppServiceEnvironmentsClient) 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/hostingEnvironments", 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 *[]AppServiceEnvironmentResource `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 AppServiceEnvironmentsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, AppServiceEnvironmentResourceOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AppServiceEnvironmentResourceOperationPredicate) (result ListCompleteResult, err error) { + items := make([]AppServiceEnvironmentResource, 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/appserviceenvironments/method_listappserviceplans.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listappserviceplans.go new file mode 100644 index 000000000000..0072f2e901bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listappserviceplans.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 ListAppServicePlansOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AppServicePlan +} + +type ListAppServicePlansCompleteResult struct { + Items []AppServicePlan +} + +// ListAppServicePlans ... +func (c AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListAppServicePlansOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/serverFarms", 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 *[]AppServicePlan `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAppServicePlansComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListAppServicePlansComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListAppServicePlansCompleteResult, error) { + return c.ListAppServicePlansCompleteMatchingPredicate(ctx, id, AppServicePlanOperationPredicate{}) +} + +// ListAppServicePlansCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListAppServicePlansCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate AppServicePlanOperationPredicate) (result ListAppServicePlansCompleteResult, err error) { + items := make([]AppServicePlan, 0) + + resp, err := c.ListAppServicePlans(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 = ListAppServicePlansCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go new file mode 100644 index 000000000000..db946a5ae307 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 *[]AppServiceEnvironmentResource +} + +type ListByResourceGroupCompleteResult struct { + Items []AppServiceEnvironmentResource +} + +// ListByResourceGroup ... +func (c AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (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/hostingEnvironments", 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 *[]AppServiceEnvironmentResource `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 AppServiceEnvironmentsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, AppServiceEnvironmentResourceOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AppServiceEnvironmentResourceOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]AppServiceEnvironmentResource, 0) + + resp, err := c.ListByResourceGroup(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 = ListByResourceGroupCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go new file mode 100644 index 000000000000..13893db204e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 ListCapacitiesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]StampCapacity +} + +type ListCapacitiesCompleteResult struct { + Items []StampCapacity +} + +// ListCapacities ... +func (c AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListCapacitiesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/capacities/compute", 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 *[]StampCapacity `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListCapacitiesComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListCapacitiesComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListCapacitiesCompleteResult, error) { + return c.ListCapacitiesCompleteMatchingPredicate(ctx, id, StampCapacityOperationPredicate{}) +} + +// ListCapacitiesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListCapacitiesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate StampCapacityOperationPredicate) (result ListCapacitiesCompleteResult, err error) { + items := make([]StampCapacity, 0) + + resp, err := c.ListCapacities(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 = ListCapacitiesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go new file mode 100644 index 000000000000..8ffa5747d541 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go @@ -0,0 +1,53 @@ +package appserviceenvironments + +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 ListDiagnosticsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]HostingEnvironmentDiagnostics +} + +// ListDiagnostics ... +func (c AppServiceEnvironmentsClient) ListDiagnostics(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListDiagnosticsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/diagnostics", 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/appserviceenvironments/method_listmultirolemetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolemetricdefinitions.go new file mode 100644 index 000000000000..86a7ffc2821d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolemetricdefinitions.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 ListMultiRoleMetricDefinitionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ResourceMetricDefinition +} + +type ListMultiRoleMetricDefinitionsCompleteResult struct { + Items []ResourceMetricDefinition +} + +// ListMultiRoleMetricDefinitions ... +func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRoleMetricDefinitionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/multiRolePools/default/metricdefinitions", 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 *[]ResourceMetricDefinition `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListMultiRoleMetricDefinitionsComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListMultiRoleMetricDefinitionsCompleteResult, error) { + return c.ListMultiRoleMetricDefinitionsCompleteMatchingPredicate(ctx, id, ResourceMetricDefinitionOperationPredicate{}) +} + +// ListMultiRoleMetricDefinitionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate ResourceMetricDefinitionOperationPredicate) (result ListMultiRoleMetricDefinitionsCompleteResult, err error) { + items := make([]ResourceMetricDefinition, 0) + + resp, err := c.ListMultiRoleMetricDefinitions(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 = ListMultiRoleMetricDefinitionsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go new file mode 100644 index 000000000000..851b7a32afb2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go @@ -0,0 +1,89 @@ +package appserviceenvironments + +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 ListMultiRolePoolInstanceMetricDefinitionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ResourceMetricDefinition +} + +type ListMultiRolePoolInstanceMetricDefinitionsCompleteResult struct { + Items []ResourceMetricDefinition +} + +// ListMultiRolePoolInstanceMetricDefinitions ... +func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitions(ctx context.Context, id DefaultInstanceId) (result ListMultiRolePoolInstanceMetricDefinitionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/metricdefinitions", 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 *[]ResourceMetricDefinition `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListMultiRolePoolInstanceMetricDefinitionsComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsComplete(ctx context.Context, id DefaultInstanceId) (ListMultiRolePoolInstanceMetricDefinitionsCompleteResult, error) { + return c.ListMultiRolePoolInstanceMetricDefinitionsCompleteMatchingPredicate(ctx, id, ResourceMetricDefinitionOperationPredicate{}) +} + +// ListMultiRolePoolInstanceMetricDefinitionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsCompleteMatchingPredicate(ctx context.Context, id DefaultInstanceId, predicate ResourceMetricDefinitionOperationPredicate) (result ListMultiRolePoolInstanceMetricDefinitionsCompleteResult, err error) { + items := make([]ResourceMetricDefinition, 0) + + resp, err := c.ListMultiRolePoolInstanceMetricDefinitions(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 = ListMultiRolePoolInstanceMetricDefinitionsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go new file mode 100644 index 000000000000..24edd8729c40 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 ListMultiRolePoolsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WorkerPoolResource +} + +type ListMultiRolePoolsCompleteResult struct { + Items []WorkerPoolResource +} + +// ListMultiRolePools ... +func (c AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRolePoolsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/multiRolePools", 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 *[]WorkerPoolResource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListMultiRolePoolsComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListMultiRolePoolsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListMultiRolePoolsCompleteResult, error) { + return c.ListMultiRolePoolsCompleteMatchingPredicate(ctx, id, WorkerPoolResourceOperationPredicate{}) +} + +// ListMultiRolePoolsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListMultiRolePoolsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate WorkerPoolResourceOperationPredicate) (result ListMultiRolePoolsCompleteResult, err error) { + items := make([]WorkerPoolResource, 0) + + resp, err := c.ListMultiRolePools(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 = ListMultiRolePoolsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go new file mode 100644 index 000000000000..6829736889f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 ListMultiRolePoolSkusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SkuInfo +} + +type ListMultiRolePoolSkusCompleteResult struct { + Items []SkuInfo +} + +// ListMultiRolePoolSkus ... +func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRolePoolSkusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/multiRolePools/default/skus", 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 *[]SkuInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListMultiRolePoolSkusComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkusComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListMultiRolePoolSkusCompleteResult, error) { + return c.ListMultiRolePoolSkusCompleteMatchingPredicate(ctx, id, SkuInfoOperationPredicate{}) +} + +// ListMultiRolePoolSkusCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkusCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate SkuInfoOperationPredicate) (result ListMultiRolePoolSkusCompleteResult, err error) { + items := make([]SkuInfo, 0) + + resp, err := c.ListMultiRolePoolSkus(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 = ListMultiRolePoolSkusCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go new file mode 100644 index 000000000000..8437ab9d7910 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 ListMultiRoleUsagesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Usage +} + +type ListMultiRoleUsagesCompleteResult struct { + Items []Usage +} + +// ListMultiRoleUsages ... +func (c AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRoleUsagesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/multiRolePools/default/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 *[]Usage `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListMultiRoleUsagesComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListMultiRoleUsagesComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListMultiRoleUsagesCompleteResult, error) { + return c.ListMultiRoleUsagesCompleteMatchingPredicate(ctx, id, UsageOperationPredicate{}) +} + +// ListMultiRoleUsagesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListMultiRoleUsagesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate UsageOperationPredicate) (result ListMultiRoleUsagesCompleteResult, err error) { + items := make([]Usage, 0) + + resp, err := c.ListMultiRoleUsages(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 = ListMultiRoleUsagesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go new file mode 100644 index 000000000000..e1f2a6bee78c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go @@ -0,0 +1,53 @@ +package appserviceenvironments + +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 ListOperationsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Operation +} + +// ListOperations ... +func (c AppServiceEnvironmentsClient) ListOperations(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListOperationsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/operations", 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/appserviceenvironments/method_listusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go new file mode 100644 index 000000000000..98052555e4e7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go @@ -0,0 +1,118 @@ +package appserviceenvironments + +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 AppServiceEnvironmentsClient) ListUsages(ctx context.Context, id commonids.AppServiceEnvironmentId, 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 AppServiceEnvironmentsClient) ListUsagesComplete(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListUsagesOperationOptions) (ListUsagesCompleteResult, error) { + return c.ListUsagesCompleteMatchingPredicate(ctx, id, options, CsmUsageQuotaOperationPredicate{}) +} + +// ListUsagesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListUsagesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, 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/appserviceenvironments/method_listwebapps.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go new file mode 100644 index 000000000000..c5474d9ba52a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go @@ -0,0 +1,118 @@ +package appserviceenvironments + +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 ListWebAppsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Site +} + +type ListWebAppsCompleteResult struct { + Items []Site +} + +type ListWebAppsOperationOptions struct { + PropertiesToInclude *string +} + +func DefaultListWebAppsOperationOptions() ListWebAppsOperationOptions { + return ListWebAppsOperationOptions{} +} + +func (o ListWebAppsOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListWebAppsOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListWebAppsOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.PropertiesToInclude != nil { + out.Append("propertiesToInclude", fmt.Sprintf("%v", *o.PropertiesToInclude)) + } + return &out +} + +// ListWebApps ... +func (c AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListWebAppsOperationOptions) (result ListWebAppsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/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 +} + +// ListWebAppsComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListWebAppsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListWebAppsOperationOptions) (ListWebAppsCompleteResult, error) { + return c.ListWebAppsCompleteMatchingPredicate(ctx, id, options, SiteOperationPredicate{}) +} + +// ListWebAppsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListWebAppsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListWebAppsOperationOptions, predicate SiteOperationPredicate) (result ListWebAppsCompleteResult, err error) { + items := make([]Site, 0) + + resp, err := c.ListWebApps(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 = ListWebAppsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go new file mode 100644 index 000000000000..01bae69bd4ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go @@ -0,0 +1,89 @@ +package appserviceenvironments + +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 ListWebWorkerMetricDefinitionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ResourceMetricDefinition +} + +type ListWebWorkerMetricDefinitionsCompleteResult struct { + Items []ResourceMetricDefinition +} + +// ListWebWorkerMetricDefinitions ... +func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx context.Context, id WorkerPoolId) (result ListWebWorkerMetricDefinitionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/metricdefinitions", 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 *[]ResourceMetricDefinition `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListWebWorkerMetricDefinitionsComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitionsComplete(ctx context.Context, id WorkerPoolId) (ListWebWorkerMetricDefinitionsCompleteResult, error) { + return c.ListWebWorkerMetricDefinitionsCompleteMatchingPredicate(ctx, id, ResourceMetricDefinitionOperationPredicate{}) +} + +// ListWebWorkerMetricDefinitionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitionsCompleteMatchingPredicate(ctx context.Context, id WorkerPoolId, predicate ResourceMetricDefinitionOperationPredicate) (result ListWebWorkerMetricDefinitionsCompleteResult, err error) { + items := make([]ResourceMetricDefinition, 0) + + resp, err := c.ListWebWorkerMetricDefinitions(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 = ListWebWorkerMetricDefinitionsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go new file mode 100644 index 000000000000..44e24ee780f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go @@ -0,0 +1,89 @@ +package appserviceenvironments + +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 ListWebWorkerUsagesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Usage +} + +type ListWebWorkerUsagesCompleteResult struct { + Items []Usage +} + +// ListWebWorkerUsages ... +func (c AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Context, id WorkerPoolId) (result ListWebWorkerUsagesOperationResponse, 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 *[]Usage `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListWebWorkerUsagesComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListWebWorkerUsagesComplete(ctx context.Context, id WorkerPoolId) (ListWebWorkerUsagesCompleteResult, error) { + return c.ListWebWorkerUsagesCompleteMatchingPredicate(ctx, id, UsageOperationPredicate{}) +} + +// ListWebWorkerUsagesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListWebWorkerUsagesCompleteMatchingPredicate(ctx context.Context, id WorkerPoolId, predicate UsageOperationPredicate) (result ListWebWorkerUsagesCompleteResult, err error) { + items := make([]Usage, 0) + + resp, err := c.ListWebWorkerUsages(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 = ListWebWorkerUsagesCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go new file mode 100644 index 000000000000..38a66239fa86 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go @@ -0,0 +1,89 @@ +package appserviceenvironments + +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 ListWorkerPoolInstanceMetricDefinitionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ResourceMetricDefinition +} + +type ListWorkerPoolInstanceMetricDefinitionsCompleteResult struct { + Items []ResourceMetricDefinition +} + +// ListWorkerPoolInstanceMetricDefinitions ... +func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitions(ctx context.Context, id WorkerPoolInstanceId) (result ListWorkerPoolInstanceMetricDefinitionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/metricdefinitions", 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 *[]ResourceMetricDefinition `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListWorkerPoolInstanceMetricDefinitionsComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitionsComplete(ctx context.Context, id WorkerPoolInstanceId) (ListWorkerPoolInstanceMetricDefinitionsCompleteResult, error) { + return c.ListWorkerPoolInstanceMetricDefinitionsCompleteMatchingPredicate(ctx, id, ResourceMetricDefinitionOperationPredicate{}) +} + +// ListWorkerPoolInstanceMetricDefinitionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitionsCompleteMatchingPredicate(ctx context.Context, id WorkerPoolInstanceId, predicate ResourceMetricDefinitionOperationPredicate) (result ListWorkerPoolInstanceMetricDefinitionsCompleteResult, err error) { + items := make([]ResourceMetricDefinition, 0) + + resp, err := c.ListWorkerPoolInstanceMetricDefinitions(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 = ListWorkerPoolInstanceMetricDefinitionsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go new file mode 100644 index 000000000000..39832f50f748 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go @@ -0,0 +1,90 @@ +package appserviceenvironments + +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 ListWorkerPoolsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WorkerPoolResource +} + +type ListWorkerPoolsCompleteResult struct { + Items []WorkerPoolResource +} + +// ListWorkerPools ... +func (c AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListWorkerPoolsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/workerPools", 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 *[]WorkerPoolResource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListWorkerPoolsComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListWorkerPoolsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListWorkerPoolsCompleteResult, error) { + return c.ListWorkerPoolsCompleteMatchingPredicate(ctx, id, WorkerPoolResourceOperationPredicate{}) +} + +// ListWorkerPoolsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListWorkerPoolsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate WorkerPoolResourceOperationPredicate) (result ListWorkerPoolsCompleteResult, err error) { + items := make([]WorkerPoolResource, 0) + + resp, err := c.ListWorkerPools(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 = ListWorkerPoolsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go new file mode 100644 index 000000000000..78a45eabb80b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go @@ -0,0 +1,89 @@ +package appserviceenvironments + +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 ListWorkerPoolSkusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SkuInfo +} + +type ListWorkerPoolSkusCompleteResult struct { + Items []SkuInfo +} + +// ListWorkerPoolSkus ... +func (c AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Context, id WorkerPoolId) (result ListWorkerPoolSkusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/skus", 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 *[]SkuInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListWorkerPoolSkusComplete retrieves all the results into a single object +func (c AppServiceEnvironmentsClient) ListWorkerPoolSkusComplete(ctx context.Context, id WorkerPoolId) (ListWorkerPoolSkusCompleteResult, error) { + return c.ListWorkerPoolSkusCompleteMatchingPredicate(ctx, id, SkuInfoOperationPredicate{}) +} + +// ListWorkerPoolSkusCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServiceEnvironmentsClient) ListWorkerPoolSkusCompleteMatchingPredicate(ctx context.Context, id WorkerPoolId, predicate SkuInfoOperationPredicate) (result ListWorkerPoolSkusCompleteResult, err error) { + items := make([]SkuInfo, 0) + + resp, err := c.ListWorkerPoolSkus(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 = ListWorkerPoolSkusCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_reboot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_reboot.go new file mode 100644 index 000000000000..da6ac7193658 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_reboot.go @@ -0,0 +1,48 @@ +package appserviceenvironments + +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 RebootOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// Reboot ... +func (c AppServiceEnvironmentsClient) Reboot(ctx context.Context, id commonids.AppServiceEnvironmentId) (result RebootOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/reboot", 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/appserviceenvironments/method_resume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go new file mode 100644 index 000000000000..f3036cc72a4a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go @@ -0,0 +1,85 @@ +package appserviceenvironments + +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 ResumeOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *[]Site +} + +type ResumeCompleteResult struct { + Items []Site +} + +// Resume ... +func (c AppServiceEnvironmentsClient) Resume(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ResumeOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/resume", 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 + } + + var values struct { + Values *[]Site `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ResumeThenPoll performs Resume then polls until it's completed +func (c AppServiceEnvironmentsClient) ResumeThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId) error { + result, err := c.Resume(ctx, id) + if err != nil { + return fmt.Errorf("performing Resume: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Resume: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go new file mode 100644 index 000000000000..7342eb3fac82 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go @@ -0,0 +1,85 @@ +package appserviceenvironments + +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 SuspendOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *[]Site +} + +type SuspendCompleteResult struct { + Items []Site +} + +// Suspend ... +func (c AppServiceEnvironmentsClient) Suspend(ctx context.Context, id commonids.AppServiceEnvironmentId) (result SuspendOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/suspend", 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 + } + + var values struct { + Values *[]Site `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SuspendThenPoll performs Suspend then polls until it's completed +func (c AppServiceEnvironmentsClient) SuspendThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId) error { + result, err := c.Suspend(ctx, id) + if err != nil { + return fmt.Errorf("performing Suspend: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Suspend: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_testupgradeavailablenotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_testupgradeavailablenotification.go new file mode 100644 index 000000000000..3c1081f9144f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_testupgradeavailablenotification.go @@ -0,0 +1,48 @@ +package appserviceenvironments + +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 TestUpgradeAvailableNotificationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// TestUpgradeAvailableNotification ... +func (c AppServiceEnvironmentsClient) TestUpgradeAvailableNotification(ctx context.Context, id commonids.AppServiceEnvironmentId) (result TestUpgradeAvailableNotificationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/testUpgradeAvailableNotification", 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/appserviceenvironments/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_update.go new file mode 100644 index 000000000000..d767f3f1f1f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_update.go @@ -0,0 +1,58 @@ +package appserviceenvironments + +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 *AppServiceEnvironmentResource +} + +// Update ... +func (c AppServiceEnvironmentsClient) Update(ctx context.Context, id commonids.AppServiceEnvironmentId, input AppServiceEnvironmentPatchResource) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + 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/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go new file mode 100644 index 000000000000..c463438ab394 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go @@ -0,0 +1,57 @@ +package appserviceenvironments + +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 UpdateAseCustomDnsSuffixConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CustomDnsSuffixConfiguration +} + +// UpdateAseCustomDnsSuffixConfiguration ... +func (c AppServiceEnvironmentsClient) UpdateAseCustomDnsSuffixConfiguration(ctx context.Context, id commonids.AppServiceEnvironmentId, input CustomDnsSuffixConfiguration) (result UpdateAseCustomDnsSuffixConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/configurations/customdnssuffix", 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/appserviceenvironments/method_updateasenetworkingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasenetworkingconfiguration.go new file mode 100644 index 000000000000..5991278929da --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasenetworkingconfiguration.go @@ -0,0 +1,57 @@ +package appserviceenvironments + +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 UpdateAseNetworkingConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AseV3NetworkingConfiguration +} + +// UpdateAseNetworkingConfiguration ... +func (c AppServiceEnvironmentsClient) UpdateAseNetworkingConfiguration(ctx context.Context, id commonids.AppServiceEnvironmentId, input AseV3NetworkingConfiguration) (result UpdateAseNetworkingConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/configurations/networking", 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/appserviceenvironments/method_updatemultirolepool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updatemultirolepool.go new file mode 100644 index 000000000000..1ab7fd5fa20a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updatemultirolepool.go @@ -0,0 +1,58 @@ +package appserviceenvironments + +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 UpdateMultiRolePoolOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WorkerPoolResource +} + +// UpdateMultiRolePool ... +func (c AppServiceEnvironmentsClient) UpdateMultiRolePool(ctx context.Context, id commonids.AppServiceEnvironmentId, input WorkerPoolResource) (result UpdateMultiRolePoolOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: fmt.Sprintf("%s/multiRolePools/default", 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/appserviceenvironments/method_updateworkerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateworkerpool.go new file mode 100644 index 000000000000..8b83019d6608 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateworkerpool.go @@ -0,0 +1,56 @@ +package appserviceenvironments + +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 UpdateWorkerPoolOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WorkerPoolResource +} + +// UpdateWorkerPool ... +func (c AppServiceEnvironmentsClient) UpdateWorkerPool(ctx context.Context, id WorkerPoolId, input WorkerPoolResource) (result UpdateWorkerPoolOperationResponse, 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/appserviceenvironments/method_upgrade.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_upgrade.go new file mode 100644 index 000000000000..36584682ac1c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_upgrade.go @@ -0,0 +1,70 @@ +package appserviceenvironments + +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 UpgradeOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Upgrade ... +func (c AppServiceEnvironmentsClient) Upgrade(ctx context.Context, id commonids.AppServiceEnvironmentId) (result UpgradeOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/upgrade", 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 +} + +// UpgradeThenPoll performs Upgrade then polls until it's completed +func (c AppServiceEnvironmentsClient) UpgradeThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId) error { + result, err := c.Upgrade(ctx, id) + if err != nil { + return fmt.Errorf("performing Upgrade: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Upgrade: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponse.go new file mode 100644 index 000000000000..5949ada3aeb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponse.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressResponse struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AddressResponseProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponseproperties.go new file mode 100644 index 000000000000..22241e69975d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponseproperties.go @@ -0,0 +1,11 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressResponseProperties struct { + InternalIPAddress *string `json:"internalIpAddress,omitempty"` + OutboundIPAddresses *[]string `json:"outboundIpAddresses,omitempty"` + ServiceIPAddress *string `json:"serviceIpAddress,omitempty"` + VipMappings *[]VirtualIPMapping `json:"vipMappings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apidefinitioninfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apidefinitioninfo.go new file mode 100644 index 000000000000..b29b3fb28ec1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apidefinitioninfo.go @@ -0,0 +1,8 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_apimanagementconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apimanagementconfig.go new file mode 100644 index 000000000000..eca6e5d45b95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apimanagementconfig.go @@ -0,0 +1,8 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_appserviceenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironment.go new file mode 100644 index 000000000000..7e868462756f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironment.go @@ -0,0 +1,27 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_appserviceenvironmentpatchresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentpatchresource.go new file mode 100644 index 000000000000..594e57510dd2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentpatchresource.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppServiceEnvironmentPatchResource struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AppServiceEnvironment `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentresource.go new file mode 100644 index 000000000000..31263ba6394f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentresource.go @@ -0,0 +1,14 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppServiceEnvironmentResource struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *AppServiceEnvironment `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/appserviceenvironments/model_appserviceplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplan.go new file mode 100644 index 000000000000..499328be2155 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplan.go @@ -0,0 +1,16 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppServicePlan struct { + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *AppServicePlanProperties `json:"properties,omitempty"` + Sku *SkuDescription `json:"sku,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/appserviceenvironments/model_appserviceplanproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplanproperties.go new file mode 100644 index 000000000000..df541821251f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplanproperties.go @@ -0,0 +1,60 @@ +package appserviceenvironments + +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 AppServicePlanProperties struct { + ElasticScaleEnabled *bool `json:"elasticScaleEnabled,omitempty"` + FreeOfferExpirationTime *string `json:"freeOfferExpirationTime,omitempty"` + GeoRegion *string `json:"geoRegion,omitempty"` + HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` + HyperV *bool `json:"hyperV,omitempty"` + IsSpot *bool `json:"isSpot,omitempty"` + IsXenon *bool `json:"isXenon,omitempty"` + KubeEnvironmentProfile *KubeEnvironmentProfile `json:"kubeEnvironmentProfile,omitempty"` + MaximumElasticWorkerCount *int64 `json:"maximumElasticWorkerCount,omitempty"` + MaximumNumberOfWorkers *int64 `json:"maximumNumberOfWorkers,omitempty"` + NumberOfSites *int64 `json:"numberOfSites,omitempty"` + NumberOfWorkers *int64 `json:"numberOfWorkers,omitempty"` + PerSiteScaling *bool `json:"perSiteScaling,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Reserved *bool `json:"reserved,omitempty"` + ResourceGroup *string `json:"resourceGroup,omitempty"` + SpotExpirationTime *string `json:"spotExpirationTime,omitempty"` + Status *StatusOptions `json:"status,omitempty"` + Subscription *string `json:"subscription,omitempty"` + TargetWorkerCount *int64 `json:"targetWorkerCount,omitempty"` + TargetWorkerSizeId *int64 `json:"targetWorkerSizeId,omitempty"` + WorkerTierName *string `json:"workerTierName,omitempty"` + ZoneRedundant *bool `json:"zoneRedundant,omitempty"` +} + +func (o *AppServicePlanProperties) GetFreeOfferExpirationTimeAsTime() (*time.Time, error) { + if o.FreeOfferExpirationTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.FreeOfferExpirationTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *AppServicePlanProperties) SetFreeOfferExpirationTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.FreeOfferExpirationTime = &formatted +} + +func (o *AppServicePlanProperties) GetSpotExpirationTimeAsTime() (*time.Time, error) { + if o.SpotExpirationTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.SpotExpirationTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *AppServicePlanProperties) SetSpotExpirationTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.SpotExpirationTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_armidwrapper.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_armidwrapper.go new file mode 100644 index 000000000000..23291cc16243 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_armidwrapper.go @@ -0,0 +1,8 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_asev3networkingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfiguration.go new file mode 100644 index 000000000000..dd9c6b64a48e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfiguration.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_asev3networkingconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfigurationproperties.go new file mode 100644 index 000000000000..82c8e80d94e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfigurationproperties.go @@ -0,0 +1,15 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_autohealactions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealactions.go new file mode 100644 index 000000000000..a53db3433d9e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealactions.go @@ -0,0 +1,10 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_autohealcustomaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealcustomaction.go new file mode 100644 index 000000000000..b4979e90b7a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealcustomaction.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_autohealrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealrules.go new file mode 100644 index 000000000000..cd835879fe28 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealrules.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_autohealtriggers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealtriggers.go new file mode 100644 index 000000000000..2d6842a3f7d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealtriggers.go @@ -0,0 +1,13 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_azurestorageinfovalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_azurestorageinfovalue.go new file mode 100644 index 000000000000..1105cf8b708d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_azurestorageinfovalue.go @@ -0,0 +1,13 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_capability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_capability.go new file mode 100644 index 000000000000..6b07c220befc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_capability.go @@ -0,0 +1,10 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_cloninginfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_cloninginfo.go new file mode 100644 index 000000000000..f9505ee3c376 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_cloninginfo.go @@ -0,0 +1,18 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_connstringinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_connstringinfo.go new file mode 100644 index 000000000000..a4172f898728 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_connstringinfo.go @@ -0,0 +1,10 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_corssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_corssettings.go new file mode 100644 index 000000000000..24390a287264 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_corssettings.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_csmusagequota.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_csmusagequota.go new file mode 100644 index 000000000000..0ba4a1dd059f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_csmusagequota.go @@ -0,0 +1,30 @@ +package appserviceenvironments + +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/appserviceenvironments/model_customdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfiguration.go new file mode 100644 index 000000000000..ed5fdcd1b9a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfiguration.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_customdnssuffixconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfigurationproperties.go new file mode 100644 index 000000000000..80ac53f7a527 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfigurationproperties.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_daprconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_daprconfig.go new file mode 100644 index 000000000000..9268fd62dc0d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_daprconfig.go @@ -0,0 +1,14 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_endpointdependency.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdependency.go new file mode 100644 index 000000000000..9840103ce20a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdependency.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EndpointDependency struct { + DomainName *string `json:"domainName,omitempty"` + EndpointDetails *[]EndpointDetail `json:"endpointDetails,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdetail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdetail.go new file mode 100644 index 000000000000..d738ebeb2601 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdetail.go @@ -0,0 +1,11 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EndpointDetail struct { + IPAddress *string `json:"ipAddress,omitempty"` + IsAccessible *bool `json:"isAccessible,omitempty"` + Latency *float64 `json:"latency,omitempty"` + Port *int64 `json:"port,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_errorentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_errorentity.go new file mode 100644 index 000000000000..8125008a5d2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_errorentity.go @@ -0,0 +1,15 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_experiments.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_experiments.go new file mode 100644 index 000000000000..9bd9653d59fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_experiments.go @@ -0,0 +1,8 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_extendedlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_extendedlocation.go new file mode 100644 index 000000000000..b24df8493f98 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_extendedlocation.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_handlermapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_handlermapping.go new file mode 100644 index 000000000000..add89600372d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_handlermapping.go @@ -0,0 +1,10 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_hostingenvironmentdiagnostics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentdiagnostics.go new file mode 100644 index 000000000000..1d298e705f6a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentdiagnostics.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HostingEnvironmentDiagnostics struct { + DiagnosticsOutput *string `json:"diagnosticsOutput,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentprofile.go new file mode 100644 index 000000000000..e67fbad99e56 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentprofile.go @@ -0,0 +1,10 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_hostnamesslstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostnamesslstate.go new file mode 100644 index 000000000000..b60ed2b41ef3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostnamesslstate.go @@ -0,0 +1,13 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_inboundenvironmentendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_inboundenvironmentendpoint.go new file mode 100644 index 000000000000..83dea79b75b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_inboundenvironmentendpoint.go @@ -0,0 +1,10 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundEnvironmentEndpoint struct { + Description *string `json:"description,omitempty"` + Endpoints *[]string `json:"endpoints,omitempty"` + Ports *[]string `json:"ports,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_ipsecurityrestriction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_ipsecurityrestriction.go new file mode 100644 index 000000000000..cce3b7521d2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_ipsecurityrestriction.go @@ -0,0 +1,18 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_kubeenvironmentprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_kubeenvironmentprofile.go new file mode 100644 index 000000000000..1ad013915faa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_kubeenvironmentprofile.go @@ -0,0 +1,10 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KubeEnvironmentProfile 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/appserviceenvironments/model_localizablestring.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_localizablestring.go new file mode 100644 index 000000000000..5974acdfb1a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_localizablestring.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_namevaluepair.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_namevaluepair.go new file mode 100644 index 000000000000..ac9cb553c367 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_namevaluepair.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_operation.go new file mode 100644 index 000000000000..e226cf16987e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_operation.go @@ -0,0 +1,57 @@ +package appserviceenvironments + +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/appserviceenvironments/model_outboundenvironmentendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_outboundenvironmentendpoint.go new file mode 100644 index 000000000000..04928bef582d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_outboundenvironmentendpoint.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OutboundEnvironmentEndpoint struct { + Category *string `json:"category,omitempty"` + Endpoints *[]EndpointDependency `json:"endpoints,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkconnectionstate.go new file mode 100644 index 000000000000..86ca1b14e249 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkconnectionstate.go @@ -0,0 +1,10 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_privatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresource.go new file mode 100644 index 000000000000..1b58321d272e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresource.go @@ -0,0 +1,11 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_privatelinkresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceproperties.go new file mode 100644 index 000000000000..ecd58509b6fa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceproperties.go @@ -0,0 +1,10 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_privatelinkresourceswrapper.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceswrapper.go new file mode 100644 index 000000000000..40cc8c0e8b11 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceswrapper.go @@ -0,0 +1,8 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_pushsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettings.go new file mode 100644 index 000000000000..addca78ae4d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettings.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_pushsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettingsproperties.go new file mode 100644 index 000000000000..6c80542248af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettingsproperties.go @@ -0,0 +1,11 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_rampuprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_rampuprule.go new file mode 100644 index 000000000000..ace74b58d889 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_rampuprule.go @@ -0,0 +1,15 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_remoteprivateendpointconnectionarmresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresource.go new file mode 100644 index 000000000000..314760728b69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresource.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_remoteprivateendpointconnectionarmresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresourceproperties.go new file mode 100644 index 000000000000..a96786cf3860 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresourceproperties.go @@ -0,0 +1,11 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_requestsbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_requestsbasedtrigger.go new file mode 100644 index 000000000000..57351c326128 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_requestsbasedtrigger.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_resourceconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourceconfig.go new file mode 100644 index 000000000000..d6f6c721d3c8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourceconfig.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_resourcemetricavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricavailability.go new file mode 100644 index 000000000000..2688445beaa2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricavailability.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceMetricAvailability struct { + Retention *string `json:"retention,omitempty"` + TimeGrain *string `json:"timeGrain,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinition.go new file mode 100644 index 000000000000..8645bb913f39 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinition.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceMetricDefinition struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceMetricDefinitionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinitionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinitionproperties.go new file mode 100644 index 000000000000..d1d6856879a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinitionproperties.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceMetricDefinitionProperties struct { + MetricAvailabilities *[]ResourceMetricAvailability `json:"metricAvailabilities,omitempty"` + PrimaryAggregationType *string `json:"primaryAggregationType,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + ResourceUri *string `json:"resourceUri,omitempty"` + Unit *string `json:"unit,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_site.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_site.go new file mode 100644 index 000000000000..a09cdcffac45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_site.go @@ -0,0 +1,20 @@ +package appserviceenvironments + +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/appserviceenvironments/model_siteconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteconfig.go new file mode 100644 index 000000000000..df4daa18008b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteconfig.go @@ -0,0 +1,97 @@ +package appserviceenvironments + +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/appserviceenvironments/model_sitelimits.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitelimits.go new file mode 100644 index 000000000000..b3130e580f6e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitelimits.go @@ -0,0 +1,10 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_sitemachinekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitemachinekey.go new file mode 100644 index 000000000000..267ce523b14a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitemachinekey.go @@ -0,0 +1,11 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_siteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteproperties.go new file mode 100644 index 000000000000..37d0c491c743 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteproperties.go @@ -0,0 +1,86 @@ +package appserviceenvironments + +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/appserviceenvironments/model_skucapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skucapacity.go new file mode 100644 index 000000000000..2e04c5df9780 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skucapacity.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_skudescription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skudescription.go new file mode 100644 index 000000000000..47f1a308d34f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skudescription.go @@ -0,0 +1,15 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SkuDescription struct { + Capabilities *[]Capability `json:"capabilities,omitempty"` + Capacity *int64 `json:"capacity,omitempty"` + Family *string `json:"family,omitempty"` + Locations *[]string `json:"locations,omitempty"` + Name *string `json:"name,omitempty"` + Size *string `json:"size,omitempty"` + SkuCapacity *SkuCapacity `json:"skuCapacity,omitempty"` + Tier *string `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skuinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skuinfo.go new file mode 100644 index 000000000000..9faba036b8a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skuinfo.go @@ -0,0 +1,10 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SkuInfo struct { + Capacity *SkuCapacity `json:"capacity,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Sku *SkuDescription `json:"sku,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slotswapstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slotswapstatus.go new file mode 100644 index 000000000000..ae1901b782ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slotswapstatus.go @@ -0,0 +1,28 @@ +package appserviceenvironments + +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/appserviceenvironments/model_slowrequestsbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slowrequestsbasedtrigger.go new file mode 100644 index 000000000000..ef74f6f556b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slowrequestsbasedtrigger.go @@ -0,0 +1,11 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_stampcapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_stampcapacity.go new file mode 100644 index 000000000000..138ebe09348a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_stampcapacity.go @@ -0,0 +1,18 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StampCapacity struct { + AvailableCapacity *int64 `json:"availableCapacity,omitempty"` + ComputeMode *ComputeModeOptions `json:"computeMode,omitempty"` + ExcludeFromCapacityAllocation *bool `json:"excludeFromCapacityAllocation,omitempty"` + IsApplicableForAllComputeModes *bool `json:"isApplicableForAllComputeModes,omitempty"` + IsLinux *bool `json:"isLinux,omitempty"` + Name *string `json:"name,omitempty"` + SiteMode *string `json:"siteMode,omitempty"` + TotalCapacity *int64 `json:"totalCapacity,omitempty"` + Unit *string `json:"unit,omitempty"` + WorkerSize *WorkerSizeOptions `json:"workerSize,omitempty"` + WorkerSizeId *int64 `json:"workerSizeId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesbasedtrigger.go new file mode 100644 index 000000000000..633cfec8a5ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesbasedtrigger.go @@ -0,0 +1,13 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_statuscodesrangebasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesrangebasedtrigger.go new file mode 100644 index 000000000000..ccbeced17afb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesrangebasedtrigger.go @@ -0,0 +1,11 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_usage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usage.go new file mode 100644 index 000000000000..7e9e07f45029 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usage.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Usage struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *UsageProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usageproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usageproperties.go new file mode 100644 index 000000000000..8b0f3272bdfa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usageproperties.go @@ -0,0 +1,33 @@ +package appserviceenvironments + +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 UsageProperties struct { + ComputeMode *ComputeModeOptions `json:"computeMode,omitempty"` + CurrentValue *int64 `json:"currentValue,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Limit *int64 `json:"limit,omitempty"` + NextResetTime *string `json:"nextResetTime,omitempty"` + ResourceName *string `json:"resourceName,omitempty"` + SiteMode *string `json:"siteMode,omitempty"` + Unit *string `json:"unit,omitempty"` +} + +func (o *UsageProperties) GetNextResetTimeAsTime() (*time.Time, error) { + if o.NextResetTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.NextResetTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *UsageProperties) 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/appserviceenvironments/model_virtualapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualapplication.go new file mode 100644 index 000000000000..bdac22a3474a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualapplication.go @@ -0,0 +1,11 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_virtualdirectory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualdirectory.go new file mode 100644 index 000000000000..f4c38830a4cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualdirectory.go @@ -0,0 +1,9 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_virtualipmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualipmapping.go new file mode 100644 index 000000000000..dc88e33ecbab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualipmapping.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualIPMapping struct { + InUse *bool `json:"inUse,omitempty"` + InternalHTTPPort *int64 `json:"internalHttpPort,omitempty"` + InternalHTTPSPort *int64 `json:"internalHttpsPort,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` + VirtualIP *string `json:"virtualIP,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualnetworkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualnetworkprofile.go new file mode 100644 index 000000000000..d01868e107bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualnetworkprofile.go @@ -0,0 +1,11 @@ +package appserviceenvironments + +// 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/appserviceenvironments/model_workerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpool.go new file mode 100644 index 000000000000..fbb7707c4371 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpool.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkerPool struct { + ComputeMode *ComputeModeOptions `json:"computeMode,omitempty"` + InstanceNames *[]string `json:"instanceNames,omitempty"` + WorkerCount *int64 `json:"workerCount,omitempty"` + WorkerSize *string `json:"workerSize,omitempty"` + WorkerSizeId *int64 `json:"workerSizeId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpoolresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpoolresource.go new file mode 100644 index 000000000000..6a4150ac46da --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpoolresource.go @@ -0,0 +1,13 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkerPoolResource struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *WorkerPool `json:"properties,omitempty"` + Sku *SkuDescription `json:"sku,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go new file mode 100644 index 000000000000..96a5324bde97 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go @@ -0,0 +1,335 @@ +package appserviceenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppServiceEnvironmentResourceOperationPredicate struct { + Id *string + Kind *string + Location *string + Name *string + Type *string +} + +func (p AppServiceEnvironmentResourceOperationPredicate) Matches(input AppServiceEnvironmentResource) 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 AppServicePlanOperationPredicate struct { + Id *string + Kind *string + Location *string + Name *string + Type *string +} + +func (p AppServicePlanOperationPredicate) Matches(input AppServicePlan) 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 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 InboundEnvironmentEndpointOperationPredicate struct { + Description *string +} + +func (p InboundEnvironmentEndpointOperationPredicate) Matches(input InboundEnvironmentEndpoint) bool { + + if p.Description != nil && (input.Description == nil || *p.Description != *input.Description) { + return false + } + + return true +} + +type OutboundEnvironmentEndpointOperationPredicate struct { + Category *string +} + +func (p OutboundEnvironmentEndpointOperationPredicate) Matches(input OutboundEnvironmentEndpoint) bool { + + if p.Category != nil && (input.Category == nil || *p.Category != *input.Category) { + 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 ResourceMetricDefinitionOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p ResourceMetricDefinitionOperationPredicate) Matches(input ResourceMetricDefinition) 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 SkuInfoOperationPredicate struct { + ResourceType *string +} + +func (p SkuInfoOperationPredicate) Matches(input SkuInfo) bool { + + if p.ResourceType != nil && (input.ResourceType == nil || *p.ResourceType != *input.ResourceType) { + return false + } + + return true +} + +type StampCapacityOperationPredicate struct { + AvailableCapacity *int64 + ExcludeFromCapacityAllocation *bool + IsApplicableForAllComputeModes *bool + IsLinux *bool + Name *string + SiteMode *string + TotalCapacity *int64 + Unit *string + WorkerSizeId *int64 +} + +func (p StampCapacityOperationPredicate) Matches(input StampCapacity) bool { + + if p.AvailableCapacity != nil && (input.AvailableCapacity == nil || *p.AvailableCapacity != *input.AvailableCapacity) { + return false + } + + if p.ExcludeFromCapacityAllocation != nil && (input.ExcludeFromCapacityAllocation == nil || *p.ExcludeFromCapacityAllocation != *input.ExcludeFromCapacityAllocation) { + return false + } + + if p.IsApplicableForAllComputeModes != nil && (input.IsApplicableForAllComputeModes == nil || *p.IsApplicableForAllComputeModes != *input.IsApplicableForAllComputeModes) { + return false + } + + if p.IsLinux != nil && (input.IsLinux == nil || *p.IsLinux != *input.IsLinux) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.SiteMode != nil && (input.SiteMode == nil || *p.SiteMode != *input.SiteMode) { + return false + } + + if p.TotalCapacity != nil && (input.TotalCapacity == nil || *p.TotalCapacity != *input.TotalCapacity) { + return false + } + + if p.Unit != nil && (input.Unit == nil || *p.Unit != *input.Unit) { + return false + } + + if p.WorkerSizeId != nil && (input.WorkerSizeId == nil || *p.WorkerSizeId != *input.WorkerSizeId) { + return false + } + + return true +} + +type UsageOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p UsageOperationPredicate) Matches(input Usage) 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 WorkerPoolResourceOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p WorkerPoolResourceOperationPredicate) Matches(input WorkerPoolResource) 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/appserviceenvironments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/version.go new file mode 100644 index 000000000000..be106e9b08a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/version.go @@ -0,0 +1,12 @@ +package appserviceenvironments + +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/appserviceenvironments/%s", defaultApiVersion) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/README.md new file mode 100644 index 000000000000..603bbbe6c837 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/README.md @@ -0,0 +1,479 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans` Documentation + +The `appserviceplans` 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/appserviceplans" +``` + + +### Client Initialization + +```go +client := appserviceplans.NewAppServicePlansClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AppServicePlansClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +payload := appserviceplans.AppServicePlan{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AppServicePlansClient.CreateOrUpdateVnetRoute` + +```go +ctx := context.TODO() +id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "routeValue") + +payload := appserviceplans.VnetRoute{ + // ... +} + + +read, err := client.CreateOrUpdateVnetRoute(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.Delete` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +read, err := client.Delete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.DeleteHybridConnection` + +```go +ctx := context.TODO() +id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "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: `AppServicePlansClient.DeleteVnetRoute` + +```go +ctx := context.TODO() +id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "routeValue") + +read, err := client.DeleteVnetRoute(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.Get` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +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: `AppServicePlansClient.GetHybridConnection` + +```go +ctx := context.TODO() +id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "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: `AppServicePlansClient.GetHybridConnectionPlanLimit` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +read, err := client.GetHybridConnectionPlanLimit(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.GetRouteForVnet` + +```go +ctx := context.TODO() +id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "routeValue") + +read, err := client.GetRouteForVnet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.GetServerFarmSkus` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +read, err := client.GetServerFarmSkus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.GetVnetFromServerFarm` + +```go +ctx := context.TODO() +id := appserviceplans.NewServerFarmVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue") + +read, err := client.GetVnetFromServerFarm(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.GetVnetGateway` + +```go +ctx := context.TODO() +id := appserviceplans.NewVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "gatewayValue") + +read, err := client.GetVnetGateway(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.List` + +```go +ctx := context.TODO() +id := appserviceplans.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id, appserviceplans.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, appserviceplans.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServicePlansClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := appserviceplans.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServicePlansClient.ListCapabilities` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +read, err := client.ListCapabilities(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.ListHybridConnectionKeys` + +```go +ctx := context.TODO() +id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "hybridConnectionNamespaceValue", "relayValue") + +read, err := client.ListHybridConnectionKeys(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.ListHybridConnections` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +// alternatively `client.ListHybridConnections(ctx, id)` can be used to do batched pagination +items, err := client.ListHybridConnectionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServicePlansClient.ListRoutesForVnet` + +```go +ctx := context.TODO() +id := appserviceplans.NewServerFarmVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue") + +read, err := client.ListRoutesForVnet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.ListUsages` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +// alternatively `client.ListUsages(ctx, id, appserviceplans.DefaultListUsagesOperationOptions())` can be used to do batched pagination +items, err := client.ListUsagesComplete(ctx, id, appserviceplans.DefaultListUsagesOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServicePlansClient.ListVnets` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +read, err := client.ListVnets(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.ListWebApps` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +// alternatively `client.ListWebApps(ctx, id, appserviceplans.DefaultListWebAppsOperationOptions())` can be used to do batched pagination +items, err := client.ListWebAppsComplete(ctx, id, appserviceplans.DefaultListWebAppsOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServicePlansClient.ListWebAppsByHybridConnection` + +```go +ctx := context.TODO() +id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "hybridConnectionNamespaceValue", "relayValue") + +// alternatively `client.ListWebAppsByHybridConnection(ctx, id)` can be used to do batched pagination +items, err := client.ListWebAppsByHybridConnectionComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AppServicePlansClient.RebootWorker` + +```go +ctx := context.TODO() +id := appserviceplans.NewWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "workerValue") + +read, err := client.RebootWorker(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.RestartWebApps` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +read, err := client.RestartWebApps(ctx, id, appserviceplans.DefaultRestartWebAppsOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.Update` + +```go +ctx := context.TODO() +id := appserviceplans.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") + +payload := appserviceplans.AppServicePlanPatchResource{ + // ... +} + + +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: `AppServicePlansClient.UpdateVnetGateway` + +```go +ctx := context.TODO() +id := appserviceplans.NewVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "gatewayValue") + +payload := appserviceplans.VnetGateway{ + // ... +} + + +read, err := client.UpdateVnetGateway(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AppServicePlansClient.UpdateVnetRoute` + +```go +ctx := context.TODO() +id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "routeValue") + +payload := appserviceplans.VnetRoute{ + // ... +} + + +read, err := client.UpdateVnetRoute(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/appserviceplans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/client.go new file mode 100644 index 000000000000..8fe56fbaa276 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/client.go @@ -0,0 +1,26 @@ +package appserviceplans + +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 AppServicePlansClient struct { + Client *resourcemanager.Client +} + +func NewAppServicePlansClientWithBaseURI(sdkApi sdkEnv.Api) (*AppServicePlansClient, error) { + client, err := resourcemanager.NewResourceManagerClient(sdkApi, "appserviceplans", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating AppServicePlansClient: %+v", err) + } + + return &AppServicePlansClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/constants.go new file mode 100644 index 000000000000..b22d6af257f3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/constants.go @@ -0,0 +1,1089 @@ +package appserviceplans + +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 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 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 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 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 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 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 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 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 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 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 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 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 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 StatusOptions string + +const ( + StatusOptionsCreating StatusOptions = "Creating" + StatusOptionsPending StatusOptions = "Pending" + StatusOptionsReady StatusOptions = "Ready" +) + +func PossibleValuesForStatusOptions() []string { + return []string{ + string(StatusOptionsCreating), + string(StatusOptionsPending), + string(StatusOptionsReady), + } +} + +func (s *StatusOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseStatusOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseStatusOptions(input string) (*StatusOptions, error) { + vals := map[string]StatusOptions{ + "creating": StatusOptionsCreating, + "pending": StatusOptionsPending, + "ready": StatusOptionsReady, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := StatusOptions(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 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 +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_hybridconnectionnamespacerelay.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_hybridconnectionnamespacerelay.go new file mode 100644 index 000000000000..03767290c2d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_hybridconnectionnamespacerelay.go @@ -0,0 +1,143 @@ +package appserviceplans + +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 = HybridConnectionNamespaceRelayId{} + +// HybridConnectionNamespaceRelayId is a struct representing the Resource ID for a Hybrid Connection Namespace Relay +type HybridConnectionNamespaceRelayId struct { + SubscriptionId string + ResourceGroupName string + ServerFarmName string + HybridConnectionNamespaceName string + RelayName string +} + +// NewHybridConnectionNamespaceRelayID returns a new HybridConnectionNamespaceRelayId struct +func NewHybridConnectionNamespaceRelayID(subscriptionId string, resourceGroupName string, serverFarmName string, hybridConnectionNamespaceName string, relayName string) HybridConnectionNamespaceRelayId { + return HybridConnectionNamespaceRelayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServerFarmName: serverFarmName, + HybridConnectionNamespaceName: hybridConnectionNamespaceName, + RelayName: relayName, + } +} + +// ParseHybridConnectionNamespaceRelayID parses 'input' into a HybridConnectionNamespaceRelayId +func ParseHybridConnectionNamespaceRelayID(input string) (*HybridConnectionNamespaceRelayId, error) { + parser := resourceids.NewParserFromResourceIdType(HybridConnectionNamespaceRelayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HybridConnectionNamespaceRelayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseHybridConnectionNamespaceRelayIDInsensitively parses 'input' case-insensitively into a HybridConnectionNamespaceRelayId +// note: this method should only be used for API response data and not user input +func ParseHybridConnectionNamespaceRelayIDInsensitively(input string) (*HybridConnectionNamespaceRelayId, error) { + parser := resourceids.NewParserFromResourceIdType(HybridConnectionNamespaceRelayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HybridConnectionNamespaceRelayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *HybridConnectionNamespaceRelayId) 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.ServerFarmName, ok = input.Parsed["serverFarmName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serverFarmName", 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 +} + +// ValidateHybridConnectionNamespaceRelayID checks that 'input' can be parsed as a Hybrid Connection Namespace Relay ID +func ValidateHybridConnectionNamespaceRelayID(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 := ParseHybridConnectionNamespaceRelayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Hybrid Connection Namespace Relay ID +func (id HybridConnectionNamespaceRelayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/serverFarms/%s/hybridConnectionNamespaces/%s/relays/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServerFarmName, id.HybridConnectionNamespaceName, id.RelayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Hybrid Connection Namespace Relay ID +func (id HybridConnectionNamespaceRelayId) 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("staticServerFarms", "serverFarms", "serverFarms"), + resourceids.UserSpecifiedSegment("serverFarmName", "serverFarmValue"), + 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 Hybrid Connection Namespace Relay ID +func (id HybridConnectionNamespaceRelayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Server Farm Name: %q", id.ServerFarmName), + fmt.Sprintf("Hybrid Connection Namespace Name: %q", id.HybridConnectionNamespaceName), + fmt.Sprintf("Relay Name: %q", id.RelayName), + } + return fmt.Sprintf("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/appserviceplans/id_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_route.go new file mode 100644 index 000000000000..824335dce670 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_route.go @@ -0,0 +1,143 @@ +package appserviceplans + +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 = RouteId{} + +// RouteId is a struct representing the Resource ID for a Route +type RouteId struct { + SubscriptionId string + ResourceGroupName string + ServerFarmName string + VirtualNetworkConnectionName string + RouteName string +} + +// NewRouteID returns a new RouteId struct +func NewRouteID(subscriptionId string, resourceGroupName string, serverFarmName string, virtualNetworkConnectionName string, routeName string) RouteId { + return RouteId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServerFarmName: serverFarmName, + VirtualNetworkConnectionName: virtualNetworkConnectionName, + RouteName: routeName, + } +} + +// ParseRouteID parses 'input' into a RouteId +func ParseRouteID(input string) (*RouteId, error) { + parser := resourceids.NewParserFromResourceIdType(RouteId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRouteIDInsensitively parses 'input' case-insensitively into a RouteId +// note: this method should only be used for API response data and not user input +func ParseRouteIDInsensitively(input string) (*RouteId, error) { + parser := resourceids.NewParserFromResourceIdType(RouteId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RouteId) 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.ServerFarmName, ok = input.Parsed["serverFarmName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serverFarmName", input) + } + + if id.VirtualNetworkConnectionName, ok = input.Parsed["virtualNetworkConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkConnectionName", input) + } + + if id.RouteName, ok = input.Parsed["routeName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routeName", input) + } + + return nil +} + +// ValidateRouteID checks that 'input' can be parsed as a Route ID +func ValidateRouteID(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 := ParseRouteID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Route ID +func (id RouteId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/serverFarms/%s/virtualNetworkConnections/%s/routes/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServerFarmName, id.VirtualNetworkConnectionName, id.RouteName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Route ID +func (id RouteId) 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("staticServerFarms", "serverFarms", "serverFarms"), + resourceids.UserSpecifiedSegment("serverFarmName", "serverFarmValue"), + resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + resourceids.StaticSegment("staticRoutes", "routes", "routes"), + resourceids.UserSpecifiedSegment("routeName", "routeValue"), + } +} + +// String returns a human-readable description of this Route ID +func (id RouteId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Server Farm Name: %q", id.ServerFarmName), + fmt.Sprintf("Virtual Network Connection Name: %q", id.VirtualNetworkConnectionName), + fmt.Sprintf("Route Name: %q", id.RouteName), + } + return fmt.Sprintf("Route (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_serverfarmvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_serverfarmvirtualnetworkconnection.go new file mode 100644 index 000000000000..a03f82ca601e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_serverfarmvirtualnetworkconnection.go @@ -0,0 +1,134 @@ +package appserviceplans + +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 = ServerFarmVirtualNetworkConnectionId{} + +// ServerFarmVirtualNetworkConnectionId is a struct representing the Resource ID for a Server Farm Virtual Network Connection +type ServerFarmVirtualNetworkConnectionId struct { + SubscriptionId string + ResourceGroupName string + ServerFarmName string + VirtualNetworkConnectionName string +} + +// NewServerFarmVirtualNetworkConnectionID returns a new ServerFarmVirtualNetworkConnectionId struct +func NewServerFarmVirtualNetworkConnectionID(subscriptionId string, resourceGroupName string, serverFarmName string, virtualNetworkConnectionName string) ServerFarmVirtualNetworkConnectionId { + return ServerFarmVirtualNetworkConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServerFarmName: serverFarmName, + VirtualNetworkConnectionName: virtualNetworkConnectionName, + } +} + +// ParseServerFarmVirtualNetworkConnectionID parses 'input' into a ServerFarmVirtualNetworkConnectionId +func ParseServerFarmVirtualNetworkConnectionID(input string) (*ServerFarmVirtualNetworkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(ServerFarmVirtualNetworkConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ServerFarmVirtualNetworkConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseServerFarmVirtualNetworkConnectionIDInsensitively parses 'input' case-insensitively into a ServerFarmVirtualNetworkConnectionId +// note: this method should only be used for API response data and not user input +func ParseServerFarmVirtualNetworkConnectionIDInsensitively(input string) (*ServerFarmVirtualNetworkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(ServerFarmVirtualNetworkConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ServerFarmVirtualNetworkConnectionId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ServerFarmVirtualNetworkConnectionId) 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.ServerFarmName, ok = input.Parsed["serverFarmName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serverFarmName", input) + } + + if id.VirtualNetworkConnectionName, ok = input.Parsed["virtualNetworkConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkConnectionName", input) + } + + return nil +} + +// ValidateServerFarmVirtualNetworkConnectionID checks that 'input' can be parsed as a Server Farm Virtual Network Connection ID +func ValidateServerFarmVirtualNetworkConnectionID(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 := ParseServerFarmVirtualNetworkConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Server Farm Virtual Network Connection ID +func (id ServerFarmVirtualNetworkConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/serverFarms/%s/virtualNetworkConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServerFarmName, id.VirtualNetworkConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Server Farm Virtual Network Connection ID +func (id ServerFarmVirtualNetworkConnectionId) 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("staticServerFarms", "serverFarms", "serverFarms"), + resourceids.UserSpecifiedSegment("serverFarmName", "serverFarmValue"), + resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + } +} + +// String returns a human-readable description of this Server Farm Virtual Network Connection ID +func (id ServerFarmVirtualNetworkConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Server Farm Name: %q", id.ServerFarmName), + fmt.Sprintf("Virtual Network Connection Name: %q", id.VirtualNetworkConnectionName), + } + return fmt.Sprintf("Server Farm Virtual Network Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_virtualnetworkconnectiongateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_virtualnetworkconnectiongateway.go new file mode 100644 index 000000000000..39eac11b9b4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_virtualnetworkconnectiongateway.go @@ -0,0 +1,143 @@ +package appserviceplans + +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 = VirtualNetworkConnectionGatewayId{} + +// VirtualNetworkConnectionGatewayId is a struct representing the Resource ID for a Virtual Network Connection Gateway +type VirtualNetworkConnectionGatewayId struct { + SubscriptionId string + ResourceGroupName string + ServerFarmName string + VirtualNetworkConnectionName string + GatewayName string +} + +// NewVirtualNetworkConnectionGatewayID returns a new VirtualNetworkConnectionGatewayId struct +func NewVirtualNetworkConnectionGatewayID(subscriptionId string, resourceGroupName string, serverFarmName string, virtualNetworkConnectionName string, gatewayName string) VirtualNetworkConnectionGatewayId { + return VirtualNetworkConnectionGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServerFarmName: serverFarmName, + VirtualNetworkConnectionName: virtualNetworkConnectionName, + GatewayName: gatewayName, + } +} + +// ParseVirtualNetworkConnectionGatewayID parses 'input' into a VirtualNetworkConnectionGatewayId +func ParseVirtualNetworkConnectionGatewayID(input string) (*VirtualNetworkConnectionGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(VirtualNetworkConnectionGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualNetworkConnectionGatewayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualNetworkConnectionGatewayIDInsensitively parses 'input' case-insensitively into a VirtualNetworkConnectionGatewayId +// note: this method should only be used for API response data and not user input +func ParseVirtualNetworkConnectionGatewayIDInsensitively(input string) (*VirtualNetworkConnectionGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(VirtualNetworkConnectionGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualNetworkConnectionGatewayId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualNetworkConnectionGatewayId) 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.ServerFarmName, ok = input.Parsed["serverFarmName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serverFarmName", 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 +} + +// ValidateVirtualNetworkConnectionGatewayID checks that 'input' can be parsed as a Virtual Network Connection Gateway ID +func ValidateVirtualNetworkConnectionGatewayID(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 := ParseVirtualNetworkConnectionGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual Network Connection Gateway ID +func (id VirtualNetworkConnectionGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/serverFarms/%s/virtualNetworkConnections/%s/gateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServerFarmName, id.VirtualNetworkConnectionName, id.GatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual Network Connection Gateway ID +func (id VirtualNetworkConnectionGatewayId) 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("staticServerFarms", "serverFarms", "serverFarms"), + resourceids.UserSpecifiedSegment("serverFarmName", "serverFarmValue"), + 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 Virtual Network Connection Gateway ID +func (id VirtualNetworkConnectionGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Server Farm Name: %q", id.ServerFarmName), + fmt.Sprintf("Virtual Network Connection Name: %q", id.VirtualNetworkConnectionName), + fmt.Sprintf("Gateway Name: %q", id.GatewayName), + } + return fmt.Sprintf("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/appserviceplans/id_worker.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_worker.go new file mode 100644 index 000000000000..1eaaa44be014 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/id_worker.go @@ -0,0 +1,134 @@ +package appserviceplans + +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 = WorkerId{} + +// WorkerId is a struct representing the Resource ID for a Worker +type WorkerId struct { + SubscriptionId string + ResourceGroupName string + ServerFarmName string + WorkerName string +} + +// NewWorkerID returns a new WorkerId struct +func NewWorkerID(subscriptionId string, resourceGroupName string, serverFarmName string, workerName string) WorkerId { + return WorkerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServerFarmName: serverFarmName, + WorkerName: workerName, + } +} + +// ParseWorkerID parses 'input' into a WorkerId +func ParseWorkerID(input string) (*WorkerId, error) { + parser := resourceids.NewParserFromResourceIdType(WorkerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkerId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkerIDInsensitively parses 'input' case-insensitively into a WorkerId +// note: this method should only be used for API response data and not user input +func ParseWorkerIDInsensitively(input string) (*WorkerId, error) { + parser := resourceids.NewParserFromResourceIdType(WorkerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkerId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkerId) 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.ServerFarmName, ok = input.Parsed["serverFarmName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serverFarmName", input) + } + + if id.WorkerName, ok = input.Parsed["workerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workerName", input) + } + + return nil +} + +// ValidateWorkerID checks that 'input' can be parsed as a Worker ID +func ValidateWorkerID(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 := ParseWorkerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Worker ID +func (id WorkerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/serverFarms/%s/workers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServerFarmName, id.WorkerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Worker ID +func (id WorkerId) 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("staticServerFarms", "serverFarms", "serverFarms"), + resourceids.UserSpecifiedSegment("serverFarmName", "serverFarmValue"), + resourceids.StaticSegment("staticWorkers", "workers", "workers"), + resourceids.UserSpecifiedSegment("workerName", "workerValue"), + } +} + +// String returns a human-readable description of this Worker ID +func (id WorkerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Server Farm Name: %q", id.ServerFarmName), + fmt.Sprintf("Worker Name: %q", id.WorkerName), + } + return fmt.Sprintf("Worker (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_createorupdate.go new file mode 100644 index 000000000000..0df46eb3a661 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_createorupdate.go @@ -0,0 +1,75 @@ +package appserviceplans + +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 AppServicePlansClient) CreateOrUpdate(ctx context.Context, id commonids.AppServicePlanId, input AppServicePlan) (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 AppServicePlansClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.AppServicePlanId, input AppServicePlan) 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/appserviceplans/method_createorupdatevnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_createorupdatevnetroute.go new file mode 100644 index 000000000000..ba9794cb8707 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_createorupdatevnetroute.go @@ -0,0 +1,55 @@ +package appserviceplans + +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 CreateOrUpdateVnetRouteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetRoute +} + +// CreateOrUpdateVnetRoute ... +func (c AppServicePlansClient) CreateOrUpdateVnetRoute(ctx context.Context, id RouteId, input VnetRoute) (result CreateOrUpdateVnetRouteOperationResponse, 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/appserviceplans/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_delete.go new file mode 100644 index 000000000000..4d95de15002b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_delete.go @@ -0,0 +1,48 @@ +package appserviceplans + +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 DeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c AppServicePlansClient) Delete(ctx context.Context, id commonids.AppServicePlanId) (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(), + } + + 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/appserviceplans/method_deletehybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_deletehybridconnection.go new file mode 100644 index 000000000000..e886d4067bc1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_deletehybridconnection.go @@ -0,0 +1,47 @@ +package appserviceplans + +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 AppServicePlansClient) DeleteHybridConnection(ctx context.Context, id HybridConnectionNamespaceRelayId) (result DeleteHybridConnectionOperationResponse, 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/appserviceplans/method_deletevnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_deletevnetroute.go new file mode 100644 index 000000000000..ad025ea00a26 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_deletevnetroute.go @@ -0,0 +1,46 @@ +package appserviceplans + +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 DeleteVnetRouteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteVnetRoute ... +func (c AppServicePlansClient) DeleteVnetRoute(ctx context.Context, id RouteId) (result DeleteVnetRouteOperationResponse, 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/appserviceplans/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_get.go new file mode 100644 index 000000000000..d3884ab8a7e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_get.go @@ -0,0 +1,52 @@ +package appserviceplans + +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 *AppServicePlan +} + +// Get ... +func (c AppServicePlansClient) Get(ctx context.Context, id commonids.AppServicePlanId) (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/appserviceplans/method_gethybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_gethybridconnection.go new file mode 100644 index 000000000000..2ac33da73674 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_gethybridconnection.go @@ -0,0 +1,51 @@ +package appserviceplans + +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 AppServicePlansClient) GetHybridConnection(ctx context.Context, id HybridConnectionNamespaceRelayId) (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/appserviceplans/method_gethybridconnectionplanlimit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_gethybridconnectionplanlimit.go new file mode 100644 index 000000000000..56ab1f184eb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_gethybridconnectionplanlimit.go @@ -0,0 +1,53 @@ +package appserviceplans + +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 GetHybridConnectionPlanLimitOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridConnectionLimits +} + +// GetHybridConnectionPlanLimit ... +func (c AppServicePlansClient) GetHybridConnectionPlanLimit(ctx context.Context, id commonids.AppServicePlanId) (result GetHybridConnectionPlanLimitOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/hybridConnectionPlanLimits/limit", 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/appserviceplans/method_getrouteforvnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getrouteforvnet.go new file mode 100644 index 000000000000..1118a98dbc4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getrouteforvnet.go @@ -0,0 +1,51 @@ +package appserviceplans + +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 GetRouteForVnetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VnetRoute +} + +// GetRouteForVnet ... +func (c AppServicePlansClient) GetRouteForVnet(ctx context.Context, id RouteId) (result GetRouteForVnetOperationResponse, 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/appserviceplans/method_getserverfarmskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getserverfarmskus.go new file mode 100644 index 000000000000..5e38915e2066 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getserverfarmskus.go @@ -0,0 +1,53 @@ +package appserviceplans + +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 GetServerFarmSkusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *interface{} +} + +// GetServerFarmSkus ... +func (c AppServicePlansClient) GetServerFarmSkus(ctx context.Context, id commonids.AppServicePlanId) (result GetServerFarmSkusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/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/appserviceplans/method_getvnetfromserverfarm.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getvnetfromserverfarm.go new file mode 100644 index 000000000000..c1308129d598 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getvnetfromserverfarm.go @@ -0,0 +1,51 @@ +package appserviceplans + +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 GetVnetFromServerFarmOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetInfoResource +} + +// GetVnetFromServerFarm ... +func (c AppServicePlansClient) GetVnetFromServerFarm(ctx context.Context, id ServerFarmVirtualNetworkConnectionId) (result GetVnetFromServerFarmOperationResponse, 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/appserviceplans/method_getvnetgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getvnetgateway.go new file mode 100644 index 000000000000..4980a5bfd6ac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_getvnetgateway.go @@ -0,0 +1,51 @@ +package appserviceplans + +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 GetVnetGatewayOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetGateway +} + +// GetVnetGateway ... +func (c AppServicePlansClient) GetVnetGateway(ctx context.Context, id VirtualNetworkConnectionGatewayId) (result GetVnetGatewayOperationResponse, 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/appserviceplans/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_list.go new file mode 100644 index 000000000000..b2e2688afb39 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_list.go @@ -0,0 +1,118 @@ +package appserviceplans + +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 *[]AppServicePlan +} + +type ListCompleteResult struct { + Items []AppServicePlan +} + +type ListOperationOptions struct { + Detailed *bool +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Detailed != nil { + out.Append("detailed", fmt.Sprintf("%v", *o.Detailed)) + } + return &out +} + +// List ... +func (c AppServicePlansClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (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/serverFarms", 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 *[]AppServicePlan `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 AppServicePlansClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, AppServicePlanOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServicePlansClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate AppServicePlanOperationPredicate) (result ListCompleteResult, err error) { + items := make([]AppServicePlan, 0) + + resp, err := c.List(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 = ListCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go new file mode 100644 index 000000000000..c6f2d3b69af0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go @@ -0,0 +1,90 @@ +package appserviceplans + +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 *[]AppServicePlan +} + +type ListByResourceGroupCompleteResult struct { + Items []AppServicePlan +} + +// ListByResourceGroup ... +func (c AppServicePlansClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (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/serverFarms", 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 *[]AppServicePlan `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 AppServicePlansClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, AppServicePlanOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServicePlansClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AppServicePlanOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]AppServicePlan, 0) + + resp, err := c.ListByResourceGroup(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 = ListByResourceGroupCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listcapabilities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listcapabilities.go new file mode 100644 index 000000000000..fecccbdb7f8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listcapabilities.go @@ -0,0 +1,53 @@ +package appserviceplans + +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 ListCapabilitiesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Capability +} + +// ListCapabilities ... +func (c AppServicePlansClient) ListCapabilities(ctx context.Context, id commonids.AppServicePlanId) (result ListCapabilitiesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/capabilities", 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/appserviceplans/method_listhybridconnectionkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnectionkeys.go new file mode 100644 index 000000000000..33c8f4302e68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnectionkeys.go @@ -0,0 +1,52 @@ +package appserviceplans + +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 ListHybridConnectionKeysOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridConnectionKey +} + +// ListHybridConnectionKeys ... +func (c AppServicePlansClient) ListHybridConnectionKeys(ctx context.Context, id HybridConnectionNamespaceRelayId) (result ListHybridConnectionKeysOperationResponse, 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/appserviceplans/method_listhybridconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnections.go new file mode 100644 index 000000000000..b0948854cb22 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnections.go @@ -0,0 +1,90 @@ +package appserviceplans + +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 +} + +type ListHybridConnectionsCompleteResult struct { + Items []HybridConnection +} + +// ListHybridConnections ... +func (c AppServicePlansClient) ListHybridConnections(ctx context.Context, id commonids.AppServicePlanId) (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.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]HybridConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListHybridConnectionsComplete retrieves all the results into a single object +func (c AppServicePlansClient) ListHybridConnectionsComplete(ctx context.Context, id commonids.AppServicePlanId) (ListHybridConnectionsCompleteResult, error) { + return c.ListHybridConnectionsCompleteMatchingPredicate(ctx, id, HybridConnectionOperationPredicate{}) +} + +// ListHybridConnectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServicePlansClient) ListHybridConnectionsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServicePlanId, predicate HybridConnectionOperationPredicate) (result ListHybridConnectionsCompleteResult, err error) { + items := make([]HybridConnection, 0) + + resp, err := c.ListHybridConnections(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 = ListHybridConnectionsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listroutesforvnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listroutesforvnet.go new file mode 100644 index 000000000000..03c3f0dd856b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listroutesforvnet.go @@ -0,0 +1,52 @@ +package appserviceplans + +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 ListRoutesForVnetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VnetRoute +} + +// ListRoutesForVnet ... +func (c AppServicePlansClient) ListRoutesForVnet(ctx context.Context, id ServerFarmVirtualNetworkConnectionId) (result ListRoutesForVnetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/routes", 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/appserviceplans/method_listusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listusages.go new file mode 100644 index 000000000000..eedaf1332fde --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listusages.go @@ -0,0 +1,118 @@ +package appserviceplans + +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 AppServicePlansClient) ListUsages(ctx context.Context, id commonids.AppServicePlanId, 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 AppServicePlansClient) ListUsagesComplete(ctx context.Context, id commonids.AppServicePlanId, options ListUsagesOperationOptions) (ListUsagesCompleteResult, error) { + return c.ListUsagesCompleteMatchingPredicate(ctx, id, options, CsmUsageQuotaOperationPredicate{}) +} + +// ListUsagesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServicePlansClient) ListUsagesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServicePlanId, 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/appserviceplans/method_listvnets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listvnets.go new file mode 100644 index 000000000000..a1e0ad45f66d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listvnets.go @@ -0,0 +1,53 @@ +package appserviceplans + +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 ListVnetsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VnetInfoResource +} + +// ListVnets ... +func (c AppServicePlansClient) ListVnets(ctx context.Context, id commonids.AppServicePlanId) (result ListVnetsOperationResponse, 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/appserviceplans/method_listwebapps.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebapps.go new file mode 100644 index 000000000000..d29ce871aa86 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebapps.go @@ -0,0 +1,122 @@ +package appserviceplans + +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 ListWebAppsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Site +} + +type ListWebAppsCompleteResult struct { + Items []Site +} + +type ListWebAppsOperationOptions struct { + Filter *string + Top *string +} + +func DefaultListWebAppsOperationOptions() ListWebAppsOperationOptions { + return ListWebAppsOperationOptions{} +} + +func (o ListWebAppsOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListWebAppsOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListWebAppsOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +// ListWebApps ... +func (c AppServicePlansClient) ListWebApps(ctx context.Context, id commonids.AppServicePlanId, options ListWebAppsOperationOptions) (result ListWebAppsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/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 +} + +// ListWebAppsComplete retrieves all the results into a single object +func (c AppServicePlansClient) ListWebAppsComplete(ctx context.Context, id commonids.AppServicePlanId, options ListWebAppsOperationOptions) (ListWebAppsCompleteResult, error) { + return c.ListWebAppsCompleteMatchingPredicate(ctx, id, options, SiteOperationPredicate{}) +} + +// ListWebAppsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AppServicePlansClient) ListWebAppsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServicePlanId, options ListWebAppsOperationOptions, predicate SiteOperationPredicate) (result ListWebAppsCompleteResult, err error) { + items := make([]Site, 0) + + resp, err := c.ListWebApps(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 = ListWebAppsCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go new file mode 100644 index 000000000000..7ec8cfcc6134 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go @@ -0,0 +1,82 @@ +package appserviceplans + +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 ListWebAppsByHybridConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]string +} + +type ListWebAppsByHybridConnectionCompleteResult struct { + Items []string +} + +// ListWebAppsByHybridConnection ... +func (c AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Context, id HybridConnectionNamespaceRelayId) (result ListWebAppsByHybridConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/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 *[]string `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListWebAppsByHybridConnectionComplete retrieves all the results into a single object +func (c AppServicePlansClient) ListWebAppsByHybridConnectionComplete(ctx context.Context, id HybridConnectionNamespaceRelayId) (result ListWebAppsByHybridConnectionCompleteResult, err error) { + items := make([]string, 0) + + resp, err := c.ListWebAppsByHybridConnection(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + items = append(items, v) + } + } + + result = ListWebAppsByHybridConnectionCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_rebootworker.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_rebootworker.go new file mode 100644 index 000000000000..b1e54e3cffeb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_rebootworker.go @@ -0,0 +1,47 @@ +package appserviceplans + +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 RebootWorkerOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// RebootWorker ... +func (c AppServicePlansClient) RebootWorker(ctx context.Context, id WorkerId) (result RebootWorkerOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/reboot", 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/appserviceplans/method_restartwebapps.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_restartwebapps.go new file mode 100644 index 000000000000..ffa2a2050112 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_restartwebapps.go @@ -0,0 +1,76 @@ +package appserviceplans + +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 RestartWebAppsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +type RestartWebAppsOperationOptions struct { + SoftRestart *bool +} + +func DefaultRestartWebAppsOperationOptions() RestartWebAppsOperationOptions { + return RestartWebAppsOperationOptions{} +} + +func (o RestartWebAppsOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o RestartWebAppsOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o RestartWebAppsOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.SoftRestart != nil { + out.Append("softRestart", fmt.Sprintf("%v", *o.SoftRestart)) + } + return &out +} + +// RestartWebApps ... +func (c AppServicePlansClient) RestartWebApps(ctx context.Context, id commonids.AppServicePlanId, options RestartWebAppsOperationOptions) (result RestartWebAppsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restartSites", 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/appserviceplans/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_update.go new file mode 100644 index 000000000000..a9270c5f0f2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_update.go @@ -0,0 +1,57 @@ +package appserviceplans + +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 *AppServicePlan +} + +// Update ... +func (c AppServicePlansClient) Update(ctx context.Context, id commonids.AppServicePlanId, input AppServicePlanPatchResource) (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/appserviceplans/method_updatevnetgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_updatevnetgateway.go new file mode 100644 index 000000000000..63dba012329e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_updatevnetgateway.go @@ -0,0 +1,55 @@ +package appserviceplans + +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 UpdateVnetGatewayOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetGateway +} + +// UpdateVnetGateway ... +func (c AppServicePlansClient) UpdateVnetGateway(ctx context.Context, id VirtualNetworkConnectionGatewayId, input VnetGateway) (result UpdateVnetGatewayOperationResponse, 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/appserviceplans/method_updatevnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_updatevnetroute.go new file mode 100644 index 000000000000..35aca7f0a253 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_updatevnetroute.go @@ -0,0 +1,55 @@ +package appserviceplans + +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 UpdateVnetRouteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VnetRoute +} + +// UpdateVnetRoute ... +func (c AppServicePlansClient) UpdateVnetRoute(ctx context.Context, id RouteId, input VnetRoute) (result UpdateVnetRouteOperationResponse, 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/appserviceplans/model_apidefinitioninfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_apidefinitioninfo.go new file mode 100644 index 000000000000..2ac5fa81cba5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_apidefinitioninfo.go @@ -0,0 +1,8 @@ +package appserviceplans + +// 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/appserviceplans/model_apimanagementconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_apimanagementconfig.go new file mode 100644 index 000000000000..dab0ea80e654 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_apimanagementconfig.go @@ -0,0 +1,8 @@ +package appserviceplans + +// 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/appserviceplans/model_appserviceplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplan.go new file mode 100644 index 000000000000..939499f257a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplan.go @@ -0,0 +1,16 @@ +package appserviceplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppServicePlan struct { + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *AppServicePlanProperties `json:"properties,omitempty"` + Sku *SkuDescription `json:"sku,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/appserviceplans/model_appserviceplanpatchresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplanpatchresource.go new file mode 100644 index 000000000000..e2e21fc04a7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplanpatchresource.go @@ -0,0 +1,12 @@ +package appserviceplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppServicePlanPatchResource struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AppServicePlanPatchResourceProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplanpatchresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplanpatchresourceproperties.go new file mode 100644 index 000000000000..efdb53cdcff5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplanpatchresourceproperties.go @@ -0,0 +1,60 @@ +package appserviceplans + +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 AppServicePlanPatchResourceProperties struct { + ElasticScaleEnabled *bool `json:"elasticScaleEnabled,omitempty"` + FreeOfferExpirationTime *string `json:"freeOfferExpirationTime,omitempty"` + GeoRegion *string `json:"geoRegion,omitempty"` + HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` + HyperV *bool `json:"hyperV,omitempty"` + IsSpot *bool `json:"isSpot,omitempty"` + IsXenon *bool `json:"isXenon,omitempty"` + KubeEnvironmentProfile *KubeEnvironmentProfile `json:"kubeEnvironmentProfile,omitempty"` + MaximumElasticWorkerCount *int64 `json:"maximumElasticWorkerCount,omitempty"` + MaximumNumberOfWorkers *int64 `json:"maximumNumberOfWorkers,omitempty"` + NumberOfSites *int64 `json:"numberOfSites,omitempty"` + NumberOfWorkers *int64 `json:"numberOfWorkers,omitempty"` + PerSiteScaling *bool `json:"perSiteScaling,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Reserved *bool `json:"reserved,omitempty"` + ResourceGroup *string `json:"resourceGroup,omitempty"` + SpotExpirationTime *string `json:"spotExpirationTime,omitempty"` + Status *StatusOptions `json:"status,omitempty"` + Subscription *string `json:"subscription,omitempty"` + TargetWorkerCount *int64 `json:"targetWorkerCount,omitempty"` + TargetWorkerSizeId *int64 `json:"targetWorkerSizeId,omitempty"` + WorkerTierName *string `json:"workerTierName,omitempty"` + ZoneRedundant *bool `json:"zoneRedundant,omitempty"` +} + +func (o *AppServicePlanPatchResourceProperties) GetFreeOfferExpirationTimeAsTime() (*time.Time, error) { + if o.FreeOfferExpirationTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.FreeOfferExpirationTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *AppServicePlanPatchResourceProperties) SetFreeOfferExpirationTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.FreeOfferExpirationTime = &formatted +} + +func (o *AppServicePlanPatchResourceProperties) GetSpotExpirationTimeAsTime() (*time.Time, error) { + if o.SpotExpirationTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.SpotExpirationTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *AppServicePlanPatchResourceProperties) SetSpotExpirationTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.SpotExpirationTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplanproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplanproperties.go new file mode 100644 index 000000000000..6fde086c9ed4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_appserviceplanproperties.go @@ -0,0 +1,60 @@ +package appserviceplans + +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 AppServicePlanProperties struct { + ElasticScaleEnabled *bool `json:"elasticScaleEnabled,omitempty"` + FreeOfferExpirationTime *string `json:"freeOfferExpirationTime,omitempty"` + GeoRegion *string `json:"geoRegion,omitempty"` + HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` + HyperV *bool `json:"hyperV,omitempty"` + IsSpot *bool `json:"isSpot,omitempty"` + IsXenon *bool `json:"isXenon,omitempty"` + KubeEnvironmentProfile *KubeEnvironmentProfile `json:"kubeEnvironmentProfile,omitempty"` + MaximumElasticWorkerCount *int64 `json:"maximumElasticWorkerCount,omitempty"` + MaximumNumberOfWorkers *int64 `json:"maximumNumberOfWorkers,omitempty"` + NumberOfSites *int64 `json:"numberOfSites,omitempty"` + NumberOfWorkers *int64 `json:"numberOfWorkers,omitempty"` + PerSiteScaling *bool `json:"perSiteScaling,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Reserved *bool `json:"reserved,omitempty"` + ResourceGroup *string `json:"resourceGroup,omitempty"` + SpotExpirationTime *string `json:"spotExpirationTime,omitempty"` + Status *StatusOptions `json:"status,omitempty"` + Subscription *string `json:"subscription,omitempty"` + TargetWorkerCount *int64 `json:"targetWorkerCount,omitempty"` + TargetWorkerSizeId *int64 `json:"targetWorkerSizeId,omitempty"` + WorkerTierName *string `json:"workerTierName,omitempty"` + ZoneRedundant *bool `json:"zoneRedundant,omitempty"` +} + +func (o *AppServicePlanProperties) GetFreeOfferExpirationTimeAsTime() (*time.Time, error) { + if o.FreeOfferExpirationTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.FreeOfferExpirationTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *AppServicePlanProperties) SetFreeOfferExpirationTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.FreeOfferExpirationTime = &formatted +} + +func (o *AppServicePlanProperties) GetSpotExpirationTimeAsTime() (*time.Time, error) { + if o.SpotExpirationTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.SpotExpirationTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *AppServicePlanProperties) SetSpotExpirationTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.SpotExpirationTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealactions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealactions.go new file mode 100644 index 000000000000..e32290fd78e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealactions.go @@ -0,0 +1,10 @@ +package appserviceplans + +// 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/appserviceplans/model_autohealcustomaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealcustomaction.go new file mode 100644 index 000000000000..2b7e2af847d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealcustomaction.go @@ -0,0 +1,9 @@ +package appserviceplans + +// 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/appserviceplans/model_autohealrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealrules.go new file mode 100644 index 000000000000..6da2d1028df7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealrules.go @@ -0,0 +1,9 @@ +package appserviceplans + +// 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/appserviceplans/model_autohealtriggers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealtriggers.go new file mode 100644 index 000000000000..a3c3a7fe7811 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_autohealtriggers.go @@ -0,0 +1,13 @@ +package appserviceplans + +// 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/appserviceplans/model_azurestorageinfovalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_azurestorageinfovalue.go new file mode 100644 index 000000000000..857ad1828455 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_azurestorageinfovalue.go @@ -0,0 +1,13 @@ +package appserviceplans + +// 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/appserviceplans/model_capability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_capability.go new file mode 100644 index 000000000000..0cfebd66ae96 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_capability.go @@ -0,0 +1,10 @@ +package appserviceplans + +// 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/appserviceplans/model_cloninginfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_cloninginfo.go new file mode 100644 index 000000000000..5d297b188da4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_cloninginfo.go @@ -0,0 +1,18 @@ +package appserviceplans + +// 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/appserviceplans/model_connstringinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_connstringinfo.go new file mode 100644 index 000000000000..367ae1ac201b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_connstringinfo.go @@ -0,0 +1,10 @@ +package appserviceplans + +// 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/appserviceplans/model_corssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_corssettings.go new file mode 100644 index 000000000000..ec523b9ae12e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_corssettings.go @@ -0,0 +1,9 @@ +package appserviceplans + +// 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/appserviceplans/model_csmusagequota.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_csmusagequota.go new file mode 100644 index 000000000000..24ec9c595c06 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_csmusagequota.go @@ -0,0 +1,30 @@ +package appserviceplans + +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/appserviceplans/model_daprconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_daprconfig.go new file mode 100644 index 000000000000..bd07c41dcc82 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_daprconfig.go @@ -0,0 +1,14 @@ +package appserviceplans + +// 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/appserviceplans/model_experiments.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_experiments.go new file mode 100644 index 000000000000..c10e0c96da00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_experiments.go @@ -0,0 +1,8 @@ +package appserviceplans + +// 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/appserviceplans/model_extendedlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_extendedlocation.go new file mode 100644 index 000000000000..9e237794a1d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_extendedlocation.go @@ -0,0 +1,9 @@ +package appserviceplans + +// 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/appserviceplans/model_handlermapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_handlermapping.go new file mode 100644 index 000000000000..2b0fd51c628e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_handlermapping.go @@ -0,0 +1,10 @@ +package appserviceplans + +// 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/appserviceplans/model_hostingenvironmentprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hostingenvironmentprofile.go new file mode 100644 index 000000000000..3e6d1e245c02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hostingenvironmentprofile.go @@ -0,0 +1,10 @@ +package appserviceplans + +// 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/appserviceplans/model_hostnamesslstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hostnamesslstate.go new file mode 100644 index 000000000000..eb49e879dbe6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hostnamesslstate.go @@ -0,0 +1,13 @@ +package appserviceplans + +// 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/appserviceplans/model_hybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnection.go new file mode 100644 index 000000000000..92deac554e20 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnection.go @@ -0,0 +1,12 @@ +package appserviceplans + +// 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/appserviceplans/model_hybridconnectionkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionkey.go new file mode 100644 index 000000000000..95cbaf8d9c67 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionkey.go @@ -0,0 +1,12 @@ +package appserviceplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridConnectionKey struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *HybridConnectionKeyProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionkeyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionkeyproperties.go new file mode 100644 index 000000000000..b9d55a5c698b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionkeyproperties.go @@ -0,0 +1,9 @@ +package appserviceplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridConnectionKeyProperties struct { + SendKeyName *string `json:"sendKeyName,omitempty"` + SendKeyValue *string `json:"sendKeyValue,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionlimits.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionlimits.go new file mode 100644 index 000000000000..1463d5e4dbf0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionlimits.go @@ -0,0 +1,12 @@ +package appserviceplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridConnectionLimits struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Properties *HybridConnectionLimitsProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionlimitsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionlimitsproperties.go new file mode 100644 index 000000000000..a462d888655f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionlimitsproperties.go @@ -0,0 +1,9 @@ +package appserviceplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridConnectionLimitsProperties struct { + Current *int64 `json:"current,omitempty"` + Maximum *int64 `json:"maximum,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionproperties.go new file mode 100644 index 000000000000..93e6f70afd6e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_hybridconnectionproperties.go @@ -0,0 +1,15 @@ +package appserviceplans + +// 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/appserviceplans/model_ipsecurityrestriction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_ipsecurityrestriction.go new file mode 100644 index 000000000000..d1bf7483ffc5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_ipsecurityrestriction.go @@ -0,0 +1,18 @@ +package appserviceplans + +// 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/appserviceplans/model_kubeenvironmentprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_kubeenvironmentprofile.go new file mode 100644 index 000000000000..a8c2c586a767 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_kubeenvironmentprofile.go @@ -0,0 +1,10 @@ +package appserviceplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KubeEnvironmentProfile 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/appserviceplans/model_localizablestring.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_localizablestring.go new file mode 100644 index 000000000000..3f1e149630ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_localizablestring.go @@ -0,0 +1,9 @@ +package appserviceplans + +// 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/appserviceplans/model_namevaluepair.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_namevaluepair.go new file mode 100644 index 000000000000..8810fa8f3de6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_namevaluepair.go @@ -0,0 +1,9 @@ +package appserviceplans + +// 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/appserviceplans/model_pushsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_pushsettings.go new file mode 100644 index 000000000000..4dc8d4fea828 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_pushsettings.go @@ -0,0 +1,12 @@ +package appserviceplans + +// 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/appserviceplans/model_pushsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_pushsettingsproperties.go new file mode 100644 index 000000000000..beae479c519d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_pushsettingsproperties.go @@ -0,0 +1,11 @@ +package appserviceplans + +// 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/appserviceplans/model_rampuprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_rampuprule.go new file mode 100644 index 000000000000..a8a0548b4892 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_rampuprule.go @@ -0,0 +1,15 @@ +package appserviceplans + +// 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/appserviceplans/model_requestsbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_requestsbasedtrigger.go new file mode 100644 index 000000000000..3858f02d3872 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_requestsbasedtrigger.go @@ -0,0 +1,9 @@ +package appserviceplans + +// 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/appserviceplans/model_resourceconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_resourceconfig.go new file mode 100644 index 000000000000..3998b6a1a117 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_resourceconfig.go @@ -0,0 +1,9 @@ +package appserviceplans + +// 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/appserviceplans/model_site.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_site.go new file mode 100644 index 000000000000..f0199b22e0b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_site.go @@ -0,0 +1,20 @@ +package appserviceplans + +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/appserviceplans/model_siteconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_siteconfig.go new file mode 100644 index 000000000000..d0cdbe238178 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_siteconfig.go @@ -0,0 +1,97 @@ +package appserviceplans + +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/appserviceplans/model_sitelimits.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_sitelimits.go new file mode 100644 index 000000000000..1036a87d5977 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_sitelimits.go @@ -0,0 +1,10 @@ +package appserviceplans + +// 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/appserviceplans/model_sitemachinekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_sitemachinekey.go new file mode 100644 index 000000000000..17855ad5e8cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_sitemachinekey.go @@ -0,0 +1,11 @@ +package appserviceplans + +// 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/appserviceplans/model_siteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_siteproperties.go new file mode 100644 index 000000000000..aafda2821e2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_siteproperties.go @@ -0,0 +1,86 @@ +package appserviceplans + +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/appserviceplans/model_skucapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_skucapacity.go new file mode 100644 index 000000000000..7bbedd7e00e1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_skucapacity.go @@ -0,0 +1,12 @@ +package appserviceplans + +// 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/appserviceplans/model_skudescription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_skudescription.go new file mode 100644 index 000000000000..290adb2a1adf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_skudescription.go @@ -0,0 +1,15 @@ +package appserviceplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SkuDescription struct { + Capabilities *[]Capability `json:"capabilities,omitempty"` + Capacity *int64 `json:"capacity,omitempty"` + Family *string `json:"family,omitempty"` + Locations *[]string `json:"locations,omitempty"` + Name *string `json:"name,omitempty"` + Size *string `json:"size,omitempty"` + SkuCapacity *SkuCapacity `json:"skuCapacity,omitempty"` + Tier *string `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_slotswapstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_slotswapstatus.go new file mode 100644 index 000000000000..707d5e1848f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_slotswapstatus.go @@ -0,0 +1,28 @@ +package appserviceplans + +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/appserviceplans/model_slowrequestsbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_slowrequestsbasedtrigger.go new file mode 100644 index 000000000000..d3f5bc55adb5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_slowrequestsbasedtrigger.go @@ -0,0 +1,11 @@ +package appserviceplans + +// 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/appserviceplans/model_statuscodesbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_statuscodesbasedtrigger.go new file mode 100644 index 000000000000..9e615c4b53cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_statuscodesbasedtrigger.go @@ -0,0 +1,13 @@ +package appserviceplans + +// 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/appserviceplans/model_statuscodesrangebasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_statuscodesrangebasedtrigger.go new file mode 100644 index 000000000000..b99ecfaebd78 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_statuscodesrangebasedtrigger.go @@ -0,0 +1,11 @@ +package appserviceplans + +// 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/appserviceplans/model_virtualapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_virtualapplication.go new file mode 100644 index 000000000000..dc79bed29826 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_virtualapplication.go @@ -0,0 +1,11 @@ +package appserviceplans + +// 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/appserviceplans/model_virtualdirectory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_virtualdirectory.go new file mode 100644 index 000000000000..35b134e56642 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_virtualdirectory.go @@ -0,0 +1,9 @@ +package appserviceplans + +// 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/appserviceplans/model_vnetgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetgateway.go new file mode 100644 index 000000000000..f7474dfa9e08 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetgateway.go @@ -0,0 +1,12 @@ +package appserviceplans + +// 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/appserviceplans/model_vnetgatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetgatewayproperties.go new file mode 100644 index 000000000000..407a93e7f24e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetgatewayproperties.go @@ -0,0 +1,9 @@ +package appserviceplans + +// 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/appserviceplans/model_vnetinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetinfo.go new file mode 100644 index 000000000000..fe7cf2d02536 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetinfo.go @@ -0,0 +1,14 @@ +package appserviceplans + +// 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/appserviceplans/model_vnetinforesource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetinforesource.go new file mode 100644 index 000000000000..2a5fcabaeaab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetinforesource.go @@ -0,0 +1,12 @@ +package appserviceplans + +// 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/appserviceplans/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetroute.go new file mode 100644 index 000000000000..ea4f24d9d78f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetroute.go @@ -0,0 +1,12 @@ +package appserviceplans + +// 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/appserviceplans/model_vnetrouteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetrouteproperties.go new file mode 100644 index 000000000000..ccedc00af717 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/model_vnetrouteproperties.go @@ -0,0 +1,10 @@ +package appserviceplans + +// 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/appserviceplans/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/predicates.go new file mode 100644 index 000000000000..31b4416ccb00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/predicates.go @@ -0,0 +1,126 @@ +package appserviceplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppServicePlanOperationPredicate struct { + Id *string + Kind *string + Location *string + Name *string + Type *string +} + +func (p AppServicePlanOperationPredicate) Matches(input AppServicePlan) 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 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 HybridConnectionOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string +} + +func (p HybridConnectionOperationPredicate) Matches(input HybridConnection) 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 +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/version.go new file mode 100644 index 000000000000..e1772968a905 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/version.go @@ -0,0 +1,12 @@ +package appserviceplans + +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/appserviceplans/%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..7de90f20ca47 --- /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.RemotePrivateEndpointConnectionARMResource{ + // ... +} + + +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.RemotePrivateEndpointConnectionARMResource{ + // ... +} + + +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..18b221248ba0 --- /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 RemotePrivateEndpointConnectionARMResource) (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 RemotePrivateEndpointConnectionARMResource) 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..f38c744a90f9 --- /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 RemotePrivateEndpointConnectionARMResource) (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 RemotePrivateEndpointConnectionARMResource) 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_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 0141b5d976f7..5bf7c4c79b07 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1008,6 +1008,9 @@ 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/appserviceenvironments +github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans +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 99f2d5ab7b5b4874ebe82d81b859b2ef4d5c8fa3 Mon Sep 17 00:00:00 2001 From: jackofallops Date: Fri, 12 Jan 2024 14:33:59 +0100 Subject: [PATCH 2/7] switch all service plan ID parsing from Get to insensitive --- internal/services/appservice/helpers/service_plan.go | 2 +- .../services/appservice/linux_function_app_resource.go | 9 +-------- internal/services/appservice/linux_web_app_resource.go | 2 +- .../services/appservice/linux_web_app_slot_resource.go | 2 +- .../appservice/windows_function_app_data_source.go | 2 +- .../services/appservice/windows_function_app_resource.go | 2 +- .../services/appservice/windows_web_app_data_source.go | 2 +- internal/services/appservice/windows_web_app_resource.go | 4 ++-- .../services/appservice/windows_web_app_slot_resource.go | 2 +- 9 files changed, 10 insertions(+), 17 deletions(-) diff --git a/internal/services/appservice/helpers/service_plan.go b/internal/services/appservice/helpers/service_plan.go index a70a8d02ebbf..758b4a5ca916 100644 --- a/internal/services/appservice/helpers/service_plan.go +++ b/internal/services/appservice/helpers/service_plan.go @@ -170,7 +170,7 @@ func ServicePlanInfoForApp(ctx context.Context, metadata sdk.ResourceMetaData, i if props.ServerFarmID == nil { return nil, nil, fmt.Errorf("determining Service Plan ID for %s: %+v", id, err) } - servicePlanId, err := commonids.ParseAppServicePlanID(*props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(*props.ServerFarmID) if err != nil { return nil, nil, err } diff --git a/internal/services/appservice/linux_function_app_resource.go b/internal/services/appservice/linux_function_app_resource.go index e94b31877383..2a69843c57e6 100644 --- a/internal/services/appservice/linux_function_app_resource.go +++ b/internal/services/appservice/linux_function_app_resource.go @@ -891,13 +891,6 @@ func (r LinuxFunctionAppResource) Update() sdk.ResourceFunc { return fmt.Errorf("reading Linux %s: %v", id, err) } - // Some service plan updates are allowed - see customiseDiff for exceptions - var serviceFarmId string - if metadata.ResourceData.HasChange("service_plan_id") { - serviceFarmId = state.ServicePlanId - existing.SiteProperties.ServerFarmID = utils.String(serviceFarmId) - } - _, planSKU, err := helpers.ServicePlanInfoForApp(ctx, metadata, *id) if err != nil { return err @@ -1210,7 +1203,7 @@ func (r LinuxFunctionAppResource) CustomImporter() sdk.ResourceRunFunc { if props.ServerFarmID == nil { return fmt.Errorf("determining Service Plan ID for Linux %s: %+v", id, err) } - servicePlanId, err := commonids.ParseAppServicePlanID(*props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(*props.ServerFarmID) if err != nil { return err } diff --git a/internal/services/appservice/linux_web_app_resource.go b/internal/services/appservice/linux_web_app_resource.go index d1dd356a799c..758722cf6767 100644 --- a/internal/services/appservice/linux_web_app_resource.go +++ b/internal/services/appservice/linux_web_app_resource.go @@ -1022,7 +1022,7 @@ func (r LinuxWebAppResource) CustomImporter() sdk.ResourceRunFunc { if props.ServerFarmID == nil { return fmt.Errorf("determining Service Plan ID for Linux %s: %+v", id, err) } - servicePlanId, err := commonids.ParseAppServicePlanID(*props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(*props.ServerFarmID) if err != nil { return err } diff --git a/internal/services/appservice/linux_web_app_slot_resource.go b/internal/services/appservice/linux_web_app_slot_resource.go index d603f5a97c22..0b12e33f61db 100644 --- a/internal/services/appservice/linux_web_app_slot_resource.go +++ b/internal/services/appservice/linux_web_app_slot_resource.go @@ -753,7 +753,7 @@ func (r LinuxWebAppSlotResource) Update() sdk.ResourceFunc { if webApp.SiteProperties == nil || webApp.SiteProperties.ServerFarmID == nil { return fmt.Errorf("could not determine Service Plan ID for %s: %+v", id, err) } - parentServicePlanId, err := commonids.ParseAppServicePlanID(*webApp.SiteProperties.ServerFarmID) + parentServicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(*webApp.SiteProperties.ServerFarmID) if err != nil { return err } diff --git a/internal/services/appservice/windows_function_app_data_source.go b/internal/services/appservice/windows_function_app_data_source.go index ae3bccd7dad3..4843a6366fa2 100644 --- a/internal/services/appservice/windows_function_app_data_source.go +++ b/internal/services/appservice/windows_function_app_data_source.go @@ -293,7 +293,7 @@ func (d WindowsFunctionAppDataSource) Read() sdk.ResourceFunc { functionApp.Name = id.SiteName functionApp.ResourceGroup = id.ResourceGroup - servicePlanId, err := commonids.ParseAppServicePlanID(pointer.From(props.ServerFarmID)) + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(pointer.From(props.ServerFarmID)) if err != nil { return fmt.Errorf("reading Service Plan Id for %s: %+v", id, err) } diff --git a/internal/services/appservice/windows_function_app_resource.go b/internal/services/appservice/windows_function_app_resource.go index 2ad50d68c9d1..4848a9d62866 100644 --- a/internal/services/appservice/windows_function_app_resource.go +++ b/internal/services/appservice/windows_function_app_resource.go @@ -1214,7 +1214,7 @@ func (r WindowsFunctionAppResource) CustomImporter() sdk.ResourceRunFunc { if props.ServerFarmID == nil { return fmt.Errorf("determining Service Plan ID for Windows %s: %+v", id, err) } - servicePlanId, err := commonids.ParseAppServicePlanID(*props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(*props.ServerFarmID) if err != nil { return err } diff --git a/internal/services/appservice/windows_web_app_data_source.go b/internal/services/appservice/windows_web_app_data_source.go index 98eeadd5d2ce..b8107de85d37 100644 --- a/internal/services/appservice/windows_web_app_data_source.go +++ b/internal/services/appservice/windows_web_app_data_source.go @@ -330,7 +330,7 @@ func (d WindowsWebAppDataSource) Read() sdk.ResourceFunc { if props.HTTPSOnly != nil { webApp.HttpsOnly = *props.HTTPSOnly } - servicePlanId, err := commonids.ParseAppServicePlanID(pointer.From(props.ServerFarmID)) + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(pointer.From(props.ServerFarmID)) if err != nil { return fmt.Errorf("parsing Service Plan ID for %s, %+v", id, err) } diff --git a/internal/services/appservice/windows_web_app_resource.go b/internal/services/appservice/windows_web_app_resource.go index c6efdc2d368b..75e8c57c319d 100644 --- a/internal/services/appservice/windows_web_app_resource.go +++ b/internal/services/appservice/windows_web_app_resource.go @@ -800,7 +800,7 @@ func (r WindowsWebAppResource) Update() sdk.ResourceFunc { existing.SiteProperties.ServerFarmID = pointer.To(serviceFarmId) servicePlanChange = true } - servicePlanId, err := commonids.ParseAppServicePlanID(serviceFarmId) + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(serviceFarmId) if err != nil { return err } @@ -1064,7 +1064,7 @@ func (r WindowsWebAppResource) CustomImporter() sdk.ResourceRunFunc { if props.ServerFarmID == nil { return fmt.Errorf("determining Service Plan ID for Windows %s: %+v", id, err) } - servicePlanId, err := commonids.ParseAppServicePlanID(*props.ServerFarmID) + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(*props.ServerFarmID) if err != nil { return err } diff --git a/internal/services/appservice/windows_web_app_slot_resource.go b/internal/services/appservice/windows_web_app_slot_resource.go index a786fc17309a..6bd9d4bdeb06 100644 --- a/internal/services/appservice/windows_web_app_slot_resource.go +++ b/internal/services/appservice/windows_web_app_slot_resource.go @@ -770,7 +770,7 @@ func (r WindowsWebAppSlotResource) Update() sdk.ResourceFunc { if webApp.SiteProperties == nil || webApp.SiteProperties.ServerFarmID == nil { return fmt.Errorf("could not determine Service Plan ID for %s: %+v", id, err) } - parentServicePlanId, err := commonids.ParseAppServicePlanID(*webApp.SiteProperties.ServerFarmID) + parentServicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(*webApp.SiteProperties.ServerFarmID) if err != nil { return err } From 8cb0df4a43adaf555edba5f12a7aa87dd83bf1fd Mon Sep 17 00:00:00 2001 From: jackofallops Date: Fri, 12 Jan 2024 14:56:08 +0100 Subject: [PATCH 3/7] go mod --- .../appserviceenvironments/README.md | 832 -- .../appserviceenvironments/client.go | 26 - .../appserviceenvironments/constants.go | 1439 ---- .../id_defaultinstance.go | 136 - .../id_hostingenvironmentdiagnostic.go | 134 - ...ingenvironmentprivateendpointconnection.go | 134 - .../appserviceenvironments/id_workerpool.go | 134 - .../id_workerpoolinstance.go | 143 - ...pproveorrejectprivateendpointconnection.go | 74 - .../method_changevnet.go | 89 - .../method_createorupdate.go | 76 - .../method_createorupdatemultirolepool.go | 75 - .../method_createorupdateworkerpool.go | 74 - .../appserviceenvironments/method_delete.go | 99 - ...d_deleteasecustomdnssuffixconfiguration.go | 54 - .../method_deleteprivateendpointconnection.go | 71 - .../appserviceenvironments/method_get.go | 52 - ...thod_getasecustomdnssuffixconfiguration.go | 53 - .../method_getasev3networkingconfiguration.go | 53 - .../method_getdiagnosticsitem.go | 51 - ..._getinboundnetworkdependenciesendpoints.go | 90 - .../method_getmultirolepool.go | 53 - ...getoutboundnetworkdependenciesendpoints.go | 90 - .../method_getprivateendpointconnection.go | 51 - ...method_getprivateendpointconnectionlist.go | 90 - .../method_getprivatelinkresources.go | 53 - .../method_getvipinfo.go | 53 - .../method_getworkerpool.go | 51 - .../appserviceenvironments/method_list.go | 90 - .../method_listappserviceplans.go | 90 - .../method_listbyresourcegroup.go | 90 - .../method_listcapacities.go | 90 - .../method_listdiagnostics.go | 53 - .../method_listmultirolemetricdefinitions.go | 90 - ...tmultirolepoolinstancemetricdefinitions.go | 89 - .../method_listmultirolepools.go | 90 - .../method_listmultirolepoolskus.go | 90 - .../method_listmultiroleusages.go | 90 - .../method_listoperations.go | 53 - .../method_listusages.go | 118 - .../method_listwebapps.go | 118 - .../method_listwebworkermetricdefinitions.go | 89 - .../method_listwebworkerusages.go | 89 - ...listworkerpoolinstancemetricdefinitions.go | 89 - .../method_listworkerpools.go | 90 - .../method_listworkerpoolskus.go | 89 - .../appserviceenvironments/method_reboot.go | 48 - .../appserviceenvironments/method_resume.go | 85 - .../appserviceenvironments/method_suspend.go | 85 - ...method_testupgradeavailablenotification.go | 48 - .../appserviceenvironments/method_update.go | 58 - ...d_updateasecustomdnssuffixconfiguration.go | 57 - ...method_updateasenetworkingconfiguration.go | 57 - .../method_updatemultirolepool.go | 58 - .../method_updateworkerpool.go | 56 - .../appserviceenvironments/method_upgrade.go | 70 - .../model_addressresponse.go | 12 - .../model_addressresponseproperties.go | 11 - .../model_apidefinitioninfo.go | 8 - .../model_apimanagementconfig.go | 8 - .../model_appserviceenvironment.go | 27 - ...odel_appserviceenvironmentpatchresource.go | 12 - .../model_appserviceenvironmentresource.go | 14 - .../model_appserviceplan.go | 16 - .../model_appserviceplanproperties.go | 60 - .../model_armidwrapper.go | 8 - .../model_asev3networkingconfiguration.go | 12 - ..._asev3networkingconfigurationproperties.go | 15 - .../model_autohealactions.go | 10 - .../model_autohealcustomaction.go | 9 - .../model_autohealrules.go | 9 - .../model_autohealtriggers.go | 13 - .../model_azurestorageinfovalue.go | 13 - .../model_capability.go | 10 - .../model_cloninginfo.go | 18 - .../model_connstringinfo.go | 10 - .../model_corssettings.go | 9 - .../model_csmusagequota.go | 30 - .../model_customdnssuffixconfiguration.go | 12 - ..._customdnssuffixconfigurationproperties.go | 12 - .../model_daprconfig.go | 14 - .../model_endpointdependency.go | 9 - .../model_endpointdetail.go | 11 - .../model_errorentity.go | 15 - .../model_experiments.go | 8 - .../model_extendedlocation.go | 9 - .../model_handlermapping.go | 10 - .../model_hostingenvironmentdiagnostics.go | 9 - .../model_hostingenvironmentprofile.go | 10 - .../model_hostnamesslstate.go | 13 - .../model_inboundenvironmentendpoint.go | 10 - .../model_ipsecurityrestriction.go | 18 - .../model_kubeenvironmentprofile.go | 10 - .../model_localizablestring.go | 9 - .../model_namevaluepair.go | 9 - .../appserviceenvironments/model_operation.go | 57 - .../model_outboundenvironmentendpoint.go | 9 - .../model_privatelinkconnectionstate.go | 10 - .../model_privatelinkresource.go | 11 - .../model_privatelinkresourceproperties.go | 10 - .../model_privatelinkresourceswrapper.go | 8 - .../model_pushsettings.go | 12 - .../model_pushsettingsproperties.go | 11 - .../model_rampuprule.go | 15 - ...oteprivateendpointconnectionarmresource.go | 12 - ...endpointconnectionarmresourceproperties.go | 11 - .../model_requestsbasedtrigger.go | 9 - .../model_resourceconfig.go | 9 - .../model_resourcemetricavailability.go | 9 - .../model_resourcemetricdefinition.go | 12 - ...odel_resourcemetricdefinitionproperties.go | 12 - .../appserviceenvironments/model_site.go | 20 - .../model_siteconfig.go | 97 - .../model_sitelimits.go | 10 - .../model_sitemachinekey.go | 11 - .../model_siteproperties.go | 86 - .../model_skucapacity.go | 12 - .../model_skudescription.go | 15 - .../appserviceenvironments/model_skuinfo.go | 10 - .../model_slotswapstatus.go | 28 - .../model_slowrequestsbasedtrigger.go | 11 - .../model_stampcapacity.go | 18 - .../model_statuscodesbasedtrigger.go | 13 - .../model_statuscodesrangebasedtrigger.go | 11 - .../appserviceenvironments/model_usage.go | 12 - .../model_usageproperties.go | 33 - .../model_virtualapplication.go | 11 - .../model_virtualdirectory.go | 9 - .../model_virtualipmapping.go | 12 - .../model_virtualnetworkprofile.go | 11 - .../model_workerpool.go | 12 - .../model_workerpoolresource.go | 13 - .../appserviceenvironments/predicates.go | 335 - .../appserviceenvironments/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 - .../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 - 835 files changed, 55195 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_approveorrejectprivateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdatemultirolepool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdateworkerpool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteprivateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasev3networkingconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getdiagnosticsitem.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnectionlist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivatelinkresources.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getvipinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getworkerpool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listappserviceplans.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolemetricdefinitions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_reboot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_testupgradeavailablenotification.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_update.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasenetworkingconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updatemultirolepool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateworkerpool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_upgrade.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponseproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apidefinitioninfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apimanagementconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironment.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentpatchresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplan.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplanproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_armidwrapper.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealactions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealcustomaction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealrules.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealtriggers.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_azurestorageinfovalue.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_capability.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_cloninginfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_connstringinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_corssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_csmusagequota.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_daprconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdependency.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdetail.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_errorentity.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_experiments.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_extendedlocation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_handlermapping.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentdiagnostics.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostnamesslstate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_inboundenvironmentendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_ipsecurityrestriction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_kubeenvironmentprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_localizablestring.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_namevaluepair.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_operation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_outboundenvironmentendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkconnectionstate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceswrapper.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettingsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_rampuprule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresourceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_requestsbasedtrigger.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourceconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricavailability.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinition.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinitionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_site.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitelimits.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitemachinekey.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skucapacity.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skudescription.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skuinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slotswapstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slowrequestsbasedtrigger.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_stampcapacity.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesbasedtrigger.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesrangebasedtrigger.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usage.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usageproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualapplication.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualdirectory.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualipmapping.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualnetworkprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpoolresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_appsetting.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_backup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceappsetting.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceconnectionstring.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_connectionstring.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_continuouswebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_default.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_deployment.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_domainownershipidentifier.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_function.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_functionkey.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_gateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_history.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostdefault.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostnamebinding.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hybridconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instance.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocess.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocessmodule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_key.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_module.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networkfeature.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networktrace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_premieraddon.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_privateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_process.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_processmodule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_publiccertificate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_relay.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteextension.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_sitenetworktrace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteslotnetworktrace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotbackup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotcontinuouswebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdeployment.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdomainownershipidentifier.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotfunction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothostnamebinding.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnectionnamespacerelay.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstance.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocess.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocessmodule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworkfeature.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworktrace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpremieraddon.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprivateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprocess.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpubliccertificate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotsiteextension.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slottriggeredwebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnectiongateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotwebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotworkflow.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_snapshot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjobhistory.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_virtualnetworkconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_webjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_websnapshot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_workflow.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddon.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddonslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostname.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostnameslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigtoproduction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigurationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backupslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeployment.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeploymentslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createfunction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancefunctionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createonedeployoperation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfigurationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifier.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifierslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecret.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecretslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebinding.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebindingslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecret.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecretslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificateslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrol.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrolslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheck.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheckslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongatewayslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfigurationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjobslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeployment.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeploymentslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifier.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifierslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecret.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecretslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebinding.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebindingslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecret.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecretslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstancefunctionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocess.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocessslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddon.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddonslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocess.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocessslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificateslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextension.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextensionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrol.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrolslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetwork.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetworkslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjobslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifacts.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifactsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackupslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpassword.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpasswordslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreference.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreferenceslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferences.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferencesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2slot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecrets.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecretsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfigurationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatusslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshotslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszip.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszipslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjobslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeployment.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeploymentslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfigurationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifier.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifierslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowed.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowedslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintoken.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintokenslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebinding.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebindingslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancefunctionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfoslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylogslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatusslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocess.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdump.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdumpslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmodule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmoduleslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceworkflowslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatusslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylogslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatusslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktraces.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslotv2.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesv2.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getonedeploystatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddon.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddonslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccess.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccessslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlistslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresources.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresourcesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocess.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdump.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdumpslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmodule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmoduleslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificateslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowed.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowedslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreference.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferenceslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextension.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextensionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflag.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflagslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrol.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrolslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistory.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistoryslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongatewayslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjobslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogs.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getworkflow.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextension.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextensionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneable.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneableslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettingsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccounts.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccountsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackups.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecrets.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecretsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspolicies.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbyresourcegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurations.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfoslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstrings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstringsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobs.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlogslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeployments.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiers.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiersslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeys.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeysslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecrets.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecretsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeys.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeysslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindingsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnections.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnectionsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstancefunctionsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiers.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiersslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocesses.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodules.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodulesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreads.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreadsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceworkflowsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadata.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadataslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeatures.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeaturesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncounters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncountersslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddons.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddonsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocesses.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodules.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodulesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreads.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreadsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listproductionsitedeploymentstatuses.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificatesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentials.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentialsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecrets.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecretsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnections.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnectionsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensionsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettingsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotconfigurationnames.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslots.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotsitedeploymentstatusesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshots.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondary.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondaryslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggers.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggersslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatusslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistory.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistoryslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobs.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusages.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusagesslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnections.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnectionsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobs.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflows.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnections.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnectionsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratemysql.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratestorage.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnet.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnetslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshotslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetproductionslotconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetslotconfigurationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restart.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restartslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restore.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblobslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedapp.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedappslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoreslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshotslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjobslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_start.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjobslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktrace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktraceslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktrace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stop.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjobslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktrace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktraceslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktrace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktraceslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotwithproduction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctionsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggers.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggersslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepository.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepositoryslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_update.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettingsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2slot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccounts.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccountsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfigurationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfigurationslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstrings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstringsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfigslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifier.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifierslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowed.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowedslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadata.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadataslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddon.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddonslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowed.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowedslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettingsslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslotconfigurationnames.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrol.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrolslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheck.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheckslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongatewayslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectionslot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedaudiencesvalidation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedprincipals.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apidefinitioninfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreference.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreferenceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apimanagementconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apple.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appleregistration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_applicationlogsconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appregistration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_armidwrapper.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_authplatform.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealactions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealcustomaction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealrules.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealtriggers.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectory.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectorylogin.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryregistration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryvalidation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstorageapplicationlogsconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstoragehttplogsconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebapps.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebappsregistration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestorageinfovalue.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestoragepropertydictionaryresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azuretablestorageapplicationlogsconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitem.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitemproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequest.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequestproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupschedule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_blobstoragetokenstore.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_clientregistration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cloninginfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connectionstringdictionary.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringvaluetypepair.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpustatistics.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpuusage.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containermemorystatistics.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containernetworkinterfacestatistics.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerthrottlingdata.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjobproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cookieexpiration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_corssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatusproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentity.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentityproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingprofileoptions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmslotentity.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmusagequota.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresultproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customopenidconnectprovider.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_daprconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_databasebackupsetting.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_defaultauthorizationpolicy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequest.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequestproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deployment.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deploymentproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_enabledconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_errorentity.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_experiments.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_extendedlocation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_facebook.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemapplicationlogsconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemhttplogsconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemtokenstore.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_forwardproxy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelope.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelopeproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionsecrets.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_github.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncodeconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactionconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncontainerconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_globalvalidation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_google.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_handlermapping.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostingenvironmentprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostkeys.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebinding.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebindingproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamesslstate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httplogsconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettingsroutes.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifier.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifierproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identityproviders.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_ipsecurityrestriction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_jwtclaimchecks.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_keyinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_legacymicrosoftaccount.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_localizablestring.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_login.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginroutes.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginscopes.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequest.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequestproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatusproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploycore.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogentry.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeployproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatusproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_namevaluepair.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeatures.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeaturesproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networktrace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_nonce.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectclientcredential.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectlogin.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectregistration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_operation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonsample.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonset.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddon.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresourceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccess.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccesssubnet.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessvirtualnetwork.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionstate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceswrapper.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfoproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfoproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfoproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificateproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettingsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_rampuprule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentity.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentityproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresourceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_requestsbasedtrigger.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_resourceconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequest.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequestproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_site.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2properties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneability.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneabilitycriterion.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfoproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfoproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelimits.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfigproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitemachinekey.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresourceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflag.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflagproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrol.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrolproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignames.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignamesresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifference.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifferenceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotswapstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slowrequestsbasedtrigger.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrecoverysource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequest.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequestproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesbasedtrigger.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesrangebasedtrigger.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptionsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponseproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_stringdictionary.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetwork.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetworkproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_tokenstore.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistory.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistoryproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobrun.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjobproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitter.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitterregistration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_user.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_userproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualapplication.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualdirectory.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgatewayproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinforesource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetroute.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetrouteproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjob.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjobproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatusproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowartifacts.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelope.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelopeproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowhealth.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/version.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md deleted file mode 100644 index 31140f6bac1d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md +++ /dev/null @@ -1,832 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments` Documentation - -The `appserviceenvironments` 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/appserviceenvironments" -``` - - -### Client Initialization - -```go -client := appserviceenvironments.NewAppServiceEnvironmentsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ApproveOrRejectPrivateEndpointConnection` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "privateEndpointConnectionValue") - -payload := appserviceenvironments.RemotePrivateEndpointConnectionARMResource{ - // ... -} - - -if err := client.ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ChangeVnet` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -payload := appserviceenvironments.VirtualNetworkProfile{ - // ... -} - - -// alternatively `client.ChangeVnet(ctx, id, payload)` can be used to do batched pagination -items, err := client.ChangeVnetComplete(ctx, id, payload) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -payload := appserviceenvironments.AppServiceEnvironmentResource{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.CreateOrUpdateMultiRolePool` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -payload := appserviceenvironments.WorkerPoolResource{ - // ... -} - - -if err := client.CreateOrUpdateMultiRolePoolThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.CreateOrUpdateWorkerPool` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") - -payload := appserviceenvironments.WorkerPoolResource{ - // ... -} - - -if err := client.CreateOrUpdateWorkerPoolThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.Delete` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -if err := client.DeleteThenPoll(ctx, id, appserviceenvironments.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.DeleteAseCustomDnsSuffixConfiguration` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -read, err := client.DeleteAseCustomDnsSuffixConfiguration(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.DeletePrivateEndpointConnection` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "privateEndpointConnectionValue") - -if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.Get` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -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: `AppServiceEnvironmentsClient.GetAseCustomDnsSuffixConfiguration` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -read, err := client.GetAseCustomDnsSuffixConfiguration(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.GetAseV3NetworkingConfiguration` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -read, err := client.GetAseV3NetworkingConfiguration(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.GetDiagnosticsItem` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewHostingEnvironmentDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "diagnosticValue") - -read, err := client.GetDiagnosticsItem(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.GetInboundNetworkDependenciesEndpoints` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.GetInboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination -items, err := client.GetInboundNetworkDependenciesEndpointsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.GetMultiRolePool` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -read, err := client.GetMultiRolePool(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.GetOutboundNetworkDependenciesEndpoints` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.GetOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination -items, err := client.GetOutboundNetworkDependenciesEndpointsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.GetPrivateEndpointConnection` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "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: `AppServiceEnvironmentsClient.GetPrivateEndpointConnectionList` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// 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: `AppServiceEnvironmentsClient.GetPrivateLinkResources` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -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: `AppServiceEnvironmentsClient.GetVipInfo` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -read, err := client.GetVipInfo(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.GetWorkerPool` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") - -read, err := client.GetWorkerPool(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.List` - -```go -ctx := context.TODO() -id := appserviceenvironments.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: `AppServiceEnvironmentsClient.ListAppServicePlans` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.ListAppServicePlans(ctx, id)` can be used to do batched pagination -items, err := client.ListAppServicePlansComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListCapacities` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.ListCapacities(ctx, id)` can be used to do batched pagination -items, err := client.ListCapacitiesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListDiagnostics` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -read, err := client.ListDiagnostics(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListMultiRoleMetricDefinitions` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.ListMultiRoleMetricDefinitions(ctx, id)` can be used to do batched pagination -items, err := client.ListMultiRoleMetricDefinitionsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListMultiRolePoolInstanceMetricDefinitions` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewDefaultInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "instanceValue") - -// alternatively `client.ListMultiRolePoolInstanceMetricDefinitions(ctx, id)` can be used to do batched pagination -items, err := client.ListMultiRolePoolInstanceMetricDefinitionsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListMultiRolePoolSkus` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.ListMultiRolePoolSkus(ctx, id)` can be used to do batched pagination -items, err := client.ListMultiRolePoolSkusComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListMultiRolePools` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.ListMultiRolePools(ctx, id)` can be used to do batched pagination -items, err := client.ListMultiRolePoolsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListMultiRoleUsages` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.ListMultiRoleUsages(ctx, id)` can be used to do batched pagination -items, err := client.ListMultiRoleUsagesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListOperations` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -read, err := client.ListOperations(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListUsages` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.ListUsages(ctx, id, appserviceenvironments.DefaultListUsagesOperationOptions())` can be used to do batched pagination -items, err := client.ListUsagesComplete(ctx, id, appserviceenvironments.DefaultListUsagesOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListWebApps` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.ListWebApps(ctx, id, appserviceenvironments.DefaultListWebAppsOperationOptions())` can be used to do batched pagination -items, err := client.ListWebAppsComplete(ctx, id, appserviceenvironments.DefaultListWebAppsOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListWebWorkerMetricDefinitions` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") - -// alternatively `client.ListWebWorkerMetricDefinitions(ctx, id)` can be used to do batched pagination -items, err := client.ListWebWorkerMetricDefinitionsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListWebWorkerUsages` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") - -// alternatively `client.ListWebWorkerUsages(ctx, id)` can be used to do batched pagination -items, err := client.ListWebWorkerUsagesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListWorkerPoolInstanceMetricDefinitions` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue", "instanceValue") - -// alternatively `client.ListWorkerPoolInstanceMetricDefinitions(ctx, id)` can be used to do batched pagination -items, err := client.ListWorkerPoolInstanceMetricDefinitionsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListWorkerPoolSkus` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") - -// alternatively `client.ListWorkerPoolSkus(ctx, id)` can be used to do batched pagination -items, err := client.ListWorkerPoolSkusComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.ListWorkerPools` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.ListWorkerPools(ctx, id)` can be used to do batched pagination -items, err := client.ListWorkerPoolsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.Reboot` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -read, err := client.Reboot(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.Resume` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.Resume(ctx, id)` can be used to do batched pagination -items, err := client.ResumeComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.Suspend` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -// alternatively `client.Suspend(ctx, id)` can be used to do batched pagination -items, err := client.SuspendComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.TestUpgradeAvailableNotification` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -read, err := client.TestUpgradeAvailableNotification(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.Update` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -payload := appserviceenvironments.AppServiceEnvironmentPatchResource{ - // ... -} - - -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: `AppServiceEnvironmentsClient.UpdateAseCustomDnsSuffixConfiguration` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -payload := appserviceenvironments.CustomDnsSuffixConfiguration{ - // ... -} - - -read, err := client.UpdateAseCustomDnsSuffixConfiguration(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.UpdateAseNetworkingConfiguration` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -payload := appserviceenvironments.AseV3NetworkingConfiguration{ - // ... -} - - -read, err := client.UpdateAseNetworkingConfiguration(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.UpdateMultiRolePool` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -payload := appserviceenvironments.WorkerPoolResource{ - // ... -} - - -read, err := client.UpdateMultiRolePool(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.UpdateWorkerPool` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") - -payload := appserviceenvironments.WorkerPoolResource{ - // ... -} - - -read, err := client.UpdateWorkerPool(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AppServiceEnvironmentsClient.Upgrade` - -```go -ctx := context.TODO() -id := appserviceenvironments.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") - -if err := client.UpgradeThenPoll(ctx, id); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go deleted file mode 100644 index b9c0ff155f69..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package appserviceenvironments - -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 AppServiceEnvironmentsClient struct { - Client *resourcemanager.Client -} - -func NewAppServiceEnvironmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*AppServiceEnvironmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "appserviceenvironments", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating AppServiceEnvironmentsClient: %+v", err) - } - - return &AppServiceEnvironmentsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/constants.go deleted file mode 100644 index 3629a2b370c8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/constants.go +++ /dev/null @@ -1,1439 +0,0 @@ -package appserviceenvironments - -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 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 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 ComputeModeOptions string - -const ( - ComputeModeOptionsDedicated ComputeModeOptions = "Dedicated" - ComputeModeOptionsDynamic ComputeModeOptions = "Dynamic" - ComputeModeOptionsShared ComputeModeOptions = "Shared" -) - -func PossibleValuesForComputeModeOptions() []string { - return []string{ - string(ComputeModeOptionsDedicated), - string(ComputeModeOptionsDynamic), - string(ComputeModeOptionsShared), - } -} - -func (s *ComputeModeOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseComputeModeOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseComputeModeOptions(input string) (*ComputeModeOptions, error) { - vals := map[string]ComputeModeOptions{ - "dedicated": ComputeModeOptionsDedicated, - "dynamic": ComputeModeOptionsDynamic, - "shared": ComputeModeOptionsShared, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ComputeModeOptions(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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 StatusOptions string - -const ( - StatusOptionsCreating StatusOptions = "Creating" - StatusOptionsPending StatusOptions = "Pending" - StatusOptionsReady StatusOptions = "Ready" -) - -func PossibleValuesForStatusOptions() []string { - return []string{ - string(StatusOptionsCreating), - string(StatusOptionsPending), - string(StatusOptionsReady), - } -} - -func (s *StatusOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseStatusOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseStatusOptions(input string) (*StatusOptions, error) { - vals := map[string]StatusOptions{ - "creating": StatusOptionsCreating, - "pending": StatusOptionsPending, - "ready": StatusOptionsReady, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := StatusOptions(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 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 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 WorkerSizeOptions string - -const ( - WorkerSizeOptionsDOne WorkerSizeOptions = "D1" - WorkerSizeOptionsDThree WorkerSizeOptions = "D3" - WorkerSizeOptionsDTwo WorkerSizeOptions = "D2" - WorkerSizeOptionsDefault WorkerSizeOptions = "Default" - WorkerSizeOptionsLarge WorkerSizeOptions = "Large" - WorkerSizeOptionsLargeVThree WorkerSizeOptions = "LargeV3" - WorkerSizeOptionsMedium WorkerSizeOptions = "Medium" - WorkerSizeOptionsMediumVThree WorkerSizeOptions = "MediumV3" - WorkerSizeOptionsNestedSmall WorkerSizeOptions = "NestedSmall" - WorkerSizeOptionsNestedSmallLinux WorkerSizeOptions = "NestedSmallLinux" - WorkerSizeOptionsSmall WorkerSizeOptions = "Small" - WorkerSizeOptionsSmallVThree WorkerSizeOptions = "SmallV3" -) - -func PossibleValuesForWorkerSizeOptions() []string { - return []string{ - string(WorkerSizeOptionsDOne), - string(WorkerSizeOptionsDThree), - string(WorkerSizeOptionsDTwo), - string(WorkerSizeOptionsDefault), - string(WorkerSizeOptionsLarge), - string(WorkerSizeOptionsLargeVThree), - string(WorkerSizeOptionsMedium), - string(WorkerSizeOptionsMediumVThree), - string(WorkerSizeOptionsNestedSmall), - string(WorkerSizeOptionsNestedSmallLinux), - string(WorkerSizeOptionsSmall), - string(WorkerSizeOptionsSmallVThree), - } -} - -func (s *WorkerSizeOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseWorkerSizeOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseWorkerSizeOptions(input string) (*WorkerSizeOptions, error) { - vals := map[string]WorkerSizeOptions{ - "d1": WorkerSizeOptionsDOne, - "d3": WorkerSizeOptionsDThree, - "d2": WorkerSizeOptionsDTwo, - "default": WorkerSizeOptionsDefault, - "large": WorkerSizeOptionsLarge, - "largev3": WorkerSizeOptionsLargeVThree, - "medium": WorkerSizeOptionsMedium, - "mediumv3": WorkerSizeOptionsMediumVThree, - "nestedsmall": WorkerSizeOptionsNestedSmall, - "nestedsmalllinux": WorkerSizeOptionsNestedSmallLinux, - "small": WorkerSizeOptionsSmall, - "smallv3": WorkerSizeOptionsSmallVThree, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := WorkerSizeOptions(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go deleted file mode 100644 index 3082830caa7d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go +++ /dev/null @@ -1,136 +0,0 @@ -package appserviceenvironments - -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 = DefaultInstanceId{} - -// DefaultInstanceId is a struct representing the Resource ID for a Default Instance -type DefaultInstanceId struct { - SubscriptionId string - ResourceGroupName string - HostingEnvironmentName string - InstanceName string -} - -// NewDefaultInstanceID returns a new DefaultInstanceId struct -func NewDefaultInstanceID(subscriptionId string, resourceGroupName string, hostingEnvironmentName string, instanceName string) DefaultInstanceId { - return DefaultInstanceId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - HostingEnvironmentName: hostingEnvironmentName, - InstanceName: instanceName, - } -} - -// ParseDefaultInstanceID parses 'input' into a DefaultInstanceId -func ParseDefaultInstanceID(input string) (*DefaultInstanceId, error) { - parser := resourceids.NewParserFromResourceIdType(DefaultInstanceId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := DefaultInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseDefaultInstanceIDInsensitively parses 'input' case-insensitively into a DefaultInstanceId -// note: this method should only be used for API response data and not user input -func ParseDefaultInstanceIDInsensitively(input string) (*DefaultInstanceId, error) { - parser := resourceids.NewParserFromResourceIdType(DefaultInstanceId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := DefaultInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *DefaultInstanceId) 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.HostingEnvironmentName, ok = input.Parsed["hostingEnvironmentName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "hostingEnvironmentName", input) - } - - if id.InstanceName, ok = input.Parsed["instanceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "instanceName", input) - } - - return nil -} - -// ValidateDefaultInstanceID checks that 'input' can be parsed as a Default Instance ID -func ValidateDefaultInstanceID(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 := ParseDefaultInstanceID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Default Instance ID -func (id DefaultInstanceId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/hostingEnvironments/%s/multiRolePools/default/instances/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.HostingEnvironmentName, id.InstanceName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Default Instance ID -func (id DefaultInstanceId) 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("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), - resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), - resourceids.StaticSegment("staticMultiRolePools", "multiRolePools", "multiRolePools"), - resourceids.StaticSegment("staticDefault", "default", "default"), - resourceids.StaticSegment("staticInstances", "instances", "instances"), - resourceids.UserSpecifiedSegment("instanceName", "instanceValue"), - } -} - -// String returns a human-readable description of this Default Instance ID -func (id DefaultInstanceId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Hosting Environment Name: %q", id.HostingEnvironmentName), - fmt.Sprintf("Instance Name: %q", id.InstanceName), - } - return fmt.Sprintf("Default Instance (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go deleted file mode 100644 index 812ab39d5c8b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go +++ /dev/null @@ -1,134 +0,0 @@ -package appserviceenvironments - -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 = HostingEnvironmentDiagnosticId{} - -// HostingEnvironmentDiagnosticId is a struct representing the Resource ID for a Hosting Environment Diagnostic -type HostingEnvironmentDiagnosticId struct { - SubscriptionId string - ResourceGroupName string - HostingEnvironmentName string - DiagnosticName string -} - -// NewHostingEnvironmentDiagnosticID returns a new HostingEnvironmentDiagnosticId struct -func NewHostingEnvironmentDiagnosticID(subscriptionId string, resourceGroupName string, hostingEnvironmentName string, diagnosticName string) HostingEnvironmentDiagnosticId { - return HostingEnvironmentDiagnosticId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - HostingEnvironmentName: hostingEnvironmentName, - DiagnosticName: diagnosticName, - } -} - -// ParseHostingEnvironmentDiagnosticID parses 'input' into a HostingEnvironmentDiagnosticId -func ParseHostingEnvironmentDiagnosticID(input string) (*HostingEnvironmentDiagnosticId, error) { - parser := resourceids.NewParserFromResourceIdType(HostingEnvironmentDiagnosticId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := HostingEnvironmentDiagnosticId{} - if err := id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseHostingEnvironmentDiagnosticIDInsensitively parses 'input' case-insensitively into a HostingEnvironmentDiagnosticId -// note: this method should only be used for API response data and not user input -func ParseHostingEnvironmentDiagnosticIDInsensitively(input string) (*HostingEnvironmentDiagnosticId, error) { - parser := resourceids.NewParserFromResourceIdType(HostingEnvironmentDiagnosticId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := HostingEnvironmentDiagnosticId{} - if err := id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *HostingEnvironmentDiagnosticId) 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.HostingEnvironmentName, ok = input.Parsed["hostingEnvironmentName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "hostingEnvironmentName", input) - } - - if id.DiagnosticName, ok = input.Parsed["diagnosticName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "diagnosticName", input) - } - - return nil -} - -// ValidateHostingEnvironmentDiagnosticID checks that 'input' can be parsed as a Hosting Environment Diagnostic ID -func ValidateHostingEnvironmentDiagnosticID(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 := ParseHostingEnvironmentDiagnosticID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Hosting Environment Diagnostic ID -func (id HostingEnvironmentDiagnosticId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/hostingEnvironments/%s/diagnostics/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.HostingEnvironmentName, id.DiagnosticName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Hosting Environment Diagnostic ID -func (id HostingEnvironmentDiagnosticId) 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("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), - resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), - resourceids.StaticSegment("staticDiagnostics", "diagnostics", "diagnostics"), - resourceids.UserSpecifiedSegment("diagnosticName", "diagnosticValue"), - } -} - -// String returns a human-readable description of this Hosting Environment Diagnostic ID -func (id HostingEnvironmentDiagnosticId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Hosting Environment Name: %q", id.HostingEnvironmentName), - fmt.Sprintf("Diagnostic Name: %q", id.DiagnosticName), - } - return fmt.Sprintf("Hosting Environment Diagnostic (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go deleted file mode 100644 index b020f7935907..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go +++ /dev/null @@ -1,134 +0,0 @@ -package appserviceenvironments - -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 = HostingEnvironmentPrivateEndpointConnectionId{} - -// HostingEnvironmentPrivateEndpointConnectionId is a struct representing the Resource ID for a Hosting Environment Private Endpoint Connection -type HostingEnvironmentPrivateEndpointConnectionId struct { - SubscriptionId string - ResourceGroupName string - HostingEnvironmentName string - PrivateEndpointConnectionName string -} - -// NewHostingEnvironmentPrivateEndpointConnectionID returns a new HostingEnvironmentPrivateEndpointConnectionId struct -func NewHostingEnvironmentPrivateEndpointConnectionID(subscriptionId string, resourceGroupName string, hostingEnvironmentName string, privateEndpointConnectionName string) HostingEnvironmentPrivateEndpointConnectionId { - return HostingEnvironmentPrivateEndpointConnectionId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - HostingEnvironmentName: hostingEnvironmentName, - PrivateEndpointConnectionName: privateEndpointConnectionName, - } -} - -// ParseHostingEnvironmentPrivateEndpointConnectionID parses 'input' into a HostingEnvironmentPrivateEndpointConnectionId -func ParseHostingEnvironmentPrivateEndpointConnectionID(input string) (*HostingEnvironmentPrivateEndpointConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(HostingEnvironmentPrivateEndpointConnectionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := HostingEnvironmentPrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseHostingEnvironmentPrivateEndpointConnectionIDInsensitively parses 'input' case-insensitively into a HostingEnvironmentPrivateEndpointConnectionId -// note: this method should only be used for API response data and not user input -func ParseHostingEnvironmentPrivateEndpointConnectionIDInsensitively(input string) (*HostingEnvironmentPrivateEndpointConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(HostingEnvironmentPrivateEndpointConnectionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := HostingEnvironmentPrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *HostingEnvironmentPrivateEndpointConnectionId) 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.HostingEnvironmentName, ok = input.Parsed["hostingEnvironmentName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "hostingEnvironmentName", input) - } - - if id.PrivateEndpointConnectionName, ok = input.Parsed["privateEndpointConnectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointConnectionName", input) - } - - return nil -} - -// ValidateHostingEnvironmentPrivateEndpointConnectionID checks that 'input' can be parsed as a Hosting Environment Private Endpoint Connection ID -func ValidateHostingEnvironmentPrivateEndpointConnectionID(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 := ParseHostingEnvironmentPrivateEndpointConnectionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Hosting Environment Private Endpoint Connection ID -func (id HostingEnvironmentPrivateEndpointConnectionId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/hostingEnvironments/%s/privateEndpointConnections/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.HostingEnvironmentName, id.PrivateEndpointConnectionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Hosting Environment Private Endpoint Connection ID -func (id HostingEnvironmentPrivateEndpointConnectionId) 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("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), - resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), - resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), - } -} - -// String returns a human-readable description of this Hosting Environment Private Endpoint Connection ID -func (id HostingEnvironmentPrivateEndpointConnectionId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Hosting Environment Name: %q", id.HostingEnvironmentName), - fmt.Sprintf("Private Endpoint Connection Name: %q", id.PrivateEndpointConnectionName), - } - return fmt.Sprintf("Hosting Environment Private Endpoint Connection (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go deleted file mode 100644 index 00002ea09ab0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go +++ /dev/null @@ -1,134 +0,0 @@ -package appserviceenvironments - -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 = WorkerPoolId{} - -// WorkerPoolId is a struct representing the Resource ID for a Worker Pool -type WorkerPoolId struct { - SubscriptionId string - ResourceGroupName string - HostingEnvironmentName string - WorkerPoolName string -} - -// NewWorkerPoolID returns a new WorkerPoolId struct -func NewWorkerPoolID(subscriptionId string, resourceGroupName string, hostingEnvironmentName string, workerPoolName string) WorkerPoolId { - return WorkerPoolId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - HostingEnvironmentName: hostingEnvironmentName, - WorkerPoolName: workerPoolName, - } -} - -// ParseWorkerPoolID parses 'input' into a WorkerPoolId -func ParseWorkerPoolID(input string) (*WorkerPoolId, error) { - parser := resourceids.NewParserFromResourceIdType(WorkerPoolId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := WorkerPoolId{} - if err := id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseWorkerPoolIDInsensitively parses 'input' case-insensitively into a WorkerPoolId -// note: this method should only be used for API response data and not user input -func ParseWorkerPoolIDInsensitively(input string) (*WorkerPoolId, error) { - parser := resourceids.NewParserFromResourceIdType(WorkerPoolId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := WorkerPoolId{} - if err := id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *WorkerPoolId) 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.HostingEnvironmentName, ok = input.Parsed["hostingEnvironmentName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "hostingEnvironmentName", input) - } - - if id.WorkerPoolName, ok = input.Parsed["workerPoolName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "workerPoolName", input) - } - - return nil -} - -// ValidateWorkerPoolID checks that 'input' can be parsed as a Worker Pool ID -func ValidateWorkerPoolID(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 := ParseWorkerPoolID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Worker Pool ID -func (id WorkerPoolId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/hostingEnvironments/%s/workerPools/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.HostingEnvironmentName, id.WorkerPoolName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Worker Pool ID -func (id WorkerPoolId) 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("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), - resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), - resourceids.StaticSegment("staticWorkerPools", "workerPools", "workerPools"), - resourceids.UserSpecifiedSegment("workerPoolName", "workerPoolValue"), - } -} - -// String returns a human-readable description of this Worker Pool ID -func (id WorkerPoolId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Hosting Environment Name: %q", id.HostingEnvironmentName), - fmt.Sprintf("Worker Pool Name: %q", id.WorkerPoolName), - } - return fmt.Sprintf("Worker Pool (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go deleted file mode 100644 index d15caa575953..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go +++ /dev/null @@ -1,143 +0,0 @@ -package appserviceenvironments - -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 = WorkerPoolInstanceId{} - -// WorkerPoolInstanceId is a struct representing the Resource ID for a Worker Pool Instance -type WorkerPoolInstanceId struct { - SubscriptionId string - ResourceGroupName string - HostingEnvironmentName string - WorkerPoolName string - InstanceName string -} - -// NewWorkerPoolInstanceID returns a new WorkerPoolInstanceId struct -func NewWorkerPoolInstanceID(subscriptionId string, resourceGroupName string, hostingEnvironmentName string, workerPoolName string, instanceName string) WorkerPoolInstanceId { - return WorkerPoolInstanceId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - HostingEnvironmentName: hostingEnvironmentName, - WorkerPoolName: workerPoolName, - InstanceName: instanceName, - } -} - -// ParseWorkerPoolInstanceID parses 'input' into a WorkerPoolInstanceId -func ParseWorkerPoolInstanceID(input string) (*WorkerPoolInstanceId, error) { - parser := resourceids.NewParserFromResourceIdType(WorkerPoolInstanceId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := WorkerPoolInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseWorkerPoolInstanceIDInsensitively parses 'input' case-insensitively into a WorkerPoolInstanceId -// note: this method should only be used for API response data and not user input -func ParseWorkerPoolInstanceIDInsensitively(input string) (*WorkerPoolInstanceId, error) { - parser := resourceids.NewParserFromResourceIdType(WorkerPoolInstanceId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := WorkerPoolInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *WorkerPoolInstanceId) 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.HostingEnvironmentName, ok = input.Parsed["hostingEnvironmentName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "hostingEnvironmentName", input) - } - - if id.WorkerPoolName, ok = input.Parsed["workerPoolName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "workerPoolName", input) - } - - if id.InstanceName, ok = input.Parsed["instanceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "instanceName", input) - } - - return nil -} - -// ValidateWorkerPoolInstanceID checks that 'input' can be parsed as a Worker Pool Instance ID -func ValidateWorkerPoolInstanceID(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 := ParseWorkerPoolInstanceID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Worker Pool Instance ID -func (id WorkerPoolInstanceId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Web/hostingEnvironments/%s/workerPools/%s/instances/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.HostingEnvironmentName, id.WorkerPoolName, id.InstanceName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Worker Pool Instance ID -func (id WorkerPoolInstanceId) 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("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), - resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), - resourceids.StaticSegment("staticWorkerPools", "workerPools", "workerPools"), - resourceids.UserSpecifiedSegment("workerPoolName", "workerPoolValue"), - resourceids.StaticSegment("staticInstances", "instances", "instances"), - resourceids.UserSpecifiedSegment("instanceName", "instanceValue"), - } -} - -// String returns a human-readable description of this Worker Pool Instance ID -func (id WorkerPoolInstanceId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Hosting Environment Name: %q", id.HostingEnvironmentName), - fmt.Sprintf("Worker Pool Name: %q", id.WorkerPoolName), - fmt.Sprintf("Instance Name: %q", id.InstanceName), - } - return fmt.Sprintf("Worker Pool Instance (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_approveorrejectprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_approveorrejectprivateendpointconnection.go deleted file mode 100644 index d7cab2b50908..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_approveorrejectprivateendpointconnection.go +++ /dev/null @@ -1,74 +0,0 @@ -package appserviceenvironments - -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 AppServiceEnvironmentsClient) ApproveOrRejectPrivateEndpointConnection(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId, input RemotePrivateEndpointConnectionARMResource) (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 AppServiceEnvironmentsClient) ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId, input RemotePrivateEndpointConnectionARMResource) 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/appserviceenvironments/method_changevnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go deleted file mode 100644 index d75f62e4169d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go +++ /dev/null @@ -1,89 +0,0 @@ -package appserviceenvironments - -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 ChangeVnetOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *[]Site -} - -type ChangeVnetCompleteResult struct { - Items []Site -} - -// ChangeVnet ... -func (c AppServiceEnvironmentsClient) ChangeVnet(ctx context.Context, id commonids.AppServiceEnvironmentId, input VirtualNetworkProfile) (result ChangeVnetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/changeVirtualNetwork", 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 - } - - var values struct { - Values *[]Site `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// ChangeVnetThenPoll performs ChangeVnet then polls until it's completed -func (c AppServiceEnvironmentsClient) ChangeVnetThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId, input VirtualNetworkProfile) error { - result, err := c.ChangeVnet(ctx, id, input) - if err != nil { - return fmt.Errorf("performing ChangeVnet: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after ChangeVnet: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdate.go deleted file mode 100644 index 3f89071e79bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdate.go +++ /dev/null @@ -1,76 +0,0 @@ -package appserviceenvironments - -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 AppServiceEnvironmentsClient) CreateOrUpdate(ctx context.Context, id commonids.AppServiceEnvironmentId, input AppServiceEnvironmentResource) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - 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 - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c AppServiceEnvironmentsClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId, input AppServiceEnvironmentResource) 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/appserviceenvironments/method_createorupdatemultirolepool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdatemultirolepool.go deleted file mode 100644 index 0e455ad8ceab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdatemultirolepool.go +++ /dev/null @@ -1,75 +0,0 @@ -package appserviceenvironments - -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 CreateOrUpdateMultiRolePoolOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// CreateOrUpdateMultiRolePool ... -func (c AppServiceEnvironmentsClient) CreateOrUpdateMultiRolePool(ctx context.Context, id commonids.AppServiceEnvironmentId, input WorkerPoolResource) (result CreateOrUpdateMultiRolePoolOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/multiRolePools/default", 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 -} - -// CreateOrUpdateMultiRolePoolThenPoll performs CreateOrUpdateMultiRolePool then polls until it's completed -func (c AppServiceEnvironmentsClient) CreateOrUpdateMultiRolePoolThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId, input WorkerPoolResource) error { - result, err := c.CreateOrUpdateMultiRolePool(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdateMultiRolePool: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdateMultiRolePool: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdateworkerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdateworkerpool.go deleted file mode 100644 index 19889645f530..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_createorupdateworkerpool.go +++ /dev/null @@ -1,74 +0,0 @@ -package appserviceenvironments - -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 CreateOrUpdateWorkerPoolOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// CreateOrUpdateWorkerPool ... -func (c AppServiceEnvironmentsClient) CreateOrUpdateWorkerPool(ctx context.Context, id WorkerPoolId, input WorkerPoolResource) (result CreateOrUpdateWorkerPoolOperationResponse, 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 -} - -// CreateOrUpdateWorkerPoolThenPoll performs CreateOrUpdateWorkerPool then polls until it's completed -func (c AppServiceEnvironmentsClient) CreateOrUpdateWorkerPoolThenPoll(ctx context.Context, id WorkerPoolId, input WorkerPoolResource) error { - result, err := c.CreateOrUpdateWorkerPool(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdateWorkerPool: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdateWorkerPool: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go deleted file mode 100644 index 67e550c19291..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go +++ /dev/null @@ -1,99 +0,0 @@ -package appserviceenvironments - -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 DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -type DeleteOperationOptions struct { - ForceDelete *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.ForceDelete != nil { - out.Append("forceDelete", fmt.Sprintf("%v", *o.ForceDelete)) - } - return &out -} - -// Delete ... -func (c AppServiceEnvironmentsClient) Delete(ctx context.Context, id commonids.AppServiceEnvironmentId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - }, - 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 - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c AppServiceEnvironmentsClient) DeleteThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId, options DeleteOperationOptions) error { - result, err := c.Delete(ctx, id, options) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go deleted file mode 100644 index 089f30b0b524..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go +++ /dev/null @@ -1,54 +0,0 @@ -package appserviceenvironments - -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 DeleteAseCustomDnsSuffixConfigurationOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *interface{} -} - -// DeleteAseCustomDnsSuffixConfiguration ... -func (c AppServiceEnvironmentsClient) DeleteAseCustomDnsSuffixConfiguration(ctx context.Context, id commonids.AppServiceEnvironmentId) (result DeleteAseCustomDnsSuffixConfigurationOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/configurations/customdnssuffix", 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/appserviceenvironments/method_deleteprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteprivateendpointconnection.go deleted file mode 100644 index 254bd4b07884..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteprivateendpointconnection.go +++ /dev/null @@ -1,71 +0,0 @@ -package appserviceenvironments - -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 AppServiceEnvironmentsClient) DeletePrivateEndpointConnection(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId) (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 AppServiceEnvironmentsClient) DeletePrivateEndpointConnectionThenPoll(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId) 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/appserviceenvironments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_get.go deleted file mode 100644 index 41f11fa71b7f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_get.go +++ /dev/null @@ -1,52 +0,0 @@ -package appserviceenvironments - -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 *AppServiceEnvironmentResource -} - -// Get ... -func (c AppServiceEnvironmentsClient) Get(ctx context.Context, id commonids.AppServiceEnvironmentId) (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/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go deleted file mode 100644 index e58f8f3a46cf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go +++ /dev/null @@ -1,53 +0,0 @@ -package appserviceenvironments - -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 GetAseCustomDnsSuffixConfigurationOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *CustomDnsSuffixConfiguration -} - -// GetAseCustomDnsSuffixConfiguration ... -func (c AppServiceEnvironmentsClient) GetAseCustomDnsSuffixConfiguration(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetAseCustomDnsSuffixConfigurationOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/configurations/customdnssuffix", 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/appserviceenvironments/method_getasev3networkingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasev3networkingconfiguration.go deleted file mode 100644 index 33ff156e7bdf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasev3networkingconfiguration.go +++ /dev/null @@ -1,53 +0,0 @@ -package appserviceenvironments - -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 GetAseV3NetworkingConfigurationOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *AseV3NetworkingConfiguration -} - -// GetAseV3NetworkingConfiguration ... -func (c AppServiceEnvironmentsClient) GetAseV3NetworkingConfiguration(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetAseV3NetworkingConfigurationOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/configurations/networking", 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/appserviceenvironments/method_getdiagnosticsitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getdiagnosticsitem.go deleted file mode 100644 index d47606f5edd0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getdiagnosticsitem.go +++ /dev/null @@ -1,51 +0,0 @@ -package appserviceenvironments - -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 GetDiagnosticsItemOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *HostingEnvironmentDiagnostics -} - -// GetDiagnosticsItem ... -func (c AppServiceEnvironmentsClient) GetDiagnosticsItem(ctx context.Context, id HostingEnvironmentDiagnosticId) (result GetDiagnosticsItemOperationResponse, 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/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go deleted file mode 100644 index c9d6e0fb97d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 GetInboundNetworkDependenciesEndpointsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]InboundEnvironmentEndpoint -} - -type GetInboundNetworkDependenciesEndpointsCompleteResult struct { - Items []InboundEnvironmentEndpoint -} - -// GetInboundNetworkDependenciesEndpoints ... -func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetInboundNetworkDependenciesEndpointsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/inboundNetworkDependenciesEndpoints", 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 *[]InboundEnvironmentEndpoint `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// GetInboundNetworkDependenciesEndpointsComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpointsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (GetInboundNetworkDependenciesEndpointsCompleteResult, error) { - return c.GetInboundNetworkDependenciesEndpointsCompleteMatchingPredicate(ctx, id, InboundEnvironmentEndpointOperationPredicate{}) -} - -// GetInboundNetworkDependenciesEndpointsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpointsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate InboundEnvironmentEndpointOperationPredicate) (result GetInboundNetworkDependenciesEndpointsCompleteResult, err error) { - items := make([]InboundEnvironmentEndpoint, 0) - - resp, err := c.GetInboundNetworkDependenciesEndpoints(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 = GetInboundNetworkDependenciesEndpointsCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go deleted file mode 100644 index d2fcfb6fd4aa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go +++ /dev/null @@ -1,53 +0,0 @@ -package appserviceenvironments - -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 GetMultiRolePoolOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *WorkerPoolResource -} - -// GetMultiRolePool ... -func (c AppServiceEnvironmentsClient) GetMultiRolePool(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetMultiRolePoolOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/multiRolePools/default", 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/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go deleted file mode 100644 index a3a688a58319..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 GetOutboundNetworkDependenciesEndpointsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]OutboundEnvironmentEndpoint -} - -type GetOutboundNetworkDependenciesEndpointsCompleteResult struct { - Items []OutboundEnvironmentEndpoint -} - -// GetOutboundNetworkDependenciesEndpoints ... -func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetOutboundNetworkDependenciesEndpointsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", 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 *[]OutboundEnvironmentEndpoint `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// GetOutboundNetworkDependenciesEndpointsComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpointsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (GetOutboundNetworkDependenciesEndpointsCompleteResult, error) { - return c.GetOutboundNetworkDependenciesEndpointsCompleteMatchingPredicate(ctx, id, OutboundEnvironmentEndpointOperationPredicate{}) -} - -// GetOutboundNetworkDependenciesEndpointsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpointsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate OutboundEnvironmentEndpointOperationPredicate) (result GetOutboundNetworkDependenciesEndpointsCompleteResult, err error) { - items := make([]OutboundEnvironmentEndpoint, 0) - - resp, err := c.GetOutboundNetworkDependenciesEndpoints(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 = GetOutboundNetworkDependenciesEndpointsCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go deleted file mode 100644 index c7245babf611..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go +++ /dev/null @@ -1,51 +0,0 @@ -package appserviceenvironments - -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 AppServiceEnvironmentsClient) GetPrivateEndpointConnection(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId) (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/appserviceenvironments/method_getprivateendpointconnectionlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnectionlist.go deleted file mode 100644 index d0934658d921..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnectionlist.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 AppServiceEnvironmentsClient) GetPrivateEndpointConnectionList(ctx context.Context, id commonids.AppServiceEnvironmentId) (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 AppServiceEnvironmentsClient) GetPrivateEndpointConnectionListComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (GetPrivateEndpointConnectionListCompleteResult, error) { - return c.GetPrivateEndpointConnectionListCompleteMatchingPredicate(ctx, id, RemotePrivateEndpointConnectionARMResourceOperationPredicate{}) -} - -// GetPrivateEndpointConnectionListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) GetPrivateEndpointConnectionListCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, 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/appserviceenvironments/method_getprivatelinkresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivatelinkresources.go deleted file mode 100644 index a1325a3ad3a0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivatelinkresources.go +++ /dev/null @@ -1,53 +0,0 @@ -package appserviceenvironments - -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 AppServiceEnvironmentsClient) GetPrivateLinkResources(ctx context.Context, id commonids.AppServiceEnvironmentId) (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/appserviceenvironments/method_getvipinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getvipinfo.go deleted file mode 100644 index b55b497bad15..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getvipinfo.go +++ /dev/null @@ -1,53 +0,0 @@ -package appserviceenvironments - -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 GetVipInfoOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *AddressResponse -} - -// GetVipInfo ... -func (c AppServiceEnvironmentsClient) GetVipInfo(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetVipInfoOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/capacities/virtualip", 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/appserviceenvironments/method_getworkerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getworkerpool.go deleted file mode 100644 index 416590b74f7c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getworkerpool.go +++ /dev/null @@ -1,51 +0,0 @@ -package appserviceenvironments - -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 GetWorkerPoolOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *WorkerPoolResource -} - -// GetWorkerPool ... -func (c AppServiceEnvironmentsClient) GetWorkerPool(ctx context.Context, id WorkerPoolId) (result GetWorkerPoolOperationResponse, 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/appserviceenvironments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_list.go deleted file mode 100644 index 455fe6fc0ae7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_list.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 *[]AppServiceEnvironmentResource -} - -type ListCompleteResult struct { - Items []AppServiceEnvironmentResource -} - -// List ... -func (c AppServiceEnvironmentsClient) 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/hostingEnvironments", 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 *[]AppServiceEnvironmentResource `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 AppServiceEnvironmentsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, AppServiceEnvironmentResourceOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AppServiceEnvironmentResourceOperationPredicate) (result ListCompleteResult, err error) { - items := make([]AppServiceEnvironmentResource, 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/appserviceenvironments/method_listappserviceplans.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listappserviceplans.go deleted file mode 100644 index 0072f2e901bb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listappserviceplans.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 ListAppServicePlansOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]AppServicePlan -} - -type ListAppServicePlansCompleteResult struct { - Items []AppServicePlan -} - -// ListAppServicePlans ... -func (c AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListAppServicePlansOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/serverFarms", 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 *[]AppServicePlan `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListAppServicePlansComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListAppServicePlansComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListAppServicePlansCompleteResult, error) { - return c.ListAppServicePlansCompleteMatchingPredicate(ctx, id, AppServicePlanOperationPredicate{}) -} - -// ListAppServicePlansCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListAppServicePlansCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate AppServicePlanOperationPredicate) (result ListAppServicePlansCompleteResult, err error) { - items := make([]AppServicePlan, 0) - - resp, err := c.ListAppServicePlans(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 = ListAppServicePlansCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go deleted file mode 100644 index db946a5ae307..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 *[]AppServiceEnvironmentResource -} - -type ListByResourceGroupCompleteResult struct { - Items []AppServiceEnvironmentResource -} - -// ListByResourceGroup ... -func (c AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (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/hostingEnvironments", 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 *[]AppServiceEnvironmentResource `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 AppServiceEnvironmentsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { - return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, AppServiceEnvironmentResourceOperationPredicate{}) -} - -// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AppServiceEnvironmentResourceOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { - items := make([]AppServiceEnvironmentResource, 0) - - resp, err := c.ListByResourceGroup(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 = ListByResourceGroupCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go deleted file mode 100644 index 13893db204e9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 ListCapacitiesOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]StampCapacity -} - -type ListCapacitiesCompleteResult struct { - Items []StampCapacity -} - -// ListCapacities ... -func (c AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListCapacitiesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/capacities/compute", 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 *[]StampCapacity `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListCapacitiesComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListCapacitiesComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListCapacitiesCompleteResult, error) { - return c.ListCapacitiesCompleteMatchingPredicate(ctx, id, StampCapacityOperationPredicate{}) -} - -// ListCapacitiesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListCapacitiesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate StampCapacityOperationPredicate) (result ListCapacitiesCompleteResult, err error) { - items := make([]StampCapacity, 0) - - resp, err := c.ListCapacities(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 = ListCapacitiesCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go deleted file mode 100644 index 8ffa5747d541..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go +++ /dev/null @@ -1,53 +0,0 @@ -package appserviceenvironments - -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 ListDiagnosticsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]HostingEnvironmentDiagnostics -} - -// ListDiagnostics ... -func (c AppServiceEnvironmentsClient) ListDiagnostics(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListDiagnosticsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/diagnostics", 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/appserviceenvironments/method_listmultirolemetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolemetricdefinitions.go deleted file mode 100644 index 86a7ffc2821d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolemetricdefinitions.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 ListMultiRoleMetricDefinitionsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ResourceMetricDefinition -} - -type ListMultiRoleMetricDefinitionsCompleteResult struct { - Items []ResourceMetricDefinition -} - -// ListMultiRoleMetricDefinitions ... -func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRoleMetricDefinitionsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/multiRolePools/default/metricdefinitions", 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 *[]ResourceMetricDefinition `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListMultiRoleMetricDefinitionsComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListMultiRoleMetricDefinitionsCompleteResult, error) { - return c.ListMultiRoleMetricDefinitionsCompleteMatchingPredicate(ctx, id, ResourceMetricDefinitionOperationPredicate{}) -} - -// ListMultiRoleMetricDefinitionsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate ResourceMetricDefinitionOperationPredicate) (result ListMultiRoleMetricDefinitionsCompleteResult, err error) { - items := make([]ResourceMetricDefinition, 0) - - resp, err := c.ListMultiRoleMetricDefinitions(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 = ListMultiRoleMetricDefinitionsCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go deleted file mode 100644 index 851b7a32afb2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go +++ /dev/null @@ -1,89 +0,0 @@ -package appserviceenvironments - -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 ListMultiRolePoolInstanceMetricDefinitionsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ResourceMetricDefinition -} - -type ListMultiRolePoolInstanceMetricDefinitionsCompleteResult struct { - Items []ResourceMetricDefinition -} - -// ListMultiRolePoolInstanceMetricDefinitions ... -func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitions(ctx context.Context, id DefaultInstanceId) (result ListMultiRolePoolInstanceMetricDefinitionsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metricdefinitions", 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 *[]ResourceMetricDefinition `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListMultiRolePoolInstanceMetricDefinitionsComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsComplete(ctx context.Context, id DefaultInstanceId) (ListMultiRolePoolInstanceMetricDefinitionsCompleteResult, error) { - return c.ListMultiRolePoolInstanceMetricDefinitionsCompleteMatchingPredicate(ctx, id, ResourceMetricDefinitionOperationPredicate{}) -} - -// ListMultiRolePoolInstanceMetricDefinitionsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsCompleteMatchingPredicate(ctx context.Context, id DefaultInstanceId, predicate ResourceMetricDefinitionOperationPredicate) (result ListMultiRolePoolInstanceMetricDefinitionsCompleteResult, err error) { - items := make([]ResourceMetricDefinition, 0) - - resp, err := c.ListMultiRolePoolInstanceMetricDefinitions(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 = ListMultiRolePoolInstanceMetricDefinitionsCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go deleted file mode 100644 index 24edd8729c40..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 ListMultiRolePoolsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]WorkerPoolResource -} - -type ListMultiRolePoolsCompleteResult struct { - Items []WorkerPoolResource -} - -// ListMultiRolePools ... -func (c AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRolePoolsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/multiRolePools", 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 *[]WorkerPoolResource `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListMultiRolePoolsComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListMultiRolePoolsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListMultiRolePoolsCompleteResult, error) { - return c.ListMultiRolePoolsCompleteMatchingPredicate(ctx, id, WorkerPoolResourceOperationPredicate{}) -} - -// ListMultiRolePoolsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListMultiRolePoolsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate WorkerPoolResourceOperationPredicate) (result ListMultiRolePoolsCompleteResult, err error) { - items := make([]WorkerPoolResource, 0) - - resp, err := c.ListMultiRolePools(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 = ListMultiRolePoolsCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go deleted file mode 100644 index 6829736889f8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 ListMultiRolePoolSkusOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]SkuInfo -} - -type ListMultiRolePoolSkusCompleteResult struct { - Items []SkuInfo -} - -// ListMultiRolePoolSkus ... -func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRolePoolSkusOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/multiRolePools/default/skus", 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 *[]SkuInfo `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListMultiRolePoolSkusComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkusComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListMultiRolePoolSkusCompleteResult, error) { - return c.ListMultiRolePoolSkusCompleteMatchingPredicate(ctx, id, SkuInfoOperationPredicate{}) -} - -// ListMultiRolePoolSkusCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkusCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate SkuInfoOperationPredicate) (result ListMultiRolePoolSkusCompleteResult, err error) { - items := make([]SkuInfo, 0) - - resp, err := c.ListMultiRolePoolSkus(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 = ListMultiRolePoolSkusCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go deleted file mode 100644 index 8437ab9d7910..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 ListMultiRoleUsagesOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]Usage -} - -type ListMultiRoleUsagesCompleteResult struct { - Items []Usage -} - -// ListMultiRoleUsages ... -func (c AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRoleUsagesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/multiRolePools/default/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 *[]Usage `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListMultiRoleUsagesComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListMultiRoleUsagesComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListMultiRoleUsagesCompleteResult, error) { - return c.ListMultiRoleUsagesCompleteMatchingPredicate(ctx, id, UsageOperationPredicate{}) -} - -// ListMultiRoleUsagesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListMultiRoleUsagesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate UsageOperationPredicate) (result ListMultiRoleUsagesCompleteResult, err error) { - items := make([]Usage, 0) - - resp, err := c.ListMultiRoleUsages(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 = ListMultiRoleUsagesCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go deleted file mode 100644 index e1f2a6bee78c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go +++ /dev/null @@ -1,53 +0,0 @@ -package appserviceenvironments - -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 ListOperationsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]Operation -} - -// ListOperations ... -func (c AppServiceEnvironmentsClient) ListOperations(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListOperationsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", 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/appserviceenvironments/method_listusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go deleted file mode 100644 index 98052555e4e7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go +++ /dev/null @@ -1,118 +0,0 @@ -package appserviceenvironments - -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 AppServiceEnvironmentsClient) ListUsages(ctx context.Context, id commonids.AppServiceEnvironmentId, 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 AppServiceEnvironmentsClient) ListUsagesComplete(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListUsagesOperationOptions) (ListUsagesCompleteResult, error) { - return c.ListUsagesCompleteMatchingPredicate(ctx, id, options, CsmUsageQuotaOperationPredicate{}) -} - -// ListUsagesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListUsagesCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, 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/appserviceenvironments/method_listwebapps.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go deleted file mode 100644 index c5474d9ba52a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go +++ /dev/null @@ -1,118 +0,0 @@ -package appserviceenvironments - -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 ListWebAppsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]Site -} - -type ListWebAppsCompleteResult struct { - Items []Site -} - -type ListWebAppsOperationOptions struct { - PropertiesToInclude *string -} - -func DefaultListWebAppsOperationOptions() ListWebAppsOperationOptions { - return ListWebAppsOperationOptions{} -} - -func (o ListWebAppsOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ListWebAppsOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - return &out -} - -func (o ListWebAppsOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.PropertiesToInclude != nil { - out.Append("propertiesToInclude", fmt.Sprintf("%v", *o.PropertiesToInclude)) - } - return &out -} - -// ListWebApps ... -func (c AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListWebAppsOperationOptions) (result ListWebAppsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/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 -} - -// ListWebAppsComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListWebAppsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListWebAppsOperationOptions) (ListWebAppsCompleteResult, error) { - return c.ListWebAppsCompleteMatchingPredicate(ctx, id, options, SiteOperationPredicate{}) -} - -// ListWebAppsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListWebAppsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListWebAppsOperationOptions, predicate SiteOperationPredicate) (result ListWebAppsCompleteResult, err error) { - items := make([]Site, 0) - - resp, err := c.ListWebApps(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 = ListWebAppsCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go deleted file mode 100644 index 01bae69bd4ca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go +++ /dev/null @@ -1,89 +0,0 @@ -package appserviceenvironments - -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 ListWebWorkerMetricDefinitionsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ResourceMetricDefinition -} - -type ListWebWorkerMetricDefinitionsCompleteResult struct { - Items []ResourceMetricDefinition -} - -// ListWebWorkerMetricDefinitions ... -func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx context.Context, id WorkerPoolId) (result ListWebWorkerMetricDefinitionsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metricdefinitions", 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 *[]ResourceMetricDefinition `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListWebWorkerMetricDefinitionsComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitionsComplete(ctx context.Context, id WorkerPoolId) (ListWebWorkerMetricDefinitionsCompleteResult, error) { - return c.ListWebWorkerMetricDefinitionsCompleteMatchingPredicate(ctx, id, ResourceMetricDefinitionOperationPredicate{}) -} - -// ListWebWorkerMetricDefinitionsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitionsCompleteMatchingPredicate(ctx context.Context, id WorkerPoolId, predicate ResourceMetricDefinitionOperationPredicate) (result ListWebWorkerMetricDefinitionsCompleteResult, err error) { - items := make([]ResourceMetricDefinition, 0) - - resp, err := c.ListWebWorkerMetricDefinitions(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 = ListWebWorkerMetricDefinitionsCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go deleted file mode 100644 index 44e24ee780f6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go +++ /dev/null @@ -1,89 +0,0 @@ -package appserviceenvironments - -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 ListWebWorkerUsagesOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]Usage -} - -type ListWebWorkerUsagesCompleteResult struct { - Items []Usage -} - -// ListWebWorkerUsages ... -func (c AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Context, id WorkerPoolId) (result ListWebWorkerUsagesOperationResponse, 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 *[]Usage `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListWebWorkerUsagesComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListWebWorkerUsagesComplete(ctx context.Context, id WorkerPoolId) (ListWebWorkerUsagesCompleteResult, error) { - return c.ListWebWorkerUsagesCompleteMatchingPredicate(ctx, id, UsageOperationPredicate{}) -} - -// ListWebWorkerUsagesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListWebWorkerUsagesCompleteMatchingPredicate(ctx context.Context, id WorkerPoolId, predicate UsageOperationPredicate) (result ListWebWorkerUsagesCompleteResult, err error) { - items := make([]Usage, 0) - - resp, err := c.ListWebWorkerUsages(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 = ListWebWorkerUsagesCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go deleted file mode 100644 index 38a66239fa86..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go +++ /dev/null @@ -1,89 +0,0 @@ -package appserviceenvironments - -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 ListWorkerPoolInstanceMetricDefinitionsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ResourceMetricDefinition -} - -type ListWorkerPoolInstanceMetricDefinitionsCompleteResult struct { - Items []ResourceMetricDefinition -} - -// ListWorkerPoolInstanceMetricDefinitions ... -func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitions(ctx context.Context, id WorkerPoolInstanceId) (result ListWorkerPoolInstanceMetricDefinitionsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metricdefinitions", 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 *[]ResourceMetricDefinition `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListWorkerPoolInstanceMetricDefinitionsComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitionsComplete(ctx context.Context, id WorkerPoolInstanceId) (ListWorkerPoolInstanceMetricDefinitionsCompleteResult, error) { - return c.ListWorkerPoolInstanceMetricDefinitionsCompleteMatchingPredicate(ctx, id, ResourceMetricDefinitionOperationPredicate{}) -} - -// ListWorkerPoolInstanceMetricDefinitionsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitionsCompleteMatchingPredicate(ctx context.Context, id WorkerPoolInstanceId, predicate ResourceMetricDefinitionOperationPredicate) (result ListWorkerPoolInstanceMetricDefinitionsCompleteResult, err error) { - items := make([]ResourceMetricDefinition, 0) - - resp, err := c.ListWorkerPoolInstanceMetricDefinitions(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 = ListWorkerPoolInstanceMetricDefinitionsCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go deleted file mode 100644 index 39832f50f748..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go +++ /dev/null @@ -1,90 +0,0 @@ -package appserviceenvironments - -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 ListWorkerPoolsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]WorkerPoolResource -} - -type ListWorkerPoolsCompleteResult struct { - Items []WorkerPoolResource -} - -// ListWorkerPools ... -func (c AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListWorkerPoolsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/workerPools", 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 *[]WorkerPoolResource `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListWorkerPoolsComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListWorkerPoolsComplete(ctx context.Context, id commonids.AppServiceEnvironmentId) (ListWorkerPoolsCompleteResult, error) { - return c.ListWorkerPoolsCompleteMatchingPredicate(ctx, id, WorkerPoolResourceOperationPredicate{}) -} - -// ListWorkerPoolsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListWorkerPoolsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceEnvironmentId, predicate WorkerPoolResourceOperationPredicate) (result ListWorkerPoolsCompleteResult, err error) { - items := make([]WorkerPoolResource, 0) - - resp, err := c.ListWorkerPools(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 = ListWorkerPoolsCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go deleted file mode 100644 index 78a45eabb80b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go +++ /dev/null @@ -1,89 +0,0 @@ -package appserviceenvironments - -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 ListWorkerPoolSkusOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]SkuInfo -} - -type ListWorkerPoolSkusCompleteResult struct { - Items []SkuInfo -} - -// ListWorkerPoolSkus ... -func (c AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Context, id WorkerPoolId) (result ListWorkerPoolSkusOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/skus", 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 *[]SkuInfo `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListWorkerPoolSkusComplete retrieves all the results into a single object -func (c AppServiceEnvironmentsClient) ListWorkerPoolSkusComplete(ctx context.Context, id WorkerPoolId) (ListWorkerPoolSkusCompleteResult, error) { - return c.ListWorkerPoolSkusCompleteMatchingPredicate(ctx, id, SkuInfoOperationPredicate{}) -} - -// ListWorkerPoolSkusCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppServiceEnvironmentsClient) ListWorkerPoolSkusCompleteMatchingPredicate(ctx context.Context, id WorkerPoolId, predicate SkuInfoOperationPredicate) (result ListWorkerPoolSkusCompleteResult, err error) { - items := make([]SkuInfo, 0) - - resp, err := c.ListWorkerPoolSkus(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 = ListWorkerPoolSkusCompleteResult{ - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_reboot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_reboot.go deleted file mode 100644 index da6ac7193658..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_reboot.go +++ /dev/null @@ -1,48 +0,0 @@ -package appserviceenvironments - -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 RebootOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData -} - -// Reboot ... -func (c AppServiceEnvironmentsClient) Reboot(ctx context.Context, id commonids.AppServiceEnvironmentId) (result RebootOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/reboot", 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/appserviceenvironments/method_resume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go deleted file mode 100644 index f3036cc72a4a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go +++ /dev/null @@ -1,85 +0,0 @@ -package appserviceenvironments - -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 ResumeOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *[]Site -} - -type ResumeCompleteResult struct { - Items []Site -} - -// Resume ... -func (c AppServiceEnvironmentsClient) Resume(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ResumeOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resume", 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 - } - - var values struct { - Values *[]Site `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// ResumeThenPoll performs Resume then polls until it's completed -func (c AppServiceEnvironmentsClient) ResumeThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId) error { - result, err := c.Resume(ctx, id) - if err != nil { - return fmt.Errorf("performing Resume: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Resume: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go deleted file mode 100644 index 7342eb3fac82..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go +++ /dev/null @@ -1,85 +0,0 @@ -package appserviceenvironments - -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 SuspendOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *[]Site -} - -type SuspendCompleteResult struct { - Items []Site -} - -// Suspend ... -func (c AppServiceEnvironmentsClient) Suspend(ctx context.Context, id commonids.AppServiceEnvironmentId) (result SuspendOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/suspend", 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 - } - - var values struct { - Values *[]Site `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// SuspendThenPoll performs Suspend then polls until it's completed -func (c AppServiceEnvironmentsClient) SuspendThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId) error { - result, err := c.Suspend(ctx, id) - if err != nil { - return fmt.Errorf("performing Suspend: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Suspend: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_testupgradeavailablenotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_testupgradeavailablenotification.go deleted file mode 100644 index 3c1081f9144f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_testupgradeavailablenotification.go +++ /dev/null @@ -1,48 +0,0 @@ -package appserviceenvironments - -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 TestUpgradeAvailableNotificationOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData -} - -// TestUpgradeAvailableNotification ... -func (c AppServiceEnvironmentsClient) TestUpgradeAvailableNotification(ctx context.Context, id commonids.AppServiceEnvironmentId) (result TestUpgradeAvailableNotificationOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/testUpgradeAvailableNotification", 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/appserviceenvironments/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_update.go deleted file mode 100644 index d767f3f1f1f7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_update.go +++ /dev/null @@ -1,58 +0,0 @@ -package appserviceenvironments - -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 *AppServiceEnvironmentResource -} - -// Update ... -func (c AppServiceEnvironmentsClient) Update(ctx context.Context, id commonids.AppServiceEnvironmentId, input AppServiceEnvironmentPatchResource) (result UpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusCreated, - 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/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go deleted file mode 100644 index c463438ab394..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go +++ /dev/null @@ -1,57 +0,0 @@ -package appserviceenvironments - -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 UpdateAseCustomDnsSuffixConfigurationOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *CustomDnsSuffixConfiguration -} - -// UpdateAseCustomDnsSuffixConfiguration ... -func (c AppServiceEnvironmentsClient) UpdateAseCustomDnsSuffixConfiguration(ctx context.Context, id commonids.AppServiceEnvironmentId, input CustomDnsSuffixConfiguration) (result UpdateAseCustomDnsSuffixConfigurationOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/configurations/customdnssuffix", 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/appserviceenvironments/method_updateasenetworkingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasenetworkingconfiguration.go deleted file mode 100644 index 5991278929da..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasenetworkingconfiguration.go +++ /dev/null @@ -1,57 +0,0 @@ -package appserviceenvironments - -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 UpdateAseNetworkingConfigurationOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *AseV3NetworkingConfiguration -} - -// UpdateAseNetworkingConfiguration ... -func (c AppServiceEnvironmentsClient) UpdateAseNetworkingConfiguration(ctx context.Context, id commonids.AppServiceEnvironmentId, input AseV3NetworkingConfiguration) (result UpdateAseNetworkingConfigurationOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/configurations/networking", 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/appserviceenvironments/method_updatemultirolepool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updatemultirolepool.go deleted file mode 100644 index 1ab7fd5fa20a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updatemultirolepool.go +++ /dev/null @@ -1,58 +0,0 @@ -package appserviceenvironments - -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 UpdateMultiRolePoolOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *WorkerPoolResource -} - -// UpdateMultiRolePool ... -func (c AppServiceEnvironmentsClient) UpdateMultiRolePool(ctx context.Context, id commonids.AppServiceEnvironmentId, input WorkerPoolResource) (result UpdateMultiRolePoolOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/multiRolePools/default", 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/appserviceenvironments/method_updateworkerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateworkerpool.go deleted file mode 100644 index 8b83019d6608..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateworkerpool.go +++ /dev/null @@ -1,56 +0,0 @@ -package appserviceenvironments - -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 UpdateWorkerPoolOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *WorkerPoolResource -} - -// UpdateWorkerPool ... -func (c AppServiceEnvironmentsClient) UpdateWorkerPool(ctx context.Context, id WorkerPoolId, input WorkerPoolResource) (result UpdateWorkerPoolOperationResponse, 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/appserviceenvironments/method_upgrade.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_upgrade.go deleted file mode 100644 index 36584682ac1c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_upgrade.go +++ /dev/null @@ -1,70 +0,0 @@ -package appserviceenvironments - -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 UpgradeOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Upgrade ... -func (c AppServiceEnvironmentsClient) Upgrade(ctx context.Context, id commonids.AppServiceEnvironmentId) (result UpgradeOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/upgrade", 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 -} - -// UpgradeThenPoll performs Upgrade then polls until it's completed -func (c AppServiceEnvironmentsClient) UpgradeThenPoll(ctx context.Context, id commonids.AppServiceEnvironmentId) error { - result, err := c.Upgrade(ctx, id) - if err != nil { - return fmt.Errorf("performing Upgrade: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Upgrade: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponse.go deleted file mode 100644 index 5949ada3aeb3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponse.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AddressResponse struct { - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Name *string `json:"name,omitempty"` - Properties *AddressResponseProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponseproperties.go deleted file mode 100644 index 22241e69975d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_addressresponseproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AddressResponseProperties struct { - InternalIPAddress *string `json:"internalIpAddress,omitempty"` - OutboundIPAddresses *[]string `json:"outboundIpAddresses,omitempty"` - ServiceIPAddress *string `json:"serviceIpAddress,omitempty"` - VipMappings *[]VirtualIPMapping `json:"vipMappings,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apidefinitioninfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apidefinitioninfo.go deleted file mode 100644 index b29b3fb28ec1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apidefinitioninfo.go +++ /dev/null @@ -1,8 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_apimanagementconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apimanagementconfig.go deleted file mode 100644 index eca6e5d45b95..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_apimanagementconfig.go +++ /dev/null @@ -1,8 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_appserviceenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironment.go deleted file mode 100644 index 7e868462756f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironment.go +++ /dev/null @@ -1,27 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_appserviceenvironmentpatchresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentpatchresource.go deleted file mode 100644 index 594e57510dd2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentpatchresource.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AppServiceEnvironmentPatchResource struct { - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Name *string `json:"name,omitempty"` - Properties *AppServiceEnvironment `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentresource.go deleted file mode 100644 index 31263ba6394f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceenvironmentresource.go +++ /dev/null @@ -1,14 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AppServiceEnvironmentResource struct { - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties *AppServiceEnvironment `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/appserviceenvironments/model_appserviceplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplan.go deleted file mode 100644 index 499328be2155..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplan.go +++ /dev/null @@ -1,16 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AppServicePlan struct { - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties *AppServicePlanProperties `json:"properties,omitempty"` - Sku *SkuDescription `json:"sku,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/appserviceenvironments/model_appserviceplanproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplanproperties.go deleted file mode 100644 index df541821251f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_appserviceplanproperties.go +++ /dev/null @@ -1,60 +0,0 @@ -package appserviceenvironments - -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 AppServicePlanProperties struct { - ElasticScaleEnabled *bool `json:"elasticScaleEnabled,omitempty"` - FreeOfferExpirationTime *string `json:"freeOfferExpirationTime,omitempty"` - GeoRegion *string `json:"geoRegion,omitempty"` - HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` - HyperV *bool `json:"hyperV,omitempty"` - IsSpot *bool `json:"isSpot,omitempty"` - IsXenon *bool `json:"isXenon,omitempty"` - KubeEnvironmentProfile *KubeEnvironmentProfile `json:"kubeEnvironmentProfile,omitempty"` - MaximumElasticWorkerCount *int64 `json:"maximumElasticWorkerCount,omitempty"` - MaximumNumberOfWorkers *int64 `json:"maximumNumberOfWorkers,omitempty"` - NumberOfSites *int64 `json:"numberOfSites,omitempty"` - NumberOfWorkers *int64 `json:"numberOfWorkers,omitempty"` - PerSiteScaling *bool `json:"perSiteScaling,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Reserved *bool `json:"reserved,omitempty"` - ResourceGroup *string `json:"resourceGroup,omitempty"` - SpotExpirationTime *string `json:"spotExpirationTime,omitempty"` - Status *StatusOptions `json:"status,omitempty"` - Subscription *string `json:"subscription,omitempty"` - TargetWorkerCount *int64 `json:"targetWorkerCount,omitempty"` - TargetWorkerSizeId *int64 `json:"targetWorkerSizeId,omitempty"` - WorkerTierName *string `json:"workerTierName,omitempty"` - ZoneRedundant *bool `json:"zoneRedundant,omitempty"` -} - -func (o *AppServicePlanProperties) GetFreeOfferExpirationTimeAsTime() (*time.Time, error) { - if o.FreeOfferExpirationTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.FreeOfferExpirationTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *AppServicePlanProperties) SetFreeOfferExpirationTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.FreeOfferExpirationTime = &formatted -} - -func (o *AppServicePlanProperties) GetSpotExpirationTimeAsTime() (*time.Time, error) { - if o.SpotExpirationTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.SpotExpirationTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *AppServicePlanProperties) SetSpotExpirationTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.SpotExpirationTime = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_armidwrapper.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_armidwrapper.go deleted file mode 100644 index 23291cc16243..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_armidwrapper.go +++ /dev/null @@ -1,8 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_asev3networkingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfiguration.go deleted file mode 100644 index dd9c6b64a48e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_asev3networkingconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfigurationproperties.go deleted file mode 100644 index 82c8e80d94e9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_asev3networkingconfigurationproperties.go +++ /dev/null @@ -1,15 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_autohealactions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealactions.go deleted file mode 100644 index a53db3433d9e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealactions.go +++ /dev/null @@ -1,10 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_autohealcustomaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealcustomaction.go deleted file mode 100644 index b4979e90b7a0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealcustomaction.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_autohealrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealrules.go deleted file mode 100644 index cd835879fe28..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealrules.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_autohealtriggers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealtriggers.go deleted file mode 100644 index 2d6842a3f7d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_autohealtriggers.go +++ /dev/null @@ -1,13 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_azurestorageinfovalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_azurestorageinfovalue.go deleted file mode 100644 index 1105cf8b708d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_azurestorageinfovalue.go +++ /dev/null @@ -1,13 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_capability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_capability.go deleted file mode 100644 index 6b07c220befc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_capability.go +++ /dev/null @@ -1,10 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_cloninginfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_cloninginfo.go deleted file mode 100644 index f9505ee3c376..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_cloninginfo.go +++ /dev/null @@ -1,18 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_connstringinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_connstringinfo.go deleted file mode 100644 index a4172f898728..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_connstringinfo.go +++ /dev/null @@ -1,10 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_corssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_corssettings.go deleted file mode 100644 index 24390a287264..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_corssettings.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_csmusagequota.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_csmusagequota.go deleted file mode 100644 index 0ba4a1dd059f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_csmusagequota.go +++ /dev/null @@ -1,30 +0,0 @@ -package appserviceenvironments - -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/appserviceenvironments/model_customdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfiguration.go deleted file mode 100644 index ed5fdcd1b9a5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_customdnssuffixconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfigurationproperties.go deleted file mode 100644 index 80ac53f7a527..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_customdnssuffixconfigurationproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_daprconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_daprconfig.go deleted file mode 100644 index 9268fd62dc0d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_daprconfig.go +++ /dev/null @@ -1,14 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_endpointdependency.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdependency.go deleted file mode 100644 index 9840103ce20a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdependency.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EndpointDependency struct { - DomainName *string `json:"domainName,omitempty"` - EndpointDetails *[]EndpointDetail `json:"endpointDetails,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdetail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdetail.go deleted file mode 100644 index d738ebeb2601..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_endpointdetail.go +++ /dev/null @@ -1,11 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EndpointDetail struct { - IPAddress *string `json:"ipAddress,omitempty"` - IsAccessible *bool `json:"isAccessible,omitempty"` - Latency *float64 `json:"latency,omitempty"` - Port *int64 `json:"port,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_errorentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_errorentity.go deleted file mode 100644 index 8125008a5d2e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_errorentity.go +++ /dev/null @@ -1,15 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_experiments.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_experiments.go deleted file mode 100644 index 9bd9653d59fe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_experiments.go +++ /dev/null @@ -1,8 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_extendedlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_extendedlocation.go deleted file mode 100644 index b24df8493f98..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_extendedlocation.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_handlermapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_handlermapping.go deleted file mode 100644 index add89600372d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_handlermapping.go +++ /dev/null @@ -1,10 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_hostingenvironmentdiagnostics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentdiagnostics.go deleted file mode 100644 index 1d298e705f6a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentdiagnostics.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HostingEnvironmentDiagnostics struct { - DiagnosticsOutput *string `json:"diagnosticsOutput,omitempty"` - Name *string `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentprofile.go deleted file mode 100644 index e67fbad99e56..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostingenvironmentprofile.go +++ /dev/null @@ -1,10 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_hostnamesslstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostnamesslstate.go deleted file mode 100644 index b60ed2b41ef3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_hostnamesslstate.go +++ /dev/null @@ -1,13 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_inboundenvironmentendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_inboundenvironmentendpoint.go deleted file mode 100644 index 83dea79b75b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_inboundenvironmentendpoint.go +++ /dev/null @@ -1,10 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundEnvironmentEndpoint struct { - Description *string `json:"description,omitempty"` - Endpoints *[]string `json:"endpoints,omitempty"` - Ports *[]string `json:"ports,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_ipsecurityrestriction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_ipsecurityrestriction.go deleted file mode 100644 index cce3b7521d2b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_ipsecurityrestriction.go +++ /dev/null @@ -1,18 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_kubeenvironmentprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_kubeenvironmentprofile.go deleted file mode 100644 index 1ad013915faa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_kubeenvironmentprofile.go +++ /dev/null @@ -1,10 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type KubeEnvironmentProfile 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/appserviceenvironments/model_localizablestring.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_localizablestring.go deleted file mode 100644 index 5974acdfb1a2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_localizablestring.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_namevaluepair.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_namevaluepair.go deleted file mode 100644 index ac9cb553c367..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_namevaluepair.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_operation.go deleted file mode 100644 index e226cf16987e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_operation.go +++ /dev/null @@ -1,57 +0,0 @@ -package appserviceenvironments - -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/appserviceenvironments/model_outboundenvironmentendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_outboundenvironmentendpoint.go deleted file mode 100644 index 04928bef582d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_outboundenvironmentendpoint.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type OutboundEnvironmentEndpoint struct { - Category *string `json:"category,omitempty"` - Endpoints *[]EndpointDependency `json:"endpoints,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkconnectionstate.go deleted file mode 100644 index 86ca1b14e249..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkconnectionstate.go +++ /dev/null @@ -1,10 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_privatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresource.go deleted file mode 100644 index 1b58321d272e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresource.go +++ /dev/null @@ -1,11 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_privatelinkresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceproperties.go deleted file mode 100644 index ecd58509b6fa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_privatelinkresourceswrapper.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceswrapper.go deleted file mode 100644 index 40cc8c0e8b11..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_privatelinkresourceswrapper.go +++ /dev/null @@ -1,8 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_pushsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettings.go deleted file mode 100644 index addca78ae4d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettings.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_pushsettingsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettingsproperties.go deleted file mode 100644 index 6c80542248af..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_pushsettingsproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_rampuprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_rampuprule.go deleted file mode 100644 index ace74b58d889..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_rampuprule.go +++ /dev/null @@ -1,15 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_remoteprivateendpointconnectionarmresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresource.go deleted file mode 100644 index 314760728b69..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresource.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_remoteprivateendpointconnectionarmresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresourceproperties.go deleted file mode 100644 index a96786cf3860..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_remoteprivateendpointconnectionarmresourceproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_requestsbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_requestsbasedtrigger.go deleted file mode 100644 index 57351c326128..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_requestsbasedtrigger.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_resourceconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourceconfig.go deleted file mode 100644 index d6f6c721d3c8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourceconfig.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_resourcemetricavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricavailability.go deleted file mode 100644 index 2688445beaa2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricavailability.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceMetricAvailability struct { - Retention *string `json:"retention,omitempty"` - TimeGrain *string `json:"timeGrain,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinition.go deleted file mode 100644 index 8645bb913f39..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinition.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceMetricDefinition struct { - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ResourceMetricDefinitionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinitionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinitionproperties.go deleted file mode 100644 index d1d6856879a4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_resourcemetricdefinitionproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceMetricDefinitionProperties struct { - MetricAvailabilities *[]ResourceMetricAvailability `json:"metricAvailabilities,omitempty"` - PrimaryAggregationType *string `json:"primaryAggregationType,omitempty"` - Properties *map[string]string `json:"properties,omitempty"` - ResourceUri *string `json:"resourceUri,omitempty"` - Unit *string `json:"unit,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_site.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_site.go deleted file mode 100644 index a09cdcffac45..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_site.go +++ /dev/null @@ -1,20 +0,0 @@ -package appserviceenvironments - -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/appserviceenvironments/model_siteconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteconfig.go deleted file mode 100644 index df4daa18008b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteconfig.go +++ /dev/null @@ -1,97 +0,0 @@ -package appserviceenvironments - -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/appserviceenvironments/model_sitelimits.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitelimits.go deleted file mode 100644 index b3130e580f6e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitelimits.go +++ /dev/null @@ -1,10 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_sitemachinekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitemachinekey.go deleted file mode 100644 index 267ce523b14a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_sitemachinekey.go +++ /dev/null @@ -1,11 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_siteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteproperties.go deleted file mode 100644 index 37d0c491c743..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_siteproperties.go +++ /dev/null @@ -1,86 +0,0 @@ -package appserviceenvironments - -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/appserviceenvironments/model_skucapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skucapacity.go deleted file mode 100644 index 2e04c5df9780..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skucapacity.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_skudescription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skudescription.go deleted file mode 100644 index 47f1a308d34f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skudescription.go +++ /dev/null @@ -1,15 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SkuDescription struct { - Capabilities *[]Capability `json:"capabilities,omitempty"` - Capacity *int64 `json:"capacity,omitempty"` - Family *string `json:"family,omitempty"` - Locations *[]string `json:"locations,omitempty"` - Name *string `json:"name,omitempty"` - Size *string `json:"size,omitempty"` - SkuCapacity *SkuCapacity `json:"skuCapacity,omitempty"` - Tier *string `json:"tier,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skuinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skuinfo.go deleted file mode 100644 index 9faba036b8a5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_skuinfo.go +++ /dev/null @@ -1,10 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SkuInfo struct { - Capacity *SkuCapacity `json:"capacity,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Sku *SkuDescription `json:"sku,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slotswapstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slotswapstatus.go deleted file mode 100644 index ae1901b782ca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slotswapstatus.go +++ /dev/null @@ -1,28 +0,0 @@ -package appserviceenvironments - -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/appserviceenvironments/model_slowrequestsbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slowrequestsbasedtrigger.go deleted file mode 100644 index ef74f6f556b5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_slowrequestsbasedtrigger.go +++ /dev/null @@ -1,11 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_stampcapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_stampcapacity.go deleted file mode 100644 index 138ebe09348a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_stampcapacity.go +++ /dev/null @@ -1,18 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StampCapacity struct { - AvailableCapacity *int64 `json:"availableCapacity,omitempty"` - ComputeMode *ComputeModeOptions `json:"computeMode,omitempty"` - ExcludeFromCapacityAllocation *bool `json:"excludeFromCapacityAllocation,omitempty"` - IsApplicableForAllComputeModes *bool `json:"isApplicableForAllComputeModes,omitempty"` - IsLinux *bool `json:"isLinux,omitempty"` - Name *string `json:"name,omitempty"` - SiteMode *string `json:"siteMode,omitempty"` - TotalCapacity *int64 `json:"totalCapacity,omitempty"` - Unit *string `json:"unit,omitempty"` - WorkerSize *WorkerSizeOptions `json:"workerSize,omitempty"` - WorkerSizeId *int64 `json:"workerSizeId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesbasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesbasedtrigger.go deleted file mode 100644 index 633cfec8a5ef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesbasedtrigger.go +++ /dev/null @@ -1,13 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_statuscodesrangebasedtrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesrangebasedtrigger.go deleted file mode 100644 index ccbeced17afb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_statuscodesrangebasedtrigger.go +++ /dev/null @@ -1,11 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_usage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usage.go deleted file mode 100644 index 7e9e07f45029..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usage.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Usage struct { - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Name *string `json:"name,omitempty"` - Properties *UsageProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usageproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usageproperties.go deleted file mode 100644 index 8b0f3272bdfa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_usageproperties.go +++ /dev/null @@ -1,33 +0,0 @@ -package appserviceenvironments - -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 UsageProperties struct { - ComputeMode *ComputeModeOptions `json:"computeMode,omitempty"` - CurrentValue *int64 `json:"currentValue,omitempty"` - DisplayName *string `json:"displayName,omitempty"` - Limit *int64 `json:"limit,omitempty"` - NextResetTime *string `json:"nextResetTime,omitempty"` - ResourceName *string `json:"resourceName,omitempty"` - SiteMode *string `json:"siteMode,omitempty"` - Unit *string `json:"unit,omitempty"` -} - -func (o *UsageProperties) GetNextResetTimeAsTime() (*time.Time, error) { - if o.NextResetTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.NextResetTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *UsageProperties) 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/appserviceenvironments/model_virtualapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualapplication.go deleted file mode 100644 index bdac22a3474a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualapplication.go +++ /dev/null @@ -1,11 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_virtualdirectory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualdirectory.go deleted file mode 100644 index f4c38830a4cf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualdirectory.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_virtualipmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualipmapping.go deleted file mode 100644 index dc88e33ecbab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualipmapping.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualIPMapping struct { - InUse *bool `json:"inUse,omitempty"` - InternalHTTPPort *int64 `json:"internalHttpPort,omitempty"` - InternalHTTPSPort *int64 `json:"internalHttpsPort,omitempty"` - ServiceName *string `json:"serviceName,omitempty"` - VirtualIP *string `json:"virtualIP,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualnetworkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualnetworkprofile.go deleted file mode 100644 index d01868e107bb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_virtualnetworkprofile.go +++ /dev/null @@ -1,11 +0,0 @@ -package appserviceenvironments - -// 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/appserviceenvironments/model_workerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpool.go deleted file mode 100644 index fbb7707c4371..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpool.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type WorkerPool struct { - ComputeMode *ComputeModeOptions `json:"computeMode,omitempty"` - InstanceNames *[]string `json:"instanceNames,omitempty"` - WorkerCount *int64 `json:"workerCount,omitempty"` - WorkerSize *string `json:"workerSize,omitempty"` - WorkerSizeId *int64 `json:"workerSizeId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpoolresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpoolresource.go deleted file mode 100644 index 6a4150ac46da..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_workerpoolresource.go +++ /dev/null @@ -1,13 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type WorkerPoolResource struct { - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Name *string `json:"name,omitempty"` - Properties *WorkerPool `json:"properties,omitempty"` - Sku *SkuDescription `json:"sku,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go deleted file mode 100644 index 96a5324bde97..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go +++ /dev/null @@ -1,335 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AppServiceEnvironmentResourceOperationPredicate struct { - Id *string - Kind *string - Location *string - Name *string - Type *string -} - -func (p AppServiceEnvironmentResourceOperationPredicate) Matches(input AppServiceEnvironmentResource) 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 AppServicePlanOperationPredicate struct { - Id *string - Kind *string - Location *string - Name *string - Type *string -} - -func (p AppServicePlanOperationPredicate) Matches(input AppServicePlan) 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 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 InboundEnvironmentEndpointOperationPredicate struct { - Description *string -} - -func (p InboundEnvironmentEndpointOperationPredicate) Matches(input InboundEnvironmentEndpoint) bool { - - if p.Description != nil && (input.Description == nil || *p.Description != *input.Description) { - return false - } - - return true -} - -type OutboundEnvironmentEndpointOperationPredicate struct { - Category *string -} - -func (p OutboundEnvironmentEndpointOperationPredicate) Matches(input OutboundEnvironmentEndpoint) bool { - - if p.Category != nil && (input.Category == nil || *p.Category != *input.Category) { - 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 ResourceMetricDefinitionOperationPredicate struct { - Id *string - Kind *string - Name *string - Type *string -} - -func (p ResourceMetricDefinitionOperationPredicate) Matches(input ResourceMetricDefinition) 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 SkuInfoOperationPredicate struct { - ResourceType *string -} - -func (p SkuInfoOperationPredicate) Matches(input SkuInfo) bool { - - if p.ResourceType != nil && (input.ResourceType == nil || *p.ResourceType != *input.ResourceType) { - return false - } - - return true -} - -type StampCapacityOperationPredicate struct { - AvailableCapacity *int64 - ExcludeFromCapacityAllocation *bool - IsApplicableForAllComputeModes *bool - IsLinux *bool - Name *string - SiteMode *string - TotalCapacity *int64 - Unit *string - WorkerSizeId *int64 -} - -func (p StampCapacityOperationPredicate) Matches(input StampCapacity) bool { - - if p.AvailableCapacity != nil && (input.AvailableCapacity == nil || *p.AvailableCapacity != *input.AvailableCapacity) { - return false - } - - if p.ExcludeFromCapacityAllocation != nil && (input.ExcludeFromCapacityAllocation == nil || *p.ExcludeFromCapacityAllocation != *input.ExcludeFromCapacityAllocation) { - return false - } - - if p.IsApplicableForAllComputeModes != nil && (input.IsApplicableForAllComputeModes == nil || *p.IsApplicableForAllComputeModes != *input.IsApplicableForAllComputeModes) { - return false - } - - if p.IsLinux != nil && (input.IsLinux == nil || *p.IsLinux != *input.IsLinux) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.SiteMode != nil && (input.SiteMode == nil || *p.SiteMode != *input.SiteMode) { - return false - } - - if p.TotalCapacity != nil && (input.TotalCapacity == nil || *p.TotalCapacity != *input.TotalCapacity) { - return false - } - - if p.Unit != nil && (input.Unit == nil || *p.Unit != *input.Unit) { - return false - } - - if p.WorkerSizeId != nil && (input.WorkerSizeId == nil || *p.WorkerSizeId != *input.WorkerSizeId) { - return false - } - - return true -} - -type UsageOperationPredicate struct { - Id *string - Kind *string - Name *string - Type *string -} - -func (p UsageOperationPredicate) Matches(input Usage) 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 WorkerPoolResourceOperationPredicate struct { - Id *string - Kind *string - Name *string - Type *string -} - -func (p WorkerPoolResourceOperationPredicate) Matches(input WorkerPoolResource) 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/appserviceenvironments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/version.go deleted file mode 100644 index be106e9b08a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/version.go +++ /dev/null @@ -1,12 +0,0 @@ -package appserviceenvironments - -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/appserviceenvironments/%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 deleted file mode 100644 index 7de90f20ca47..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/README.md +++ /dev/null @@ -1,6912 +0,0 @@ - -## `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.RemotePrivateEndpointConnectionARMResource{ - // ... -} - - -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.RemotePrivateEndpointConnectionARMResource{ - // ... -} - - -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 deleted file mode 100644 index 5b73caa6cf95..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/client.go +++ /dev/null @@ -1,26 +0,0 @@ -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 deleted file mode 100644 index ca3a1c859d09..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/constants.go +++ /dev/null @@ -1,2496 +0,0 @@ -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 deleted file mode 100644 index 8bbf3e816c3e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_appsetting.go +++ /dev/null @@ -1,136 +0,0 @@ -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 deleted file mode 100644 index 5eb75e41c8a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_backup.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 2464de4561fb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceappsetting.go +++ /dev/null @@ -1,145 +0,0 @@ -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 deleted file mode 100644 index 1b238cdc1a50..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_configreferenceconnectionstring.go +++ /dev/null @@ -1,145 +0,0 @@ -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 deleted file mode 100644 index 0026da1c832a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_connectionstring.go +++ /dev/null @@ -1,136 +0,0 @@ -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 deleted file mode 100644 index db74d01b1ae1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_continuouswebjob.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 2504429e1f3b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_default.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index b04a811e64df..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_deployment.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 4cb36ffe991d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_domainownershipidentifier.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 50ec22415e9e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_function.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 8bde4cda1478..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_functionkey.go +++ /dev/null @@ -1,152 +0,0 @@ -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 deleted file mode 100644 index 89657833244b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_gateway.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 1c0ca4de4d61..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_history.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 8786787ad054..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostdefault.go +++ /dev/null @@ -1,152 +0,0 @@ -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 deleted file mode 100644 index 445cdd8c1f4f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hostnamebinding.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 05a52ef303ca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_hybridconnection.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index b71b552f4a3b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instance.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index d63ca842bbe6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocess.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index f05e0fc2d205..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_instanceprocessmodule.go +++ /dev/null @@ -1,152 +0,0 @@ -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 deleted file mode 100644 index c24d2c752743..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_key.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 4992de297558..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_module.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 39aca6abdad4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networkfeature.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 2649b121ba4a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_networktrace.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 2d423b516ecd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_premieraddon.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 3295084d8a68..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_privateendpointconnection.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 8bad3c8ed487..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_process.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index b4c90cb7011c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_processmodule.go +++ /dev/null @@ -1,152 +0,0 @@ -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 deleted file mode 100644 index 5af96c29d89f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_publiccertificate.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index b7ef581f1587..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_relay.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 24bc8cfac4ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteextension.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 5e6ddf37b2f3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_sitenetworktrace.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 5c23156040b1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_siteslotnetworktrace.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index e15a92882f12..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slot.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 196d2ef77990..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotbackup.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index fdacebe446ad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotcontinuouswebjob.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 1c06c19237bb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdeployment.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index a204baad7348..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotdomainownershipidentifier.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 47101ae28cb8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotfunction.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 9b914c92db9a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothostnamebinding.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 6d48ba38f6c3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnection.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 3822d459f6a5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slothybridconnectionnamespacerelay.go +++ /dev/null @@ -1,152 +0,0 @@ -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 deleted file mode 100644 index 009666c7f05f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstance.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 796e2dc30aa9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocess.go +++ /dev/null @@ -1,152 +0,0 @@ -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 deleted file mode 100644 index 423930cd9de7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotinstanceprocessmodule.go +++ /dev/null @@ -1,161 +0,0 @@ -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 deleted file mode 100644 index 37161d178ca4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworkfeature.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 66c083ff8e85..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotnetworktrace.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index e83e02065eb3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpremieraddon.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 3c2041e97906..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprivateendpointconnection.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 1bacecea3c5c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotprocess.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 5dc24ba58ca9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotpubliccertificate.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 794884bacc83..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotsiteextension.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 6f7295755e66..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slottriggeredwebjob.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 76bafab7b898..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnection.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index 6ce53651da12..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotvirtualnetworkconnectiongateway.go +++ /dev/null @@ -1,152 +0,0 @@ -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 deleted file mode 100644 index eb825ed34743..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotwebjob.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index c143535e7c4a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_slotworkflow.go +++ /dev/null @@ -1,143 +0,0 @@ -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 deleted file mode 100644 index c7b5a80078ce..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_snapshot.go +++ /dev/null @@ -1,136 +0,0 @@ -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 deleted file mode 100644 index 8e62aa483da7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjob.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index cb4ec930b86b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_triggeredwebjobhistory.go +++ /dev/null @@ -1,152 +0,0 @@ -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 deleted file mode 100644 index b6deb7ee4c8b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_virtualnetworkconnection.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 700fb470cddf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_webjob.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 0f21c69e8095..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_websnapshot.go +++ /dev/null @@ -1,145 +0,0 @@ -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 deleted file mode 100644 index ed14199a96cf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/id_workflow.go +++ /dev/null @@ -1,134 +0,0 @@ -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 deleted file mode 100644 index 174dcc8e0bc4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddon.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index c99ceffc6b0e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_addpremieraddonslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 90adfdd91792..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostname.go +++ /dev/null @@ -1,81 +0,0 @@ -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 deleted file mode 100644 index 72cc649bc9b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostnameslot.go +++ /dev/null @@ -1,80 +0,0 @@ -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 deleted file mode 100644 index 8a4030be7ce5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigtoproduction.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index a17a32e4ddbb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_applyslotconfigurationslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 18b221248ba0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnection.go +++ /dev/null @@ -1,74 +0,0 @@ -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 RemotePrivateEndpointConnectionARMResource) (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 RemotePrivateEndpointConnectionARMResource) 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 deleted file mode 100644 index f38c744a90f9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_approveorrejectprivateendpointconnectionslot.go +++ /dev/null @@ -1,74 +0,0 @@ -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 RemotePrivateEndpointConnectionARMResource) (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 RemotePrivateEndpointConnectionARMResource) 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 deleted file mode 100644 index 448eff5d555d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backup.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 159cbf8625b7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_backupslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index b3e13b790925..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeployment.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 55d9a8beaad0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createdeploymentslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index c65bae71dba6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createfunction.go +++ /dev/null @@ -1,73 +0,0 @@ -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 deleted file mode 100644 index 03ac6a0c191f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancefunctionslot.go +++ /dev/null @@ -1,73 +0,0 @@ -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 deleted file mode 100644 index 2ad3b905886f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperation.go +++ /dev/null @@ -1,73 +0,0 @@ -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 deleted file mode 100644 index ab4317726c87..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createinstancemsdeployoperationslot.go +++ /dev/null @@ -1,73 +0,0 @@ -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 deleted file mode 100644 index ff6f642bb418..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperation.go +++ /dev/null @@ -1,74 +0,0 @@ -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 deleted file mode 100644 index aa7ee03fc6ce..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createmsdeployoperationslot.go +++ /dev/null @@ -1,73 +0,0 @@ -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 deleted file mode 100644 index a53675c71684..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createonedeployoperation.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index e4ec4f65f7ea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -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 deleted file mode 100644 index cd306bf1dfee..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfiguration.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index de45a5ee5b41..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateconfigurationslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 46d24f030bc3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifier.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 12edd068565c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatedomainownershipidentifierslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index d4b2261db686..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecret.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 1b37b8d8d644..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatefunctionsecretslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 1aacdcd12afd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebinding.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index e0946400f6e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostnamebindingslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 0cc1170257be..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecret.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 41f17b921353..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehostsecretslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index ae0b8a3b680a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnection.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index ad01c24736ac..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatehybridconnectionslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 582dc285d35c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificate.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index e5061b8ceb32..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatepubliccertificateslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 0c3c76be64df..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnection.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 2c842ac9f46b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdaterelayserviceconnectionslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 9d70a15080b4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateslot.go +++ /dev/null @@ -1,74 +0,0 @@ -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 deleted file mode 100644 index 4f4b1d3dc897..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrol.go +++ /dev/null @@ -1,76 +0,0 @@ -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 deleted file mode 100644 index 72f3ff034317..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatesourcecontrolslot.go +++ /dev/null @@ -1,75 +0,0 @@ -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 deleted file mode 100644 index 75f2dc055fcd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheck.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index ec1faccc5afc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheckslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 58504031857b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnection.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 9512a888a224..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongateway.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 8c0bc2c332b8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectiongatewayslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index ead3176d7e46..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_createorupdatevnetconnectionslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index e9d88eba269a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_delete.go +++ /dev/null @@ -1,81 +0,0 @@ -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 deleted file mode 100644 index b2335e64953e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackup.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index fe9d53c8236a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfiguration.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index e417eec9042b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupconfigurationslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 42f5d96f9bb7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletebackupslot.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 291bdb8bdb20..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjob.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 08d6fbcf7ce7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletecontinuouswebjobslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 602496fecbe9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeployment.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index dcc3d21bbd1c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedeploymentslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index c170a9280d7c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifier.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 28567f8ab9eb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletedomainownershipidentifierslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 63c737693ddf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunction.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 279dac44b092..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecret.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 048a73220397..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletefunctionsecretslot.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index f41070632fbc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebinding.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index f780f65c7977..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostnamebindingslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index f7140877326f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecret.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 7b2feaf96f19..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehostsecretslot.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 4c59c6746f29..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnection.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index e5cd0c8f8ef1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletehybridconnectionslot.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index b69048fa6829..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstancefunctionslot.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 1f48c5d2ee78..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocess.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 4a86b938433b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteinstanceprocessslot.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index add6d111d1d0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddon.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index e2e6333e3c47..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepremieraddonslot.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index e8cf908da964..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnection.go +++ /dev/null @@ -1,71 +0,0 @@ -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 deleted file mode 100644 index b4a1bb85bffa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprivateendpointconnectionslot.go +++ /dev/null @@ -1,71 +0,0 @@ -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 deleted file mode 100644 index e925942300cc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocess.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index da7cb778e032..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteprocessslot.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 8b04d3228012..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificate.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 98fca6889bf4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletepubliccertificateslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index be9ded1355d9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnection.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 42eccd7e9f59..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleterelayserviceconnectionslot.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 525f7419d0d6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextension.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index cad4ab2271eb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesiteextensionslot.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index b134af545339..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteslot.go +++ /dev/null @@ -1,80 +0,0 @@ -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 deleted file mode 100644 index 1de5d801f354..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrol.go +++ /dev/null @@ -1,77 +0,0 @@ -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 deleted file mode 100644 index 58843d09923c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrolslot.go +++ /dev/null @@ -1,76 +0,0 @@ -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 deleted file mode 100644 index 5f7c911990a5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetwork.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index a63702c17c32..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deleteswiftvirtualnetworkslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index c09a8a7cdcfb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjob.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index c9aa75af711c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletetriggeredwebjobslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 09e001b1b8a9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnection.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index eb208686b5d1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deletevnetconnectionslot.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 8b6316e6292d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifacts.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 86a6bd816b52..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_deployworkflowartifactsslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index c723907265d6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackup.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index fb9a84a38403..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_discoverbackupslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 6e02a601437c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpassword.go +++ /dev/null @@ -1,49 +0,0 @@ -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 deleted file mode 100644 index 71e052a00e28..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_generatenewsitepublishingpasswordslot.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index df93a411977d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_get.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 9c8b391822ae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreference.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index a295c8e5618e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingkeyvaultreferenceslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 040601edb6ad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferences.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 69d0464fb677..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferencesslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 4f56580c1016..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettings.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index a4159e682331..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 66723074eb0c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 77c1b5989949..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2slot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index ec73d11df661..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecrets.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index d25bd3b85a8c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getauthsettingsv2withoutsecretsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index dab5ba05ad00..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfiguration.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index b894b74e2772..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupconfigurationslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 5b5c6aaf52fe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatus.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index d9dfd0990c2a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getbackupstatusslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 3718e56bc0e1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfiguration.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index e1f78cd22ede..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 153a687b47b8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 8bfee345cdf2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getconfigurationsnapshotslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 72363f7bcd0b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszip.go +++ /dev/null @@ -1,54 +0,0 @@ -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 deleted file mode 100644 index e37a23f5a0d4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontainerlogszipslot.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 689a23640dd2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjob.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 9ff3daa6b82a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getcontinuouswebjobslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index af3f9b28ab38..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeployment.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index e5c50649121b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdeploymentslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 4d2b9c303b8f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfiguration.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 43bc4437d07d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdiagnosticlogsconfigurationslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 4ffdcba29f22..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifier.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index e318d77d5bd2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getdomainownershipidentifierslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index ffb8687f37cb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowed.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 2cb45b119cd8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getftpallowedslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index dfe1a05a6f75..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunction.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 314fcea678f6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintoken.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 9758651d39bb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getfunctionsadmintokenslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index f46073ec1aef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebinding.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index cdc963771bb2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethostnamebindingslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 180c6dee6084..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnection.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 0894625605f9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gethybridconnectionslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index f1c3ade523a5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancefunctionslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 01a8d7927983..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfo.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index bda3adf217af..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceinfoslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index c20ff74158a8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylog.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index c02ed8857aaf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploylogslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 4a4c612787d2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatus.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 831d0e7882ef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstancemsdeploystatusslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 27db08566ae9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocess.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 2f09e475cc72..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdump.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 24babf623169..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessdumpslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index edb35420652e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmodule.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 66e40013d381..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessmoduleslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 37dcd0fc8e75..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceprocessslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index c56222187d8c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getinstanceworkflowslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 68893ef8c7fd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatus.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 661b521af2fb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmigratemysqlstatusslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index f722e01759c7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylog.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index b4c4a781c7cb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploylogslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 138dddff1496..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatus.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 94c13ed6939a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getmsdeploystatusslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 91d7b006f6e2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktraces.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 5434d922e0f0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 489f3f057aa8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesslotv2.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 35c2ef296ca2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getnetworktracesv2.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 38b0d0c64e66..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getonedeploystatus.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 38da877d62ae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddon.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 568145718e44..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpremieraddonslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 0afe7f2d822a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccess.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 9a70253ed5ad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateaccessslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 7fe64778518f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnection.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 38e626132cf6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlist.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 049d5da58183..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlistslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 40220f9ba49c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index fb7a39e47cdc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresources.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 88aa1084bc69..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprivatelinkresourcesslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index b5d39499e755..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocess.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 839803ad80a7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdump.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index b7ba804dcf55..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessdumpslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 53e7351f69f4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmodule.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 7b965fe28330..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessmoduleslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 369c7c6edb17..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getprocessslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index b54d7ad16c2d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificate.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index cf977aa29174..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getpubliccertificateslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 0d5370af1c0c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnection.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index faabaf9cd5a9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getrelayserviceconnectionslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index b999b7f016b3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowed.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index e36bd8067b40..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getscmallowedslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 45710285e48c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreference.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 3da43e22c8c5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 25d3a0c53418..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferenceslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index b7b27fc9ea5f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 225599a736e6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextension.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 060ff58bfcce..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsiteextensionslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index c6271191fbc1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflag.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index af029128ab68..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsitephperrorlogflagslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index cc95655b6aee..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 5ac83bdb4884..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrol.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 5f7f7c48dacf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getsourcecontrolslot.go +++ /dev/null @@ -1,54 +0,0 @@ -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 deleted file mode 100644 index 4f8b7edbc51e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnection.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 3a8d941ad761..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getswiftvirtualnetworkconnectionslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 6fcdfb7618e1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjob.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 177b1e4ec935..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistory.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 9f88e758a886..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobhistoryslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index a2523c9bb285..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_gettriggeredwebjobslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index fc7f76069886..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnection.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 3a283b652e3e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongateway.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 72ef01abb3cc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectiongatewayslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index f464ac63ba15..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getvnetconnectionslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 9f432287d8c4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjob.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index fd0aefc9422b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebjobslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 94e3643b1ad8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogs.go +++ /dev/null @@ -1,54 +0,0 @@ -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 deleted file mode 100644 index 7af454ecb145..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getwebsitecontainerlogsslot.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 2e3c62728696..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_getworkflow.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 1d6419401a9e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextension.go +++ /dev/null @@ -1,70 +0,0 @@ -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 deleted file mode 100644 index 0228dab78a9d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_installsiteextensionslot.go +++ /dev/null @@ -1,70 +0,0 @@ -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 deleted file mode 100644 index 1374f90285c1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneable.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 78e92a0ac144..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_iscloneableslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 9ac184df7700..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_list.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index b4e76bbdbcfa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettings.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 338e9ccc0d93..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listapplicationsettingsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 4bd33c8ce530..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccounts.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 4ecf7961083b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listazurestorageaccountsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 436b4a69e9f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackups.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 36a5c67b8adc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index bbf777a24a7b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecrets.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index de568d0d4ffc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbackupstatussecretsslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index b8d7a169161e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspolicies.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 833026d1e986..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index ac4371c47ed6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listbyresourcegroup.go +++ /dev/null @@ -1,118 +0,0 @@ -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 deleted file mode 100644 index 904fc5956213..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurations.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 6990a4e0c5c2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfo.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index f948da0d876b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfoslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 6faf4ff6f2e3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconfigurationsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 5906ad54b6bf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstrings.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 08f99a158ea2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listconnectionstringsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 2fa9b62fafd7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobs.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 263e29ec8098..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index e877017a6c7d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlog.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 2287707ac1a9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentlogslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index e7f0d5aa41f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeployments.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 8cf28787ff50..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdeploymentsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 6ad4d006fd6d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiers.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 3491074fc111..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiersslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 395e6b0a2074..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeys.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 2d689c0501fb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionkeysslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index d9b7567f3932..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctions.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 74d7d1eebaa4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecrets.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 799bd85aaf7b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listfunctionsecretsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 8a90d8f60ffa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeys.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 31689093e0a7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostkeysslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index b95ad58eb60f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindings.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index cc97481351ee..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhostnamebindingsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 70e3b037ca43..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnections.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 5a0f662812ed..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listhybridconnectionsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 4118f6db05de..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstancefunctionsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 7d9ca9497d77..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiers.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index b3fd3111feba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiersslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 7c5ece0b6ac2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocesses.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 1ce81cb87d9d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessesslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 5b50ea9d272a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodules.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index bfd5654bd093..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodulesslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index a8f44c4071d1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreads.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index aa8206c7377a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreadsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 094c7dee519a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listinstanceworkflowsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 9f90cd03625d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadata.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 6ed534f9039f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listmetadataslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index d797a79d052d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeatures.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index 6c8fc82175a9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listnetworkfeaturesslot.go +++ /dev/null @@ -1,51 +0,0 @@ -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 deleted file mode 100644 index f659bfe08d9a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncounters.go +++ /dev/null @@ -1,118 +0,0 @@ -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 deleted file mode 100644 index 3bbf64e55ded..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listperfmoncountersslot.go +++ /dev/null @@ -1,117 +0,0 @@ -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 deleted file mode 100644 index 69a977607f4d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddons.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index a756510e9a4b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpremieraddonsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index ddadd45d201b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocesses.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 80c1db39fee9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessesslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 870017ce0e20..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodules.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 3c26de4588ea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessmodulesslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 7ae8faf573b5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreads.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index ad39ffa41a2c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listprocessthreadsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 5b0a99d32ab0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listproductionsitedeploymentstatuses.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 58d9bf5539c0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificates.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 83a5bfaa2605..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpubliccertificatesslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 917c7f39e380..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentials.go +++ /dev/null @@ -1,70 +0,0 @@ -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 deleted file mode 100644 index ef1bf8750f32..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingcredentialsslot.go +++ /dev/null @@ -1,69 +0,0 @@ -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 deleted file mode 100644 index 80e7c0fa08ae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecrets.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 205ec292e347..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listpublishingprofilexmlwithsecretsslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 0b881fd88481..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnections.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 444965eadaba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listrelayserviceconnectionsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 2e5b61acb2e1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 7b14ebb2c2bb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 9b41c17107bb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensions.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 235f0fdd169f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsiteextensionsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 2c87c0093f1a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettings.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index b37bc686cc76..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitepushsettingsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 3b8482aaddf8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotconfigurationnames.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index c05406ca850a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 3c2d59847f7b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 6f3dc06d8528..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslots.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 3d8696ed2418..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotsitedeploymentstatusesslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 4c11fcc94985..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshots.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index ba132a14fcc7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondary.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 4b518eb4bed0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondaryslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 6523467e0e4d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsnapshotsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 5a65012a492f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggers.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index c2121f067116..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncfunctiontriggersslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index bc0ee3e79f0a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatus.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index bf199ced94d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsyncstatusslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 038c446f19af..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistory.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index 64b640690c0b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistoryslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index fa072db87fb3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobs.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 46247c121fe7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index fd8b75eb1611..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusages.go +++ /dev/null @@ -1,118 +0,0 @@ -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 deleted file mode 100644 index 1e3c39a02b0a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listusagesslot.go +++ /dev/null @@ -1,117 +0,0 @@ -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 deleted file mode 100644 index 3bf64dbebab3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnections.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 8f90439dc8a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listvnetconnectionsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index 62a582df0464..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobs.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index c27173918faf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listwebjobsslot.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index cb480aed1e0f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflows.go +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index 54c3a55462ae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnections.go +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index b7af1e131328..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listworkflowsconnectionsslot.go +++ /dev/null @@ -1,52 +0,0 @@ -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 deleted file mode 100644 index c9cb368de778..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratemysql.go +++ /dev/null @@ -1,74 +0,0 @@ -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 deleted file mode 100644 index 15328e5cc094..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_migratestorage.go +++ /dev/null @@ -1,102 +0,0 @@ -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 deleted file mode 100644 index a6c1f66c92ea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnet.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 10235a4985b2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_putprivateaccessvnetslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 9bd00ef6a3f6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index c2218167e74d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_recoversiteconfigurationsnapshotslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index d3e1980493ad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetproductionslotconfig.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index 15aae4006538..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_resetslotconfigurationslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index fbc0d6837cb4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restart.go +++ /dev/null @@ -1,80 +0,0 @@ -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 deleted file mode 100644 index 2ed5d2e9efa0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restartslot.go +++ /dev/null @@ -1,79 +0,0 @@ -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 deleted file mode 100644 index 021d7f79a352..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restore.go +++ /dev/null @@ -1,74 +0,0 @@ -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 deleted file mode 100644 index 0483caf9f9c8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblob.go +++ /dev/null @@ -1,75 +0,0 @@ -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 deleted file mode 100644 index 27fd565b8afe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefrombackupblobslot.go +++ /dev/null @@ -1,74 +0,0 @@ -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 deleted file mode 100644 index 1b8a16b10b56..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedapp.go +++ /dev/null @@ -1,75 +0,0 @@ -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 deleted file mode 100644 index 6fd61e73c372..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restorefromdeletedappslot.go +++ /dev/null @@ -1,74 +0,0 @@ -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 deleted file mode 100644 index 0e401f516af7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoreslot.go +++ /dev/null @@ -1,74 +0,0 @@ -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 deleted file mode 100644 index 191a16d685de..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshot.go +++ /dev/null @@ -1,75 +0,0 @@ -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 deleted file mode 100644 index 95c72292ac18..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_restoresnapshotslot.go +++ /dev/null @@ -1,74 +0,0 @@ -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 deleted file mode 100644 index 368004f11bb6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjob.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 20589d753fc1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_runtriggeredwebjobslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 6eeb4574e82e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_start.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index e3a68b92d356..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjob.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 25b7624a51ef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startcontinuouswebjobslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 3ff7b83c6ad9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktrace.go +++ /dev/null @@ -1,107 +0,0 @@ -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 deleted file mode 100644 index 9362fa11abcb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startnetworktraceslot.go +++ /dev/null @@ -1,106 +0,0 @@ -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 deleted file mode 100644 index e1ef6c58413c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 63f538d66870..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktrace.go +++ /dev/null @@ -1,89 +0,0 @@ -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 deleted file mode 100644 index a6edf7415e6b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperation.go +++ /dev/null @@ -1,107 +0,0 @@ -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 deleted file mode 100644 index 9003bbd7dbed..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperationslot.go +++ /dev/null @@ -1,106 +0,0 @@ -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 deleted file mode 100644 index d6a5fe5d83e2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceslot.go +++ /dev/null @@ -1,88 +0,0 @@ -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 deleted file mode 100644 index 7f3caf53d9d4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stop.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index 66fcde1e73b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjob.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 6195a3125e24..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopcontinuouswebjobslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 098cdf976714..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktrace.go +++ /dev/null @@ -1,49 +0,0 @@ -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 deleted file mode 100644 index 08644e40fc9b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopnetworktraceslot.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index cd89d662a267..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 7c3fcd820e84..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktrace.go +++ /dev/null @@ -1,49 +0,0 @@ -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 deleted file mode 100644 index 4ac3a77814ae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_stopwebsitenetworktraceslot.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index 4adb4148b949..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotslot.go +++ /dev/null @@ -1,74 +0,0 @@ -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 deleted file mode 100644 index 924b47593e5f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_swapslotwithproduction.go +++ /dev/null @@ -1,75 +0,0 @@ -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 deleted file mode 100644 index f9e53a89d27c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctions.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index 377735978141..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctionsslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index 1370fe7c5d30..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggers.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index f3cef3f11df0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncfunctiontriggersslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index d798d4f57932..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepository.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index 81b7009d872c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_syncrepositoryslot.go +++ /dev/null @@ -1,47 +0,0 @@ -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 deleted file mode 100644 index dbd659443763..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_update.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index f787059e781e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettings.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index fd7f249814dc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateapplicationsettingsslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index d00c1951ba74..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettings.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 1b452b2e16a0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 9135f356ffaa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 57b1357b3c85..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateauthsettingsv2slot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index c8f27c11a89a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccounts.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 7b43cc9b6add..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateazurestorageaccountsslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 360306e8aaea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfiguration.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 23456c068a98..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatebackupconfigurationslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 3071581ada94..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfiguration.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 21670c018bac..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconfigurationslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 41e237b65cd8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstrings.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 083ad0d90f45..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateconnectionstringsslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index de51165f8ba6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfig.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 8835f4cbfdf4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatediagnosticlogsconfigslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 8a8ff3962201..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifier.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index abd337f6a0f8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatedomainownershipidentifierslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index dc7a94fe3f98..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowed.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 6af7f1c916e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateftpallowedslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 25dacc285c2b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnection.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index c6f394e1e565..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatehybridconnectionslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index dd14d214331f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadata.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 37e85c6dac9c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatemetadataslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index cc7cd5e6cae2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddon.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index bd191cfc48ea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatepremieraddonslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index b9428363eb7a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnection.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 342f82cc8247..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updaterelayserviceconnectionslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index f51bc4ec02f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowed.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 5b49435a6503..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatescmallowedslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 281722bf2a87..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettings.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 51f072f1e16e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesitepushsettingsslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 886619914655..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 5ca0ca0d0739..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateslotconfigurationnames.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index b83d1b887f2f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrol.go +++ /dev/null @@ -1,59 +0,0 @@ -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 deleted file mode 100644 index bf6c8d203f26..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatesourcecontrolslot.go +++ /dev/null @@ -1,58 +0,0 @@ -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 deleted file mode 100644 index 1aa5550a65f0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheck.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 4d01cdcecebc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheckslot.go +++ /dev/null @@ -1,56 +0,0 @@ -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 deleted file mode 100644 index 24214b278448..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnection.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index e6f300d55177..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongateway.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 1f6c4787a311..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectiongatewayslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 94364d465412..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_updatevnetconnectionslot.go +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index da259d9fd385..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedaudiencesvalidation.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 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 deleted file mode 100644 index b17b5652dd2c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_allowedprincipals.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 152027e15e2e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apidefinitioninfo.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 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 deleted file mode 100644 index 62f12266d3ba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreference.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 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 deleted file mode 100644 index 58a0f5398cc7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apikvreferenceproperties.go +++ /dev/null @@ -1,20 +0,0 @@ -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 deleted file mode 100644 index 9acd3c842789..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apimanagementconfig.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 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 deleted file mode 100644 index 69e9769061ba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_apple.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 304a6b2b50fb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appleregistration.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 9734bceb1942..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_applicationlogsconfig.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 658b68d4c6e5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_appregistration.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index f73fbd64bb24..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_armidwrapper.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 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 deleted file mode 100644 index c1222a45d4e6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_authplatform.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index c33d955c76ea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealactions.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 49bfb9eb35b6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealcustomaction.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index b96bc1ad965b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealrules.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 932862aab964..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_autohealtriggers.go +++ /dev/null @@ -1,13 +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 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 deleted file mode 100644 index cda4c5114d27..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectory.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 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 deleted file mode 100644 index 590062cd0e1d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectorylogin.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 8cb7ab16efb9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryregistration.go +++ /dev/null @@ -1,13 +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 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 deleted file mode 100644 index bd699d34a124..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureactivedirectoryvalidation.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index d17b5f8ddb12..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstorageapplicationlogsconfig.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 4bafbbd06e5f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azureblobstoragehttplogsconfig.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 16d67230d5f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebapps.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index bd78e405cfe2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestaticwebappsregistration.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 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 deleted file mode 100644 index 6c3036bc8129..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestorageinfovalue.go +++ /dev/null @@ -1,13 +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 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 deleted file mode 100644 index 6c7675fec3f8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azurestoragepropertydictionaryresource.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 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 deleted file mode 100644 index 6a87bfc0dc90..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_azuretablestorageapplicationlogsconfig.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 7bf578be3a9c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitem.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 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 deleted file mode 100644 index 577e4eb1a23c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitemproperties.go +++ /dev/null @@ -1,63 +0,0 @@ -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 deleted file mode 100644 index 5247f8695cca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequest.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 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 deleted file mode 100644 index 8a3f52e475f9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backuprequestproperties.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 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 deleted file mode 100644 index 8fb777f2e014..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupschedule.go +++ /dev/null @@ -1,43 +0,0 @@ -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 deleted file mode 100644 index 002a55f2dadb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_blobstoragetokenstore.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 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 deleted file mode 100644 index a0983671ae08..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_clientregistration.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 0934bb9feccd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cloninginfo.go +++ /dev/null @@ -1,18 +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 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 deleted file mode 100644 index ce8d8b95927d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connectionstringdictionary.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 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 deleted file mode 100644 index a41ade2e9db0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringinfo.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index a80c0c6b95e8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_connstringvaluetypepair.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index dd2b39645678..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpustatistics.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index c7c0de7ff153..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containercpuusage.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index e69d7c9d60a5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerinfo.go +++ /dev/null @@ -1,45 +0,0 @@ -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 deleted file mode 100644 index 766817d234f4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containermemorystatistics.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 70eed77205c6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containernetworkinterfacestatistics.go +++ /dev/null @@ -1,15 +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 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 deleted file mode 100644 index 9a8399671cba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_containerthrottlingdata.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 960c0b21c35c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjob.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 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 deleted file mode 100644 index ae1f697a8921..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_continuouswebjobproperties.go +++ /dev/null @@ -1,17 +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 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 deleted file mode 100644 index 1acd40bff426..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_cookieexpiration.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 58894d63e239..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_corssettings.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 011d7f38b970..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatus.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 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 deleted file mode 100644 index 08a6ae20c118..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmdeploymentstatusproperties.go +++ /dev/null @@ -1,14 +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 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 deleted file mode 100644 index dcdf32e913e6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentity.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 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 deleted file mode 100644 index bc91e5c0882f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingcredentialspoliciesentityproperties.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 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 deleted file mode 100644 index acf650553718..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmpublishingprofileoptions.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 086fe3ab931f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmslotentity.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 7fad4d7865d9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_csmusagequota.go +++ /dev/null @@ -1,30 +0,0 @@ -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 deleted file mode 100644 index 965958b5906b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresult.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 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 deleted file mode 100644 index e8641765248e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customhostnameanalysisresultproperties.go +++ /dev/null @@ -1,18 +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 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 deleted file mode 100644 index 6131cc54b0f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_customopenidconnectprovider.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 4405627b6438..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_daprconfig.go +++ /dev/null @@ -1,14 +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 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 deleted file mode 100644 index 57baff31aa09..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_databasebackupsetting.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 7cc4f0cf7239..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_defaultauthorizationpolicy.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 9ef816504155..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequest.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 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 deleted file mode 100644 index 48010e62a87d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deletedapprestorerequestproperties.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 764e2891dd48..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deployment.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 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 deleted file mode 100644 index 62df75e64946..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_deploymentproperties.go +++ /dev/null @@ -1,46 +0,0 @@ -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 deleted file mode 100644 index 740c6a6f7503..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_enabledconfig.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 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 deleted file mode 100644 index 3d84f5ece58b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_errorentity.go +++ /dev/null @@ -1,15 +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 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 deleted file mode 100644 index 9e8a3418c841..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_experiments.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 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 deleted file mode 100644 index 3f619b04f383..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_extendedlocation.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 834ae9712432..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_facebook.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 89cb89d942ba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemapplicationlogsconfig.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 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 deleted file mode 100644 index f69fa8fecca7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemhttplogsconfig.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 123a111d50bb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_filesystemtokenstore.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 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 deleted file mode 100644 index 897a226b7066..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_forwardproxy.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index d690c668b8a1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelope.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 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 deleted file mode 100644 index b32434f7616c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionenvelopeproperties.go +++ /dev/null @@ -1,20 +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 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 deleted file mode 100644 index daa46718fb3a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_functionsecrets.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 0baa912b7f4c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_github.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 96e13fda5178..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncodeconfiguration.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 3e0089953d84..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactionconfiguration.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 0eb95a29ffb0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_githubactioncontainerconfiguration.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index e3f6446954e9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_globalvalidation.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 739f5aba70ba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_google.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index b5593f88002f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_handlermapping.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index e75ca71ee327..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostingenvironmentprofile.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index af8cb6859792..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostkeys.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 4759b208afae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebinding.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 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 deleted file mode 100644 index 89d397ba5fa1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamebindingproperties.go +++ /dev/null @@ -1,16 +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 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 deleted file mode 100644 index a330c5447ea4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hostnamesslstate.go +++ /dev/null @@ -1,13 +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 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 deleted file mode 100644 index 006cccdc08fb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httplogsconfig.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 50a72c92e613..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettings.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index deb06f514340..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_httpsettingsroutes.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 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 deleted file mode 100644 index 57e4841bb229..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnection.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 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 deleted file mode 100644 index 82c9d19bbb9c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_hybridconnectionproperties.go +++ /dev/null @@ -1,15 +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 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 deleted file mode 100644 index 134faaa6890b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifier.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 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 deleted file mode 100644 index 3826ff38a2ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identifierproperties.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 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 deleted file mode 100644 index 383fb8243f3d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_identityproviders.go +++ /dev/null @@ -1,16 +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 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 deleted file mode 100644 index 2d96d9b6520c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_ipsecurityrestriction.go +++ /dev/null @@ -1,18 +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 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 deleted file mode 100644 index be04286a8e96..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_jwtclaimchecks.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 5463d9e53cec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_keyinfo.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 77b7761115ca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_legacymicrosoftaccount.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 1fac79f7d9ff..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_localizablestring.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index a8fee3b25d90..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_login.go +++ /dev/null @@ -1,13 +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 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 deleted file mode 100644 index 8009af99b437..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginroutes.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 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 deleted file mode 100644 index 4b1160d55620..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_loginscopes.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 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 deleted file mode 100644 index 7661e8391ae9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequest.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 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 deleted file mode 100644 index 0a9492d11bb3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlrequestproperties.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 93e2c1806cd2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatus.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 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 deleted file mode 100644 index bb707fc1768b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_migratemysqlstatusproperties.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 27ad333e0e5c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploy.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 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 deleted file mode 100644 index e87d9f960ad5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploycore.go +++ /dev/null @@ -1,14 +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 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 deleted file mode 100644 index 344db502e399..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylog.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 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 deleted file mode 100644 index b300f240305c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogentry.go +++ /dev/null @@ -1,28 +0,0 @@ -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 deleted file mode 100644 index 4d30fd74a576..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploylogproperties.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 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 deleted file mode 100644 index 2fdb5e36d605..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeployproperties.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 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 deleted file mode 100644 index 9f782217369f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatus.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 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 deleted file mode 100644 index 739caae3f327..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_msdeploystatusproperties.go +++ /dev/null @@ -1,42 +0,0 @@ -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 deleted file mode 100644 index db12fa3a3132..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_namevaluepair.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 34cbbf7f121f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeatures.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 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 deleted file mode 100644 index a51a02604881..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networkfeaturesproperties.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 4c22aec67e90..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_networktrace.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index ae90e0008f5b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_nonce.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 11d3fe518863..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectclientcredential.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index c76119be6431..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectconfig.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 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 deleted file mode 100644 index e8a1c2ae8ed3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectlogin.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index faf47478e0ce..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_openidconnectregistration.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 19973cf19536..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_operation.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 9b5ecb7207b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonresponse.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index d431429707be..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonsample.go +++ /dev/null @@ -1,28 +0,0 @@ -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 deleted file mode 100644 index 3c4b44ec6473..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_perfmonset.go +++ /dev/null @@ -1,42 +0,0 @@ -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 deleted file mode 100644 index 7d64dfe405d8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddon.go +++ /dev/null @@ -1,14 +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 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 deleted file mode 100644 index 6d715b148dbd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresource.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 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 deleted file mode 100644 index 6a330db952e8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonpatchresourceproperties.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 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 deleted file mode 100644 index 1a0c2eeb3eba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_premieraddonproperties.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 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 deleted file mode 100644 index 57bb75c3f6a6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccess.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 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 deleted file mode 100644 index 654c66fb229a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessproperties.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index c0308f0a6b1c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccesssubnet.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 1aa31d5386cd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privateaccessvirtualnetwork.go +++ /dev/null @@ -1,11 +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 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_privatelinkconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionstate.go deleted file mode 100644 index 0cb41b46defb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkconnectionstate.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 8ad526f8d22d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresource.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 681e7763d0bf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceproperties.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 44ee0fa08c8f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_privatelinkresourceswrapper.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 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 deleted file mode 100644 index fc0db143ae2f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfo.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 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 deleted file mode 100644 index 705da9f398d8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processinfoproperties.go +++ /dev/null @@ -1,73 +0,0 @@ -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 deleted file mode 100644 index 9f12d6c8babc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfo.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 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 deleted file mode 100644 index 170aa09c2218..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processmoduleinfoproperties.go +++ /dev/null @@ -1,18 +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 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 deleted file mode 100644 index f11e4d7370ce..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfo.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 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 deleted file mode 100644 index e115c1477b67..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_processthreadinfoproperties.go +++ /dev/null @@ -1,37 +0,0 @@ -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 deleted file mode 100644 index 41d2238cf357..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificate.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 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 deleted file mode 100644 index 291d9a59a0fb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_publiccertificateproperties.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index c233a60ea497..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettings.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 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 deleted file mode 100644 index bdf39a78d986..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_pushsettingsproperties.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index a99e19c50855..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_rampuprule.go +++ /dev/null @@ -1,15 +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 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 deleted file mode 100644 index a2bfbf4739ea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentity.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 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 deleted file mode 100644 index 608b034c0dfd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_relayserviceconnectionentityproperties.go +++ /dev/null @@ -1,14 +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 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 deleted file mode 100644 index 2657ec831612..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresource.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 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 deleted file mode 100644 index 82a747ca53b9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_remoteprivateendpointconnectionarmresourceproperties.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index f8d9ec672d0c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_requestsbasedtrigger.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 14a70233fe95..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_resourceconfig.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index c56dde6c7853..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequest.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 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 deleted file mode 100644 index d352f67f61b3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_restorerequestproperties.go +++ /dev/null @@ -1,18 +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 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 deleted file mode 100644 index 48c368249466..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_site.go +++ /dev/null @@ -1,20 +0,0 @@ -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 deleted file mode 100644 index b1a8431fdccf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettings.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 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 deleted file mode 100644 index 46d05a778816..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsproperties.go +++ /dev/null @@ -1,45 +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 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 deleted file mode 100644 index ee79ab128482..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2.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 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 deleted file mode 100644 index 9fe4cea05651..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteauthsettingsv2properties.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 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 deleted file mode 100644 index ff7a00792474..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneability.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 89a4c57de837..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitecloneabilitycriterion.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index faaa3834f5e4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfig.go +++ /dev/null @@ -1,97 +0,0 @@ -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 deleted file mode 100644 index 46d60ffe0b99..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigresource.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 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 deleted file mode 100644 index 2fea88a6a47e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfo.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 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 deleted file mode 100644 index 8907cc179db5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteconfigurationsnapshotinfoproperties.go +++ /dev/null @@ -1,27 +0,0 @@ -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 deleted file mode 100644 index 918563b2f1d1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfo.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 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 deleted file mode 100644 index 4a10138d54c7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteextensioninfoproperties.go +++ /dev/null @@ -1,57 +0,0 @@ -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 deleted file mode 100644 index 271933cbb7df..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelimits.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 91bb4451cdef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfig.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 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 deleted file mode 100644 index 1b853da7ad6e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitelogsconfigproperties.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index c6d65bc957de..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitemachinekey.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index ca1829f5c667..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresource.go +++ /dev/null @@ -1,17 +0,0 @@ -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 deleted file mode 100644 index f9d877d4c32d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitepatchresourceproperties.go +++ /dev/null @@ -1,78 +0,0 @@ -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 deleted file mode 100644 index fd18d5d39f69..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflag.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 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 deleted file mode 100644 index 4a9465a064b9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitephperrorlogflagproperties.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 2652a0f07ad3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_siteproperties.go +++ /dev/null @@ -1,86 +0,0 @@ -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 deleted file mode 100644 index 8b8a43b83b15..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrol.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 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 deleted file mode 100644 index f19c33a2a345..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_sitesourcecontrolproperties.go +++ /dev/null @@ -1,14 +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 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 deleted file mode 100644 index 34cbe7ce3541..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignames.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index dea993a310dd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotconfignamesresource.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 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 deleted file mode 100644 index 433c86817c4c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifference.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 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 deleted file mode 100644 index 79f90d274fa8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifferenceproperties.go +++ /dev/null @@ -1,14 +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 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 deleted file mode 100644 index c9eb5b7eeff2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotswapstatus.go +++ /dev/null @@ -1,28 +0,0 @@ -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 deleted file mode 100644 index 6d2bb3b50506..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slowrequestsbasedtrigger.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 6a113202c946..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshot.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 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 deleted file mode 100644 index e6cf11407ff8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotproperties.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 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 deleted file mode 100644 index 5a9d31cacbb5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrecoverysource.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index f3b15067bd68..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequest.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 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 deleted file mode 100644 index 43d7139eb35a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_snapshotrestorerequestproperties.go +++ /dev/null @@ -1,13 +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 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 deleted file mode 100644 index 38028980ea1e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesbasedtrigger.go +++ /dev/null @@ -1,13 +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 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 deleted file mode 100644 index 399920aec5aa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_statuscodesrangebasedtrigger.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 45da1f0d070b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptions.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 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 deleted file mode 100644 index 102ddb713f61..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationoptionsproperties.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 9422d63effd9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponse.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 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 deleted file mode 100644 index 780c084c6648..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_storagemigrationresponseproperties.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 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 deleted file mode 100644 index 20fcaaa92b1a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_stringdictionary.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 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 deleted file mode 100644 index db095809863d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetwork.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 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 deleted file mode 100644 index 8c1ca0faa388..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_swiftvirtualnetworkproperties.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 4668774ac257..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_tokenstore.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index 2eb9852d4b7d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistory.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 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 deleted file mode 100644 index 37c8ad7df32d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobhistoryproperties.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 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 deleted file mode 100644 index 695a8d5a98de..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredjobrun.go +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index aab21f2dfae0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjob.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 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 deleted file mode 100644 index 0205e0bc246a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_triggeredwebjobproperties.go +++ /dev/null @@ -1,19 +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 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 deleted file mode 100644 index 16018b814adc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitter.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 15d70794ab75..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_twitterregistration.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 0be0f9a35072..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_user.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 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 deleted file mode 100644 index 42d228f76dec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_userproperties.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 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 deleted file mode 100644 index cd9a20e0a979..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualapplication.go +++ /dev/null @@ -1,11 +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 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 deleted file mode 100644 index e12dd8d0b49e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_virtualdirectory.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 59ce757342bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgateway.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 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 deleted file mode 100644 index e90b78642ee7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetgatewayproperties.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index 9ef7b52d7de7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinfo.go +++ /dev/null @@ -1,14 +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 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 deleted file mode 100644 index 6b6193e0fee1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetinforesource.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 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 deleted file mode 100644 index 58365af2214e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetroute.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 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 deleted file mode 100644 index 00d288ce7d75..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_vnetrouteproperties.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 6dfbc3f0a583..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjob.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 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 deleted file mode 100644 index b67f1af63a06..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_webjobproperties.go +++ /dev/null @@ -1,14 +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 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 deleted file mode 100644 index 7cf30ebf35a9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatus.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 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 deleted file mode 100644 index fac5b723630b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_websiteinstancestatusproperties.go +++ /dev/null @@ -1,13 +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 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 deleted file mode 100644 index 524984818892..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowartifacts.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index 6f4ea5ce5965..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelope.go +++ /dev/null @@ -1,13 +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 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 deleted file mode 100644 index a14bffda962e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowenvelopeproperties.go +++ /dev/null @@ -1,10 +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 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 deleted file mode 100644 index f9ec376ba05f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_workflowhealth.go +++ /dev/null @@ -1,9 +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 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 deleted file mode 100644 index a1ca5255822a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/predicates.go +++ /dev/null @@ -1,760 +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 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 deleted file mode 100644 index 71c919c2360f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/version.go +++ /dev/null @@ -1,12 +0,0 @@ -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 5bf7c4c79b07..293b424a355b 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1008,9 +1008,7 @@ 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/appserviceenvironments github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans -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 b74c1ec00fde0d2b637567692bf0cde246dc47c9 Mon Sep 17 00:00:00 2001 From: jackofallops Date: Fri, 12 Jan 2024 14:59:47 +0100 Subject: [PATCH 4/7] rebase and go mod again to pick up new SDK version --- .../web/2023-01-01/appserviceplans/method_list.go | 6 ++++-- .../appserviceplans/method_listbyresourcegroup.go | 6 ++++-- .../appserviceplans/method_listhybridconnections.go | 6 ++++-- .../web/2023-01-01/appserviceplans/method_listusages.go | 6 ++++-- .../web/2023-01-01/appserviceplans/method_listwebapps.go | 6 ++++-- .../appserviceplans/method_listwebappsbyhybridconnection.go | 6 ++++-- 6 files changed, 24 insertions(+), 12 deletions(-) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_list.go index b2e2688afb39..b247deb0d596 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_list.go @@ -20,7 +20,8 @@ type ListOperationResponse struct { } type ListCompleteResult struct { - Items []AppServicePlan + LatestHttpResponse *http.Response + Items []AppServicePlan } type ListOperationOptions struct { @@ -112,7 +113,8 @@ func (c AppServicePlansClient) ListCompleteMatchingPredicate(ctx context.Context } result = ListCompleteResult{ - Items: items, + LatestHttpResponse: resp.HttpResponse, + Items: items, } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go index c6f2d3b69af0..48dabe9757a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go @@ -20,7 +20,8 @@ type ListByResourceGroupOperationResponse struct { } type ListByResourceGroupCompleteResult struct { - Items []AppServicePlan + LatestHttpResponse *http.Response + Items []AppServicePlan } // ListByResourceGroup ... @@ -84,7 +85,8 @@ func (c AppServicePlansClient) ListByResourceGroupCompleteMatchingPredicate(ctx } result = ListByResourceGroupCompleteResult{ - Items: items, + LatestHttpResponse: resp.HttpResponse, + Items: items, } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnections.go index b0948854cb22..61d7d2202bad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnections.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnections.go @@ -20,7 +20,8 @@ type ListHybridConnectionsOperationResponse struct { } type ListHybridConnectionsCompleteResult struct { - Items []HybridConnection + LatestHttpResponse *http.Response + Items []HybridConnection } // ListHybridConnections ... @@ -84,7 +85,8 @@ func (c AppServicePlansClient) ListHybridConnectionsCompleteMatchingPredicate(ct } result = ListHybridConnectionsCompleteResult{ - Items: items, + LatestHttpResponse: resp.HttpResponse, + Items: items, } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listusages.go index eedaf1332fde..8458aa9981ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listusages.go @@ -20,7 +20,8 @@ type ListUsagesOperationResponse struct { } type ListUsagesCompleteResult struct { - Items []CsmUsageQuota + LatestHttpResponse *http.Response + Items []CsmUsageQuota } type ListUsagesOperationOptions struct { @@ -112,7 +113,8 @@ func (c AppServicePlansClient) ListUsagesCompleteMatchingPredicate(ctx context.C } result = ListUsagesCompleteResult{ - Items: items, + LatestHttpResponse: resp.HttpResponse, + Items: items, } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebapps.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebapps.go index d29ce871aa86..e5801e22f2c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebapps.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebapps.go @@ -20,7 +20,8 @@ type ListWebAppsOperationResponse struct { } type ListWebAppsCompleteResult struct { - Items []Site + LatestHttpResponse *http.Response + Items []Site } type ListWebAppsOperationOptions struct { @@ -116,7 +117,8 @@ func (c AppServicePlansClient) ListWebAppsCompleteMatchingPredicate(ctx context. } result = ListWebAppsCompleteResult{ - Items: items, + LatestHttpResponse: resp.HttpResponse, + Items: items, } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go index 7ec8cfcc6134..5b13718ee5d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go @@ -19,7 +19,8 @@ type ListWebAppsByHybridConnectionOperationResponse struct { } type ListWebAppsByHybridConnectionCompleteResult struct { - Items []string + LatestHttpResponse *http.Response + Items []string } // ListWebAppsByHybridConnection ... @@ -76,7 +77,8 @@ func (c AppServicePlansClient) ListWebAppsByHybridConnectionComplete(ctx context } result = ListWebAppsByHybridConnectionCompleteResult{ - Items: items, + LatestHttpResponse: resp.HttpResponse, + Items: items, } return } From d3b8553645851b7e22766fa3da09acee7c984454 Mon Sep 17 00:00:00 2001 From: jackofallops Date: Fri, 12 Jan 2024 15:59:02 +0100 Subject: [PATCH 5/7] missed an insensitive case --- internal/services/appservice/linux_web_app_slot_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/appservice/linux_web_app_slot_resource.go b/internal/services/appservice/linux_web_app_slot_resource.go index 0b12e33f61db..6c3975a94b62 100644 --- a/internal/services/appservice/linux_web_app_slot_resource.go +++ b/internal/services/appservice/linux_web_app_slot_resource.go @@ -306,7 +306,7 @@ func (r LinuxWebAppSlotResource) Create() sdk.ResourceFunc { return fmt.Errorf("could not determine Service Plan ID for %s: %+v", id, err) } - servicePlanId, err = commonids.ParseAppServicePlanID(*webApp.SiteProperties.ServerFarmID) + servicePlanId, err = commonids.ParseAppServicePlanIDInsensitively(*webApp.SiteProperties.ServerFarmID) if err != nil { return err } From 7a4907137491ac9ff5c0dadede3cf8ed488a727b Mon Sep 17 00:00:00 2001 From: jackofallops Date: Mon, 15 Jan 2024 10:18:16 +0100 Subject: [PATCH 6/7] fixup tests to use updated service plan resources --- .../source_control_slot_resource_test.go | 31 +++++++------------ 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/internal/services/appservice/source_control_slot_resource_test.go b/internal/services/appservice/source_control_slot_resource_test.go index 366b5727bd6a..7a722ac4da2a 100644 --- a/internal/services/appservice/source_control_slot_resource_test.go +++ b/internal/services/appservice/source_control_slot_resource_test.go @@ -397,23 +397,19 @@ resource "azurerm_resource_group" "test" { location = "%s" } -resource "azurerm_app_service_plan" "test" { - name = "acctestASSC-%[1]d" +resource "azurerm_service_plan" "test" { + name = "acctestASP-%[1]d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - kind = "Windows" - - sku { - tier = "Standard" - size = "S1" - } + os_type = "Windows" + sku_name = "%[3]s" } resource "azurerm_windows_web_app" "test" { name = "acctestWA-%[1]d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - service_plan_id = azurerm_app_service_plan.test.id + service_plan_id = azurerm_service_plan.test.id site_config {} } @@ -424,7 +420,7 @@ resource "azurerm_windows_web_app_slot" "test" { site_config {} } -`, data.RandomInteger, data.Locations.Primary) +`, data.RandomInteger, data.Locations.Primary, SkuStandardPlan) } func (r SourceControlSlotResource) baseLinuxAppTemplate(data acceptance.TestData) string { @@ -435,24 +431,19 @@ resource "azurerm_resource_group" "test" { location = "%[2]s" } -resource "azurerm_app_service_plan" "test" { +resource "azurerm_service_plan" "test" { name = "acctestASP-%[1]d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - kind = "Linux" - reserved = true - - sku { - tier = "Standard" - size = "S1" - } + os_type = "Linux" + sku_name = "%[3]s" } resource "azurerm_linux_web_app" "test" { name = "acctestWA-%[1]d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - service_plan_id = azurerm_app_service_plan.test.id + service_plan_id = azurerm_service_plan.test.id site_config { application_stack { @@ -471,5 +462,5 @@ resource "azurerm_linux_web_app_slot" "test" { } } } -`, data.RandomInteger, data.Locations.Primary) +`, data.RandomInteger, data.Locations.Primary, SkuStandardPlan) } From 6c7e3756a243111238fa1ac138cb0f02e16fe1f3 Mon Sep 17 00:00:00 2001 From: jackofallops Date: Mon, 15 Jan 2024 13:57:25 +0100 Subject: [PATCH 7/7] fix customdiff ordering --- .../appservice/linux_function_app_resource.go | 27 ++++++++++--------- .../windows_function_app_resource.go | 23 ++++++++-------- .../windows_web_app_slot_resource.go | 2 +- 3 files changed, 27 insertions(+), 25 deletions(-) diff --git a/internal/services/appservice/linux_function_app_resource.go b/internal/services/appservice/linux_function_app_resource.go index 2a69843c57e6..9f57b71591f5 100644 --- a/internal/services/appservice/linux_function_app_resource.go +++ b/internal/services/appservice/linux_function_app_resource.go @@ -1226,15 +1226,8 @@ func (r LinuxFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.AppService.ServicePlanClient rd := metadata.ResourceDiff - if rd.HasChange("service_plan_id") { currentPlanIdRaw, newPlanIdRaw := rd.GetChange("service_plan_id") - if strings.EqualFold(currentPlanIdRaw.(string), newPlanIdRaw.(string)) || currentPlanIdRaw == "" { - // State migration escape for correcting case in serverFarms - // change of case here will not move the app to a new Service Plan - // also if the current Service Plan is empty, this is a new resource, so can skip this - return nil - } if newPlanIdRaw.(string) == "" { // Plans creating a new service_plan inline will be empty as `Computed` known after apply return nil @@ -1258,6 +1251,19 @@ func (r LinuxFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { } } } + if _, ok := rd.GetOk("backup"); ok && newTierIsDynamic { + return fmt.Errorf("cannot specify backup configuration for Dynamic tier Service Plans, Standard or higher is required") + } + if _, ok := rd.GetOk("backup"); ok && newTierIsBasic { + return fmt.Errorf("cannot specify backup configuration for Basic tier Service Plans, Standard or higher is required") + } + + if strings.EqualFold(currentPlanIdRaw.(string), newPlanIdRaw.(string)) || currentPlanIdRaw.(string) == "" { + // State migration escape for correcting case in serverFarms + // change of case here will not move the app to a new Service Plan + // also if the current Service Plan is empty, this is a new resource, so can skip this + return nil + } // Service Plans can only be updated in place when both New and Existing are not Dynamic if currentPlanIdRaw.(string) != "" { @@ -1283,12 +1289,7 @@ func (r LinuxFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { } } } - if _, ok := rd.GetOk("backup"); ok && newTierIsDynamic { - return fmt.Errorf("cannot specify backup configuration for Dynamic tier Service Plans, Standard or higher is required") - } - if _, ok := rd.GetOk("backup"); ok && newTierIsBasic { - return fmt.Errorf("cannot specify backup configuration for Basic tier Service Plans, Standard or higher is required") - } + } return nil }, diff --git a/internal/services/appservice/windows_function_app_resource.go b/internal/services/appservice/windows_function_app_resource.go index 4848a9d62866..0b7d3d2243c9 100644 --- a/internal/services/appservice/windows_function_app_resource.go +++ b/internal/services/appservice/windows_function_app_resource.go @@ -1241,11 +1241,6 @@ func (r WindowsFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { if rd.HasChange("service_plan_id") { currentPlanIdRaw, newPlanIdRaw := rd.GetChange("service_plan_id") - if strings.EqualFold(currentPlanIdRaw.(string), newPlanIdRaw.(string)) || currentPlanIdRaw == "" { - // State migration escape for correcting case in serverFarms - // change of case here will not move the app to a new Service Plan - return nil - } if newPlanIdRaw.(string) == "" { // Plans creating a new service_plan inline will be empty as `Computed` known after apply return nil @@ -1268,6 +1263,18 @@ func (r WindowsFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { } } + if _, ok := rd.GetOk("backup"); ok && newTierIsDynamic { + return fmt.Errorf("cannot specify backup configuration for Dynamic tier Service Plans, Standard or higher is required") + } + if _, ok := rd.GetOk("backup"); ok && newTierIsBasic { + return fmt.Errorf("cannot specify backup configuration for Basic tier Service Plans, Standard or higher is required") + } + + if strings.EqualFold(currentPlanIdRaw.(string), newPlanIdRaw.(string)) || currentPlanIdRaw == "" { + // State migration escape for correcting case in serverFarms + // change of case here will not move the app to a new Service Plan + return nil + } // Service Plans can only be updated in place when both New and Existing are not Dynamic if currentPlanIdRaw.(string) != "" { currentPlanId, err := commonids.ParseAppServicePlanID(currentPlanIdRaw.(string)) @@ -1292,12 +1299,6 @@ func (r WindowsFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { } } } - if _, ok := rd.GetOk("backup"); ok && newTierIsDynamic { - return fmt.Errorf("cannot specify backup configuration for Dynamic tier Service Plans, Standard or higher is required") - } - if _, ok := rd.GetOk("backup"); ok && newTierIsBasic { - return fmt.Errorf("cannot specify backup configuration for Basic tier Service Plans, Standard or higher is required") - } } return nil }, diff --git a/internal/services/appservice/windows_web_app_slot_resource.go b/internal/services/appservice/windows_web_app_slot_resource.go index 6bd9d4bdeb06..6f1d8c0ca1e7 100644 --- a/internal/services/appservice/windows_web_app_slot_resource.go +++ b/internal/services/appservice/windows_web_app_slot_resource.go @@ -314,7 +314,7 @@ func (r WindowsWebAppSlotResource) Create() sdk.ResourceFunc { if strings.EqualFold(newServicePlanId.ID(), servicePlanId.ID()) { return fmt.Errorf("`service_plan_id` should only be specified when it differs from the `service_plan_id` of the associated Web App") } - + differentServicePlanToParent = true servicePlanId = newServicePlanId }