diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 24751fb1b1791..92bfcd58ee448 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -457,6 +457,7 @@ com.azure.resourcemanager:azure-resourcemanager-largeinstance;1.0.0-beta.1;1.0.0
com.azure.resourcemanager:azure-resourcemanager-migrationdiscoverysap;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-storageactions;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-standbypool;1.0.0-beta.1;1.0.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-appservice-generated;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.2.0-beta.1
com.azure.tools:azure-sdk-build-tool;1.0.0;1.1.0-beta.1
diff --git a/pom.xml b/pom.xml
index 75297409a6814..70392121ca08c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,6 +22,7 @@
sdk/appconfigurationsdk/appcontainerssdk/applicationinsights
+ sdk/appservicesdk/astrosdk/attestationsdk/automanage
diff --git a/sdk/appservice/azure-resourcemanager-appservice-generated/CHANGELOG.md b/sdk/appservice/azure-resourcemanager-appservice-generated/CHANGELOG.md
new file mode 100644
index 0000000000000..08136c0600ff5
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2024-04-19)
+
+- Azure Resource Manager AppService client library for Java. This package contains Microsoft Azure SDK for AppService Management SDK. WebSite Management Client. Package tag package-2023-12. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/appservice/azure-resourcemanager-appservice-generated/README.md b/sdk/appservice/azure-resourcemanager-appservice-generated/README.md
new file mode 100644
index 0000000000000..a687d2977a31a
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/README.md
@@ -0,0 +1,107 @@
+# Azure Resource Manager AppService client library for Java
+
+Azure Resource Manager AppService client library for Java.
+
+This package contains Microsoft Azure SDK for AppService Management SDK. WebSite Management Client. Package tag package-2023-12. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-appservice-generated;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-appservice-generated
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation.
+
+### Authentication
+
+By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
+
+With above configuration, `azure` client can be authenticated using the following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+AppServiceManager manager = AppServiceManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appservice/azure-resourcemanager-appservice-generated/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide][cg].
+
+This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit .
+
+When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
+
+This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments.
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
+[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
+[coc]: https://opensource.microsoft.com/codeofconduct/
+[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
+
+![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fappservice%2Fazure-resourcemanager-appservice-generated%2FREADME.png)
diff --git a/sdk/appservice/azure-resourcemanager-appservice-generated/SAMPLE.md b/sdk/appservice/azure-resourcemanager-appservice-generated/SAMPLE.md
new file mode 100644
index 0000000000000..80c17c5bb6b95
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/SAMPLE.md
@@ -0,0 +1,9800 @@
+# Code snippets and samples
+
+
+## AppServiceCertificateOrders
+
+- [CreateOrUpdate](#appservicecertificateorders_createorupdate)
+- [CreateOrUpdateCertificate](#appservicecertificateorders_createorupdatecertificate)
+- [Delete](#appservicecertificateorders_delete)
+- [DeleteCertificate](#appservicecertificateorders_deletecertificate)
+- [GetByResourceGroup](#appservicecertificateorders_getbyresourcegroup)
+- [GetCertificate](#appservicecertificateorders_getcertificate)
+- [List](#appservicecertificateorders_list)
+- [ListByResourceGroup](#appservicecertificateorders_listbyresourcegroup)
+- [ListCertificates](#appservicecertificateorders_listcertificates)
+- [Reissue](#appservicecertificateorders_reissue)
+- [Renew](#appservicecertificateorders_renew)
+- [ResendEmail](#appservicecertificateorders_resendemail)
+- [ResendRequestEmails](#appservicecertificateorders_resendrequestemails)
+- [RetrieveCertificateActions](#appservicecertificateorders_retrievecertificateactions)
+- [RetrieveCertificateEmailHistory](#appservicecertificateorders_retrievecertificateemailhistory)
+- [RetrieveSiteSeal](#appservicecertificateorders_retrievesiteseal)
+- [Update](#appservicecertificateorders_update)
+- [UpdateCertificate](#appservicecertificateorders_updatecertificate)
+- [ValidatePurchaseInformation](#appservicecertificateorders_validatepurchaseinformation)
+- [VerifyDomainOwnership](#appservicecertificateorders_verifydomainownership)
+
+## AppServiceEnvironments
+
+- [ApproveOrRejectPrivateEndpointConnection](#appserviceenvironments_approveorrejectprivateendpointconnection)
+- [ChangeVnet](#appserviceenvironments_changevnet)
+- [CreateOrUpdate](#appserviceenvironments_createorupdate)
+- [CreateOrUpdateMultiRolePool](#appserviceenvironments_createorupdatemultirolepool)
+- [CreateOrUpdateWorkerPool](#appserviceenvironments_createorupdateworkerpool)
+- [Delete](#appserviceenvironments_delete)
+- [DeleteAseCustomDnsSuffixConfiguration](#appserviceenvironments_deleteasecustomdnssuffixconfiguration)
+- [DeletePrivateEndpointConnection](#appserviceenvironments_deleteprivateendpointconnection)
+- [GetAseCustomDnsSuffixConfiguration](#appserviceenvironments_getasecustomdnssuffixconfiguration)
+- [GetAseV3NetworkingConfiguration](#appserviceenvironments_getasev3networkingconfiguration)
+- [GetByResourceGroup](#appserviceenvironments_getbyresourcegroup)
+- [GetDiagnosticsItem](#appserviceenvironments_getdiagnosticsitem)
+- [GetInboundNetworkDependenciesEndpoints](#appserviceenvironments_getinboundnetworkdependenciesendpoints)
+- [GetMultiRolePool](#appserviceenvironments_getmultirolepool)
+- [GetOutboundNetworkDependenciesEndpoints](#appserviceenvironments_getoutboundnetworkdependenciesendpoints)
+- [GetPrivateEndpointConnection](#appserviceenvironments_getprivateendpointconnection)
+- [GetPrivateEndpointConnectionList](#appserviceenvironments_getprivateendpointconnectionlist)
+- [GetPrivateLinkResources](#appserviceenvironments_getprivatelinkresources)
+- [GetVipInfo](#appserviceenvironments_getvipinfo)
+- [GetWorkerPool](#appserviceenvironments_getworkerpool)
+- [List](#appserviceenvironments_list)
+- [ListAppServicePlans](#appserviceenvironments_listappserviceplans)
+- [ListByResourceGroup](#appserviceenvironments_listbyresourcegroup)
+- [ListCapacities](#appserviceenvironments_listcapacities)
+- [ListDiagnostics](#appserviceenvironments_listdiagnostics)
+- [ListMultiRoleMetricDefinitions](#appserviceenvironments_listmultirolemetricdefinitions)
+- [ListMultiRolePoolInstanceMetricDefinitions](#appserviceenvironments_listmultirolepoolinstancemetricdefinitions)
+- [ListMultiRolePoolSkus](#appserviceenvironments_listmultirolepoolskus)
+- [ListMultiRolePools](#appserviceenvironments_listmultirolepools)
+- [ListMultiRoleUsages](#appserviceenvironments_listmultiroleusages)
+- [ListOperations](#appserviceenvironments_listoperations)
+- [ListUsages](#appserviceenvironments_listusages)
+- [ListWebApps](#appserviceenvironments_listwebapps)
+- [ListWebWorkerMetricDefinitions](#appserviceenvironments_listwebworkermetricdefinitions)
+- [ListWebWorkerUsages](#appserviceenvironments_listwebworkerusages)
+- [ListWorkerPoolInstanceMetricDefinitions](#appserviceenvironments_listworkerpoolinstancemetricdefinitions)
+- [ListWorkerPoolSkus](#appserviceenvironments_listworkerpoolskus)
+- [ListWorkerPools](#appserviceenvironments_listworkerpools)
+- [Reboot](#appserviceenvironments_reboot)
+- [Resume](#appserviceenvironments_resume)
+- [Suspend](#appserviceenvironments_suspend)
+- [TestUpgradeAvailableNotification](#appserviceenvironments_testupgradeavailablenotification)
+- [Update](#appserviceenvironments_update)
+- [UpdateAseCustomDnsSuffixConfiguration](#appserviceenvironments_updateasecustomdnssuffixconfiguration)
+- [UpdateAseNetworkingConfiguration](#appserviceenvironments_updateasenetworkingconfiguration)
+- [UpdateMultiRolePool](#appserviceenvironments_updatemultirolepool)
+- [UpdateWorkerPool](#appserviceenvironments_updateworkerpool)
+- [Upgrade](#appserviceenvironments_upgrade)
+
+## AppServicePlans
+
+- [CreateOrUpdate](#appserviceplans_createorupdate)
+- [Delete](#appserviceplans_delete)
+- [GetByResourceGroup](#appserviceplans_getbyresourcegroup)
+- [List](#appserviceplans_list)
+- [ListByResourceGroup](#appserviceplans_listbyresourcegroup)
+- [Update](#appserviceplans_update)
+
+## CertificateOrdersDiagnostics
+
+- [GetAppServiceCertificateOrderDetectorResponse](#certificateordersdiagnostics_getappservicecertificateorderdetectorresponse)
+- [ListAppServiceCertificateOrderDetectorResponse](#certificateordersdiagnostics_listappservicecertificateorderdetectorresponse)
+
+## CertificateRegistrationProvider
+
+- [ListOperations](#certificateregistrationprovider_listoperations)
+
+## Certificates
+
+- [CreateOrUpdate](#certificates_createorupdate)
+- [Delete](#certificates_delete)
+- [GetByResourceGroup](#certificates_getbyresourcegroup)
+- [List](#certificates_list)
+- [ListByResourceGroup](#certificates_listbyresourcegroup)
+- [Update](#certificates_update)
+
+## ContainerApps
+
+- [CreateOrUpdate](#containerapps_createorupdate)
+- [Delete](#containerapps_delete)
+- [GetByResourceGroup](#containerapps_getbyresourcegroup)
+- [List](#containerapps_list)
+- [ListByResourceGroup](#containerapps_listbyresourcegroup)
+- [ListSecrets](#containerapps_listsecrets)
+
+## ContainerAppsRevisions
+
+- [ActivateRevision](#containerappsrevisions_activaterevision)
+- [DeactivateRevision](#containerappsrevisions_deactivaterevision)
+- [GetRevision](#containerappsrevisions_getrevision)
+- [ListRevisions](#containerappsrevisions_listrevisions)
+- [RestartRevision](#containerappsrevisions_restartrevision)
+
+## DeletedWebApps
+
+- [GetDeletedWebAppByLocation](#deletedwebapps_getdeletedwebappbylocation)
+- [ListByLocation](#deletedwebapps_listbylocation)
+
+## Diagnostics
+
+- [ExecuteSiteAnalysis](#diagnostics_executesiteanalysis)
+- [ExecuteSiteAnalysisSlot](#diagnostics_executesiteanalysisslot)
+- [ExecuteSiteDetector](#diagnostics_executesitedetector)
+- [ExecuteSiteDetectorSlot](#diagnostics_executesitedetectorslot)
+- [GetHostingEnvironmentDetectorResponse](#diagnostics_gethostingenvironmentdetectorresponse)
+- [GetSiteAnalysis](#diagnostics_getsiteanalysis)
+- [GetSiteAnalysisSlot](#diagnostics_getsiteanalysisslot)
+- [GetSiteDetector](#diagnostics_getsitedetector)
+- [GetSiteDetectorResponse](#diagnostics_getsitedetectorresponse)
+- [GetSiteDetectorResponseSlot](#diagnostics_getsitedetectorresponseslot)
+- [GetSiteDetectorSlot](#diagnostics_getsitedetectorslot)
+- [GetSiteDiagnosticCategory](#diagnostics_getsitediagnosticcategory)
+- [GetSiteDiagnosticCategorySlot](#diagnostics_getsitediagnosticcategoryslot)
+- [ListHostingEnvironmentDetectorResponses](#diagnostics_listhostingenvironmentdetectorresponses)
+- [ListSiteAnalyses](#diagnostics_listsiteanalyses)
+- [ListSiteAnalysesSlot](#diagnostics_listsiteanalysesslot)
+- [ListSiteDetectorResponses](#diagnostics_listsitedetectorresponses)
+- [ListSiteDetectorResponsesSlot](#diagnostics_listsitedetectorresponsesslot)
+- [ListSiteDetectors](#diagnostics_listsitedetectors)
+- [ListSiteDetectorsSlot](#diagnostics_listsitedetectorsslot)
+- [ListSiteDiagnosticCategories](#diagnostics_listsitediagnosticcategories)
+- [ListSiteDiagnosticCategoriesSlot](#diagnostics_listsitediagnosticcategoriesslot)
+
+## DomainRegistrationProvider
+
+- [ListOperations](#domainregistrationprovider_listoperations)
+
+## Domains
+
+- [CheckAvailability](#domains_checkavailability)
+- [CreateOrUpdate](#domains_createorupdate)
+- [CreateOrUpdateOwnershipIdentifier](#domains_createorupdateownershipidentifier)
+- [Delete](#domains_delete)
+- [DeleteOwnershipIdentifier](#domains_deleteownershipidentifier)
+- [GetByResourceGroup](#domains_getbyresourcegroup)
+- [GetControlCenterSsoRequest](#domains_getcontrolcenterssorequest)
+- [GetOwnershipIdentifier](#domains_getownershipidentifier)
+- [List](#domains_list)
+- [ListByResourceGroup](#domains_listbyresourcegroup)
+- [ListOwnershipIdentifiers](#domains_listownershipidentifiers)
+- [ListRecommendations](#domains_listrecommendations)
+- [Renew](#domains_renew)
+- [TransferOut](#domains_transferout)
+- [Update](#domains_update)
+- [UpdateOwnershipIdentifier](#domains_updateownershipidentifier)
+
+## GetUsagesInLocation
+
+- [List](#getusagesinlocation_list)
+
+## Global
+
+- [GetDeletedWebApp](#global_getdeletedwebapp)
+- [GetDeletedWebAppSnapshots](#global_getdeletedwebappsnapshots)
+- [GetSubscriptionOperationWithAsyncResponse](#global_getsubscriptionoperationwithasyncresponse)
+
+## KubeEnvironments
+
+- [CreateOrUpdate](#kubeenvironments_createorupdate)
+- [Delete](#kubeenvironments_delete)
+- [GetByResourceGroup](#kubeenvironments_getbyresourcegroup)
+- [List](#kubeenvironments_list)
+- [ListByResourceGroup](#kubeenvironments_listbyresourcegroup)
+- [Update](#kubeenvironments_update)
+
+## Provider
+
+- [GetFunctionAppStacks](#provider_getfunctionappstacks)
+- [GetFunctionAppStacksForLocation](#provider_getfunctionappstacksforlocation)
+- [GetWebAppStacks](#provider_getwebappstacks)
+- [GetWebAppStacksForLocation](#provider_getwebappstacksforlocation)
+- [ListOperations](#provider_listoperations)
+
+## ResourceHealthMetadata
+
+- [GetBySite](#resourcehealthmetadata_getbysite)
+- [GetBySiteSlot](#resourcehealthmetadata_getbysiteslot)
+- [List](#resourcehealthmetadata_list)
+- [ListByResourceGroup](#resourcehealthmetadata_listbyresourcegroup)
+- [ListBySite](#resourcehealthmetadata_listbysite)
+- [ListBySiteSlot](#resourcehealthmetadata_listbysiteslot)
+
+## ResourceProvider
+
+- [ListAseRegions](#resourceprovider_listaseregions)
+- [ListCustomHostnameSites](#resourceprovider_listcustomhostnamesites)
+- [VerifyHostingEnvironmentVnet](#resourceprovider_verifyhostingenvironmentvnet)
+
+## StaticSites
+
+- [ApproveOrRejectPrivateEndpointConnection](#staticsites_approveorrejectprivateendpointconnection)
+- [CreateOrUpdateBasicAuth](#staticsites_createorupdatebasicauth)
+- [CreateOrUpdateBuildDatabaseConnection](#staticsites_createorupdatebuilddatabaseconnection)
+- [CreateOrUpdateDatabaseConnection](#staticsites_createorupdatedatabaseconnection)
+- [CreateOrUpdateStaticSite](#staticsites_createorupdatestaticsite)
+- [CreateOrUpdateStaticSiteAppSettings](#staticsites_createorupdatestaticsiteappsettings)
+- [CreateOrUpdateStaticSiteBuildAppSettings](#staticsites_createorupdatestaticsitebuildappsettings)
+- [CreateOrUpdateStaticSiteBuildFunctionAppSettings](#staticsites_createorupdatestaticsitebuildfunctionappsettings)
+- [CreateOrUpdateStaticSiteCustomDomain](#staticsites_createorupdatestaticsitecustomdomain)
+- [CreateOrUpdateStaticSiteFunctionAppSettings](#staticsites_createorupdatestaticsitefunctionappsettings)
+- [CreateUserRolesInvitationLink](#staticsites_createuserrolesinvitationlink)
+- [CreateZipDeploymentForStaticSite](#staticsites_createzipdeploymentforstaticsite)
+- [CreateZipDeploymentForStaticSiteBuild](#staticsites_createzipdeploymentforstaticsitebuild)
+- [Delete](#staticsites_delete)
+- [DeleteBuildDatabaseConnection](#staticsites_deletebuilddatabaseconnection)
+- [DeleteDatabaseConnection](#staticsites_deletedatabaseconnection)
+- [DeletePrivateEndpointConnection](#staticsites_deleteprivateendpointconnection)
+- [DeleteStaticSiteBuild](#staticsites_deletestaticsitebuild)
+- [DeleteStaticSiteCustomDomain](#staticsites_deletestaticsitecustomdomain)
+- [DeleteStaticSiteUser](#staticsites_deletestaticsiteuser)
+- [DetachStaticSite](#staticsites_detachstaticsite)
+- [DetachUserProvidedFunctionAppFromStaticSite](#staticsites_detachuserprovidedfunctionappfromstaticsite)
+- [DetachUserProvidedFunctionAppFromStaticSiteBuild](#staticsites_detachuserprovidedfunctionappfromstaticsitebuild)
+- [GetBasicAuth](#staticsites_getbasicauth)
+- [GetBuildDatabaseConnection](#staticsites_getbuilddatabaseconnection)
+- [GetBuildDatabaseConnectionWithDetails](#staticsites_getbuilddatabaseconnectionwithdetails)
+- [GetBuildDatabaseConnections](#staticsites_getbuilddatabaseconnections)
+- [GetBuildDatabaseConnectionsWithDetails](#staticsites_getbuilddatabaseconnectionswithdetails)
+- [GetByResourceGroup](#staticsites_getbyresourcegroup)
+- [GetDatabaseConnection](#staticsites_getdatabaseconnection)
+- [GetDatabaseConnectionWithDetails](#staticsites_getdatabaseconnectionwithdetails)
+- [GetDatabaseConnections](#staticsites_getdatabaseconnections)
+- [GetDatabaseConnectionsWithDetails](#staticsites_getdatabaseconnectionswithdetails)
+- [GetLinkedBackend](#staticsites_getlinkedbackend)
+- [GetLinkedBackendForBuild](#staticsites_getlinkedbackendforbuild)
+- [GetLinkedBackends](#staticsites_getlinkedbackends)
+- [GetLinkedBackendsForBuild](#staticsites_getlinkedbackendsforbuild)
+- [GetPrivateEndpointConnection](#staticsites_getprivateendpointconnection)
+- [GetPrivateEndpointConnectionList](#staticsites_getprivateendpointconnectionlist)
+- [GetPrivateLinkResources](#staticsites_getprivatelinkresources)
+- [GetStaticSiteBuild](#staticsites_getstaticsitebuild)
+- [GetStaticSiteBuilds](#staticsites_getstaticsitebuilds)
+- [GetStaticSiteCustomDomain](#staticsites_getstaticsitecustomdomain)
+- [GetUserProvidedFunctionAppForStaticSite](#staticsites_getuserprovidedfunctionappforstaticsite)
+- [GetUserProvidedFunctionAppForStaticSiteBuild](#staticsites_getuserprovidedfunctionappforstaticsitebuild)
+- [GetUserProvidedFunctionAppsForStaticSite](#staticsites_getuserprovidedfunctionappsforstaticsite)
+- [GetUserProvidedFunctionAppsForStaticSiteBuild](#staticsites_getuserprovidedfunctionappsforstaticsitebuild)
+- [LinkBackend](#staticsites_linkbackend)
+- [LinkBackendToBuild](#staticsites_linkbackendtobuild)
+- [List](#staticsites_list)
+- [ListBasicAuth](#staticsites_listbasicauth)
+- [ListByResourceGroup](#staticsites_listbyresourcegroup)
+- [ListStaticSiteAppSettings](#staticsites_liststaticsiteappsettings)
+- [ListStaticSiteBuildAppSettings](#staticsites_liststaticsitebuildappsettings)
+- [ListStaticSiteBuildFunctionAppSettings](#staticsites_liststaticsitebuildfunctionappsettings)
+- [ListStaticSiteBuildFunctions](#staticsites_liststaticsitebuildfunctions)
+- [ListStaticSiteConfiguredRoles](#staticsites_liststaticsiteconfiguredroles)
+- [ListStaticSiteCustomDomains](#staticsites_liststaticsitecustomdomains)
+- [ListStaticSiteFunctionAppSettings](#staticsites_liststaticsitefunctionappsettings)
+- [ListStaticSiteFunctions](#staticsites_liststaticsitefunctions)
+- [ListStaticSiteSecrets](#staticsites_liststaticsitesecrets)
+- [ListStaticSiteUsers](#staticsites_liststaticsiteusers)
+- [PreviewWorkflow](#staticsites_previewworkflow)
+- [RegisterUserProvidedFunctionAppWithStaticSite](#staticsites_registeruserprovidedfunctionappwithstaticsite)
+- [RegisterUserProvidedFunctionAppWithStaticSiteBuild](#staticsites_registeruserprovidedfunctionappwithstaticsitebuild)
+- [ResetStaticSiteApiKey](#staticsites_resetstaticsiteapikey)
+- [UnlinkBackend](#staticsites_unlinkbackend)
+- [UnlinkBackendFromBuild](#staticsites_unlinkbackendfrombuild)
+- [UpdateBuildDatabaseConnection](#staticsites_updatebuilddatabaseconnection)
+- [UpdateDatabaseConnection](#staticsites_updatedatabaseconnection)
+- [UpdateStaticSite](#staticsites_updatestaticsite)
+- [UpdateStaticSiteUser](#staticsites_updatestaticsiteuser)
+- [ValidateBackend](#staticsites_validatebackend)
+- [ValidateBackendForBuild](#staticsites_validatebackendforbuild)
+- [ValidateCustomDomainCanBeAddedToStaticSite](#staticsites_validatecustomdomaincanbeaddedtostaticsite)
+
+## TopLevelDomains
+
+- [Get](#topleveldomains_get)
+- [List](#topleveldomains_list)
+- [ListAgreements](#topleveldomains_listagreements)
+
+## WebApps
+
+- [AnalyzeCustomHostname](#webapps_analyzecustomhostname)
+- [AnalyzeCustomHostnameSlot](#webapps_analyzecustomhostnameslot)
+- [ApplySlotConfigToProduction](#webapps_applyslotconfigtoproduction)
+- [ApproveOrRejectPrivateEndpointConnection](#webapps_approveorrejectprivateendpointconnection)
+- [ApproveOrRejectPrivateEndpointConnectionSlot](#webapps_approveorrejectprivateendpointconnectionslot)
+- [Backup](#webapps_backup)
+- [CreateOrUpdate](#webapps_createorupdate)
+- [CreateOrUpdateConfiguration](#webapps_createorupdateconfiguration)
+- [CreateOrUpdateSlot](#webapps_createorupdateslot)
+- [Delete](#webapps_delete)
+- [DeleteBackup](#webapps_deletebackup)
+- [DeletePrivateEndpointConnection](#webapps_deleteprivateendpointconnection)
+- [DeletePrivateEndpointConnectionSlot](#webapps_deleteprivateendpointconnectionslot)
+- [DeleteSlot](#webapps_deleteslot)
+- [DeployWorkflowArtifacts](#webapps_deployworkflowartifacts)
+- [DeployWorkflowArtifactsSlot](#webapps_deployworkflowartifactsslot)
+- [GetAppSettingKeyVaultReference](#webapps_getappsettingkeyvaultreference)
+- [GetAppSettingKeyVaultReferenceSlot](#webapps_getappsettingkeyvaultreferenceslot)
+- [GetAppSettingsKeyVaultReferences](#webapps_getappsettingskeyvaultreferences)
+- [GetAppSettingsKeyVaultReferencesSlot](#webapps_getappsettingskeyvaultreferencesslot)
+- [GetAuthSettings](#webapps_getauthsettings)
+- [GetAuthSettingsV2](#webapps_getauthsettingsv2)
+- [GetAuthSettingsV2WithoutSecrets](#webapps_getauthsettingsv2withoutsecrets)
+- [GetBackupStatus](#webapps_getbackupstatus)
+- [GetByResourceGroup](#webapps_getbyresourcegroup)
+- [GetConfiguration](#webapps_getconfiguration)
+- [GetFtpAllowed](#webapps_getftpallowed)
+- [GetFtpAllowedSlot](#webapps_getftpallowedslot)
+- [GetInstanceInfo](#webapps_getinstanceinfo)
+- [GetInstanceInfoSlot](#webapps_getinstanceinfoslot)
+- [GetInstanceWorkflowSlot](#webapps_getinstanceworkflowslot)
+- [GetNetworkTraceOperation](#webapps_getnetworktraceoperation)
+- [GetNetworkTraceOperationSlot](#webapps_getnetworktraceoperationslot)
+- [GetNetworkTraceOperationSlotV2](#webapps_getnetworktraceoperationslotv2)
+- [GetNetworkTraceOperationV2](#webapps_getnetworktraceoperationv2)
+- [GetNetworkTraces](#webapps_getnetworktraces)
+- [GetNetworkTracesSlot](#webapps_getnetworktracesslot)
+- [GetNetworkTracesSlotV2](#webapps_getnetworktracesslotv2)
+- [GetNetworkTracesV2](#webapps_getnetworktracesv2)
+- [GetPrivateEndpointConnection](#webapps_getprivateendpointconnection)
+- [GetPrivateEndpointConnectionSlot](#webapps_getprivateendpointconnectionslot)
+- [GetPrivateLinkResources](#webapps_getprivatelinkresources)
+- [GetPrivateLinkResourcesSlot](#webapps_getprivatelinkresourcesslot)
+- [GetProductionSiteDeploymentStatus](#webapps_getproductionsitedeploymentstatus)
+- [GetScmAllowed](#webapps_getscmallowed)
+- [GetScmAllowedSlot](#webapps_getscmallowedslot)
+- [GetSlot](#webapps_getslot)
+- [GetSlotSiteDeploymentStatusSlot](#webapps_getslotsitedeploymentstatusslot)
+- [GetWorkflow](#webapps_getworkflow)
+- [List](#webapps_list)
+- [ListApplicationSettings](#webapps_listapplicationsettings)
+- [ListBackupStatusSecrets](#webapps_listbackupstatussecrets)
+- [ListBackups](#webapps_listbackups)
+- [ListBasicPublishingCredentialsPolicies](#webapps_listbasicpublishingcredentialspolicies)
+- [ListBasicPublishingCredentialsPoliciesSlot](#webapps_listbasicpublishingcredentialspoliciesslot)
+- [ListByResourceGroup](#webapps_listbyresourcegroup)
+- [ListConfigurations](#webapps_listconfigurations)
+- [ListInstanceWorkflowsSlot](#webapps_listinstanceworkflowsslot)
+- [ListProductionSiteDeploymentStatuses](#webapps_listproductionsitedeploymentstatuses)
+- [ListSiteBackups](#webapps_listsitebackups)
+- [ListSiteBackupsSlot](#webapps_listsitebackupsslot)
+- [ListSlotSiteDeploymentStatusesSlot](#webapps_listslotsitedeploymentstatusesslot)
+- [ListSlots](#webapps_listslots)
+- [ListWorkflows](#webapps_listworkflows)
+- [ListWorkflowsConnections](#webapps_listworkflowsconnections)
+- [ListWorkflowsConnectionsSlot](#webapps_listworkflowsconnectionsslot)
+- [Restore](#webapps_restore)
+- [StartNetworkTrace](#webapps_startnetworktrace)
+- [StartNetworkTraceSlot](#webapps_startnetworktraceslot)
+- [StartWebSiteNetworkTraceOperation](#webapps_startwebsitenetworktraceoperation)
+- [StartWebSiteNetworkTraceOperationSlot](#webapps_startwebsitenetworktraceoperationslot)
+- [StopNetworkTrace](#webapps_stopnetworktrace)
+- [StopNetworkTraceSlot](#webapps_stopnetworktraceslot)
+- [StopWebSiteNetworkTrace](#webapps_stopwebsitenetworktrace)
+- [StopWebSiteNetworkTraceSlot](#webapps_stopwebsitenetworktraceslot)
+- [Update](#webapps_update)
+- [UpdateApplicationSettings](#webapps_updateapplicationsettings)
+- [UpdateAuthSettings](#webapps_updateauthsettings)
+- [UpdateAuthSettingsV2](#webapps_updateauthsettingsv2)
+- [UpdateAzureStorageAccounts](#webapps_updateazurestorageaccounts)
+- [UpdateFtpAllowed](#webapps_updateftpallowed)
+- [UpdateFtpAllowedSlot](#webapps_updateftpallowedslot)
+- [UpdateScmAllowed](#webapps_updatescmallowed)
+- [UpdateScmAllowedSlot](#webapps_updatescmallowedslot)
+- [UpdateSlot](#webapps_updateslot)
+
+## WorkflowRunActionRepetitions
+
+- [Get](#workflowrunactionrepetitions_get)
+- [List](#workflowrunactionrepetitions_list)
+- [ListExpressionTraces](#workflowrunactionrepetitions_listexpressiontraces)
+
+## WorkflowRunActionRepetitionsRequestHistories
+
+- [Get](#workflowrunactionrepetitionsrequesthistories_get)
+- [List](#workflowrunactionrepetitionsrequesthistories_list)
+
+## WorkflowRunActionScopeRepetitions
+
+- [Get](#workflowrunactionscoperepetitions_get)
+- [List](#workflowrunactionscoperepetitions_list)
+
+## WorkflowRunActions
+
+- [Get](#workflowrunactions_get)
+- [List](#workflowrunactions_list)
+- [ListExpressionTraces](#workflowrunactions_listexpressiontraces)
+
+## WorkflowRuns
+
+- [Cancel](#workflowruns_cancel)
+- [Get](#workflowruns_get)
+- [List](#workflowruns_list)
+
+## WorkflowTriggerHistories
+
+- [Get](#workflowtriggerhistories_get)
+- [List](#workflowtriggerhistories_list)
+- [Resubmit](#workflowtriggerhistories_resubmit)
+
+## WorkflowTriggers
+
+- [Get](#workflowtriggers_get)
+- [GetSchemaJson](#workflowtriggers_getschemajson)
+- [List](#workflowtriggers_list)
+- [ListCallbackUrl](#workflowtriggers_listcallbackurl)
+- [Run](#workflowtriggers_run)
+
+## WorkflowVersions
+
+- [Get](#workflowversions_get)
+- [List](#workflowversions_list)
+
+## Workflows
+
+- [RegenerateAccessKey](#workflows_regenerateaccesskey)
+- [Validate](#workflows_validate)
+### AppServiceCertificateOrders_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.AppServiceCertificate;
+import com.azure.resourcemanager.appservice.generated.models.CertificateProductType;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AppServiceCertificateOrders CreateOrUpdate.
+ */
+public final class AppServiceCertificateOrdersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/CreateAppServiceCertificateOrder.json
+ */
+ /**
+ * Sample code: Create Certificate order.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ createCertificateOrder(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .define("SampleCertificateOrderName")
+ .withRegion("Global")
+ .withExistingResourceGroup("testrg123")
+ .withCertificates(mapOf("SampleCertName1",
+ new AppServiceCertificate().withKeyVaultId("fakeTokenPlaceholder")
+ .withKeyVaultSecretName("fakeTokenPlaceholder"),
+ "SampleCertName2",
+ new AppServiceCertificate().withKeyVaultId("fakeTokenPlaceholder")
+ .withKeyVaultSecretName("fakeTokenPlaceholder")))
+ .withDistinguishedName("CN=SampleCustomDomain.com")
+ .withValidityInYears(2)
+ .withKeySize(2048)
+ .withProductType(CertificateProductType.STANDARD_DOMAIN_VALIDATED_SSL)
+ .withAutoRenew(true)
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AppServiceCertificateOrders_CreateOrUpdateCertificate
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders CreateOrUpdateCertificate.
+ */
+public final class AppServiceCertificateOrdersCreateOrUpdateCertificateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/CreateAppServiceCertificate.json
+ */
+ /**
+ * Sample code: Create Certificate.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createCertificate(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .defineCertificate("SampleCertName1")
+ .withRegion("Global")
+ .withExistingCertificateOrder("testrg123", "SampleCertificateOrderName")
+ .withKeyVaultId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName")
+ .withKeyVaultSecretName("SampleSecretName1")
+ .create();
+ }
+}
+```
+
+### AppServiceCertificateOrders_Delete
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders Delete.
+ */
+public final class AppServiceCertificateOrdersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/DeleteAppServiceCertificateOrder.json
+ */
+ /**
+ * Sample code: Delete App Service Certificate Order.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deleteAppServiceCertificateOrder(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .deleteByResourceGroupWithResponse("testrg123", "SampleCertificateOrderName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_DeleteCertificate
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders DeleteCertificate.
+ */
+public final class AppServiceCertificateOrdersDeleteCertificateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/DeleteAppServiceCertificate.json
+ */
+ /**
+ * Sample code: Delete App Service Certificate.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deleteAppServiceCertificate(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .deleteCertificateWithResponse("testrg123", "SampleCertificateOrderName", "SampleCertName1",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_GetByResourceGroup
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders GetByResourceGroup.
+ */
+public final class AppServiceCertificateOrdersGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/GetAppServiceCertificateOrder.json
+ */
+ /**
+ * Sample code: Get App Service Certificate Order.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppServiceCertificateOrder(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .getByResourceGroupWithResponse("testrg123", "SampleCertificateOrderName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_GetCertificate
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders GetCertificate.
+ */
+public final class AppServiceCertificateOrdersGetCertificateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/GetAppServiceCertificate.json
+ */
+ /**
+ * Sample code: Get App Service Certificate.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppServiceCertificate(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .getCertificateWithResponse("testrg123", "SampleCertificateOrderName", "SampleCertName1",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_List
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders List.
+ */
+public final class AppServiceCertificateOrdersListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ListAppServiceCertificateOrdersBySubscription.json
+ */
+ /**
+ * Sample code: List App Service Certificate orders by subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppServiceCertificateOrdersBySubscription(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_ListByResourceGroup
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders ListByResourceGroup.
+ */
+public final class AppServiceCertificateOrdersListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ListAppServiceCertificateOrdersByResourceGroup.json
+ */
+ /**
+ * Sample code: List App Service Certificate orders by resource group.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppServiceCertificateOrdersByResourceGroup(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders().listByResourceGroup("testrg123", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_ListCertificates
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders ListCertificates.
+ */
+public final class AppServiceCertificateOrdersListCertificatesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ListCertificatesByAppServiceCertificateOrder.json
+ */
+ /**
+ * Sample code: List certificates by App Service Certificate.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listCertificatesByAppServiceCertificate(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .listCertificates("testrg123", "SampleCertificateOrderName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_Reissue
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.ReissueCertificateOrderRequest;
+
+/**
+ * Samples for AppServiceCertificateOrders Reissue.
+ */
+public final class AppServiceCertificateOrdersReissueSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ReissueAppServiceCertificateOrder.json
+ */
+ /**
+ * Sample code: Reissue App Service Certificate Order.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ reissueAppServiceCertificateOrder(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .reissueWithResponse("testrg123", "SampleCertificateOrderName",
+ new ReissueCertificateOrderRequest().withKeySize(2048)
+ .withDelayExistingRevokeInHours(2)
+ .withCsr("CSR1223238Value")
+ .withIsPrivateKeyExternal(false),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_Renew
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.RenewCertificateOrderRequest;
+
+/**
+ * Samples for AppServiceCertificateOrders Renew.
+ */
+public final class AppServiceCertificateOrdersRenewSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/RenewAppServiceCertificateOrder.json
+ */
+ /**
+ * Sample code: Renew App Service Certificate Order.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ renewAppServiceCertificateOrder(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .renewWithResponse("testrg123", "SampleCertificateOrderName",
+ new RenewCertificateOrderRequest().withKeySize(2048)
+ .withCsr("CSR1223238Value")
+ .withIsPrivateKeyExternal(false),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_ResendEmail
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders ResendEmail.
+ */
+public final class AppServiceCertificateOrdersResendEmailSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ResendAppServiceCertificateOrderEmail.json
+ */
+ /**
+ * Sample code: Resend App Service Certificate Order email.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void resendAppServiceCertificateOrderEmail(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .resendEmailWithResponse("testrg123", "SampleCertificateOrderName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_ResendRequestEmails
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.NameIdentifierInner;
+
+/**
+ * Samples for AppServiceCertificateOrders ResendRequestEmails.
+ */
+public final class AppServiceCertificateOrdersResendRequestEmailsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ResendDomainOwnershipVerificationEmail.json
+ */
+ /**
+ * Sample code: Resend Domain Ownership verification email.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void resendDomainOwnershipVerificationEmail(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .resendRequestEmailsWithResponse("testrg123", "SampleCertificateOrderName",
+ new NameIdentifierInner().withName("Domain name"), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_RetrieveCertificateActions
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders RetrieveCertificateActions.
+ */
+public final class AppServiceCertificateOrdersRetrieveCertificateActionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/RetrieveCertificateOrderActions.json
+ */
+ /**
+ * Sample code: Retrieve Certificate Order Actions.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ retrieveCertificateOrderActions(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .retrieveCertificateActionsWithResponse("testrg123", "SampleCertOrder", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_RetrieveCertificateEmailHistory
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders RetrieveCertificateEmailHistory.
+ */
+public final class AppServiceCertificateOrdersRetrieveCertificateEmailHistorySamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/RetrieveCertificateEmailHistory.json
+ */
+ /**
+ * Sample code: Retrieve Certificate Email History.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ retrieveCertificateEmailHistory(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .retrieveCertificateEmailHistoryWithResponse("testrg123", "SampleCertOrder",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_RetrieveSiteSeal
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.SiteSealRequest;
+
+/**
+ * Samples for AppServiceCertificateOrders RetrieveSiteSeal.
+ */
+public final class AppServiceCertificateOrdersRetrieveSiteSealSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/RetrieveSiteSeal.json
+ */
+ /**
+ * Sample code: Retrieve Site Seal.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void retrieveSiteSeal(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .retrieveSiteSealWithResponse("testrg123", "SampleCertOrder",
+ new SiteSealRequest().withLightTheme(true).withLocale("en-us"), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_Update
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.AppServiceCertificate;
+import com.azure.resourcemanager.appservice.generated.models.AppServiceCertificateOrder;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AppServiceCertificateOrders Update.
+ */
+public final class AppServiceCertificateOrdersUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/UpdateAppServiceCertificateOrder.json
+ */
+ /**
+ * Sample code: Update Certificate order.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ updateCertificateOrder(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ AppServiceCertificateOrder resource = manager.appServiceCertificateOrders()
+ .getByResourceGroupWithResponse("testrg123", "SampleCertificateOrderName", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withCertificates(mapOf("SampleCertName1",
+ new AppServiceCertificate().withKeyVaultId("fakeTokenPlaceholder")
+ .withKeyVaultSecretName("fakeTokenPlaceholder"),
+ "SampleCertName2",
+ new AppServiceCertificate().withKeyVaultId("fakeTokenPlaceholder")
+ .withKeyVaultSecretName("fakeTokenPlaceholder")))
+ .withAutoRenew(true)
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AppServiceCertificateOrders_UpdateCertificate
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.AppServiceCertificateResource;
+
+/**
+ * Samples for AppServiceCertificateOrders UpdateCertificate.
+ */
+public final class AppServiceCertificateOrdersUpdateCertificateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/UpdateAppServiceCertificate.json
+ */
+ /**
+ * Sample code: Update Certificate.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateCertificate(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ AppServiceCertificateResource resource = manager.appServiceCertificateOrders()
+ .getCertificateWithResponse("testrg123", "SampleCertificateOrderName", "SampleCertName1",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withKeyVaultId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName")
+ .withKeyVaultSecretName("SampleSecretName1")
+ .apply();
+ }
+}
+```
+
+### AppServiceCertificateOrders_ValidatePurchaseInformation
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.AppServiceCertificate;
+import com.azure.resourcemanager.appservice.generated.fluent.models.AppServiceCertificateOrderInner;
+import com.azure.resourcemanager.appservice.generated.models.CertificateProductType;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AppServiceCertificateOrders ValidatePurchaseInformation.
+ */
+public final class AppServiceCertificateOrdersValidatePurchaseInformationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ValidateAppServiceCertificatePurchaseInformationBySubscription.json
+ */
+ /**
+ * Sample code: Validate App Service Certificate purchase information by subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void validateAppServiceCertificatePurchaseInformationBySubscription(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .validatePurchaseInformationWithResponse(new AppServiceCertificateOrderInner().withLocation("Global")
+ .withCertificates(mapOf("SampleCertName1",
+ new AppServiceCertificate().withKeyVaultId("fakeTokenPlaceholder")
+ .withKeyVaultSecretName("fakeTokenPlaceholder"),
+ "SampleCertName2",
+ new AppServiceCertificate().withKeyVaultId("fakeTokenPlaceholder")
+ .withKeyVaultSecretName("fakeTokenPlaceholder")))
+ .withDistinguishedName("CN=SampleCustomDomain.com")
+ .withValidityInYears(2)
+ .withKeySize(2048)
+ .withProductType(CertificateProductType.STANDARD_DOMAIN_VALIDATED_SSL)
+ .withAutoRenew(true), com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AppServiceCertificateOrders_VerifyDomainOwnership
+
+```java
+/**
+ * Samples for AppServiceCertificateOrders VerifyDomainOwnership.
+ */
+public final class AppServiceCertificateOrdersVerifyDomainOwnershipSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/VerifyDomainOwnership.json
+ */
+ /**
+ * Sample code: Verify Domain Ownership.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void verifyDomainOwnership(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceCertificateOrders()
+ .verifyDomainOwnershipWithResponse("testrg123", "SampleCertificateOrderName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.PrivateLinkConnectionState;
+
+/**
+ * Samples for AppServiceEnvironments ApproveOrRejectPrivateEndpointConnection.
+ */
+public final class AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: Approves or rejects a private endpoint connection.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void approvesOrRejectsAPrivateEndpointConnection(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .defineRemotePrivateEndpointConnectionArmResource("fa38656c-034e-43d8-adce-fe06ce039c98")
+ .withExistingHostingEnvironment("test-rg", "test-ase")
+ .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("Approved")
+ .withDescription("Approved by johndoe@company.com"))
+ .create();
+ }
+}
+```
+
+### AppServiceEnvironments_ChangeVnet
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.VirtualNetworkProfile;
+
+/**
+ * Samples for AppServiceEnvironments ChangeVnet.
+ */
+public final class AppServiceEnvironmentsChangeVnetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ChangeVnet.json
+ */
+ /**
+ * Sample code: Move an App Service Environment to a different VNET.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void moveAnAppServiceEnvironmentToADifferentVNET(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .changeVnet("test-rg", "test-ase", new VirtualNetworkProfile().withId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.VirtualNetworkProfile;
+
+/**
+ * Samples for AppServiceEnvironments CreateOrUpdate.
+ */
+public final class AppServiceEnvironmentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or update an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createOrUpdateAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .define("test-ase")
+ .withRegion("South Central US")
+ .withExistingResourceGroup("test-rg")
+ .withKind("Asev3")
+ .withVirtualNetwork(new VirtualNetworkProfile().withId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/delegated"))
+ .create();
+ }
+}
+```
+
+### AppServiceEnvironments_CreateOrUpdateMultiRolePool
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.WorkerPoolResourceInner;
+
+/**
+ * Samples for AppServiceEnvironments CreateOrUpdateMultiRolePool.
+ */
+public final class AppServiceEnvironmentsCreateOrUpdateMultiRolePoolSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json
+ */
+ /**
+ * Sample code: Create or update a multi-role pool.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ createOrUpdateAMultiRolePool(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .createOrUpdateMultiRolePool("test-rg", "test-ase",
+ new WorkerPoolResourceInner().withWorkerSize("Medium").withWorkerCount(3),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_CreateOrUpdateWorkerPool
+
+```java
+/**
+ * Samples for AppServiceEnvironments CreateOrUpdateWorkerPool.
+ */
+public final class AppServiceEnvironmentsCreateOrUpdateWorkerPoolSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json
+ */
+ /**
+ * Sample code: Get properties of a worker pool.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getPropertiesOfAWorkerPool(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .defineWorkerPool("0")
+ .withExistingHostingEnvironment("test-rg", "test-ase")
+ .withWorkerSize("Small")
+ .withWorkerCount(3)
+ .create();
+ }
+}
+```
+
+### AppServiceEnvironments_Delete
+
+```java
+/**
+ * Samples for AppServiceEnvironments Delete.
+ */
+public final class AppServiceEnvironmentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Delete.json
+ */
+ /**
+ * Sample code: Delete an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deleteAnAppServiceEnvironment(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().delete("test-rg", "test-ase", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_DeleteAseCustomDnsSuffixConfiguration
+
+```java
+/**
+ * Samples for AppServiceEnvironments DeleteAseCustomDnsSuffixConfiguration.
+ */
+public final class AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteAseCustomDnsSuffixConfiguration.json
+ */
+ /**
+ * Sample code: Delete ASE custom DNS suffix configuration.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteASECustomDNSSuffixConfiguration(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .deleteAseCustomDnsSuffixConfigurationWithResponse("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_DeletePrivateEndpointConnection
+
+```java
+/**
+ * Samples for AppServiceEnvironments DeletePrivateEndpointConnection.
+ */
+public final class AppServiceEnvironmentsDeletePrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_DeletePrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: Deletes a private endpoint connection.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deletesAPrivateEndpointConnection(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .deletePrivateEndpointConnection("test-rg", "test-ase", "fa38656c-034e-43d8-adce-fe06ce039c98",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetAseCustomDnsSuffixConfiguration
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetAseCustomDnsSuffixConfiguration.
+ */
+public final class AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetAseCustomDnsSuffixConfiguration.json
+ */
+ /**
+ * Sample code: Get ASE custom DNS suffix configuration.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getASECustomDNSSuffixConfiguration(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getAseCustomDnsSuffixConfigurationWithResponse("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetAseV3NetworkingConfiguration
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetAseV3NetworkingConfiguration.
+ */
+public final class AppServiceEnvironmentsGetAseV3NetworkingConfigurationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_GetAseV3NetworkingConfiguration.json
+ */
+ /**
+ * Sample code: Get networking configuration of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getNetworkingConfigurationOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getAseV3NetworkingConfigurationWithResponse("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetByResourceGroup
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetByResourceGroup.
+ */
+public final class AppServiceEnvironmentsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Get.json
+ */
+ /**
+ * Sample code: Get the properties of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getThePropertiesOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getByResourceGroupWithResponse("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetDiagnosticsItem
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetDiagnosticsItem.
+ */
+public final class AppServiceEnvironmentsGetDiagnosticsItemSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_GetDiagnosticsItem.json
+ */
+ /**
+ * Sample code: Get a diagnostics item for an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getADiagnosticsItemForAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getDiagnosticsItemWithResponse("test-rg", "test-ase", "test-diagnostic", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetInboundNetworkDependenciesEndpoints
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetInboundNetworkDependenciesEndpoints.
+ */
+public final class AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetInboundNetworkDependenciesEndpoints.json
+ */
+ /**
+ * Sample code: Get the network endpoints of all inbound dependencies of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getTheNetworkEndpointsOfAllInboundDependenciesOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getInboundNetworkDependenciesEndpoints("Sample-WestUSResourceGroup", "SampleAse",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetMultiRolePool
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetMultiRolePool.
+ */
+public final class AppServiceEnvironmentsGetMultiRolePoolSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_GetMultiRolePool.json
+ */
+ /**
+ * Sample code: Get properties of a multi-role pool.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getPropertiesOfAMultiRolePool(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getMultiRolePoolWithResponse("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetOutboundNetworkDependenciesEndpoints
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetOutboundNetworkDependenciesEndpoints.
+ */
+public final class AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetOutboundNetworkDependenciesEndpoints.json
+ */
+ /**
+ * Sample code: Get the network endpoints of all outbound dependencies of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getTheNetworkEndpointsOfAllOutboundDependenciesOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getOutboundNetworkDependenciesEndpoints("Sample-WestUSResourceGroup", "SampleAse",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetPrivateEndpointConnection
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetPrivateEndpointConnection.
+ */
+public final class AppServiceEnvironmentsGetPrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: Gets a private endpoint connection.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getsAPrivateEndpointConnection(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getPrivateEndpointConnectionWithResponse("test-rg", "test-ase", "fa38656c-034e-43d8-adce-fe06ce039c98",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetPrivateEndpointConnectionList
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetPrivateEndpointConnectionList.
+ */
+public final class AppServiceEnvironmentsGetPrivateEndpointConnectionListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_GetPrivateEndpointConnectionList.json
+ */
+ /**
+ * Sample code: Gets the list of private endpoints associated with a hosting environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getsTheListOfPrivateEndpointsAssociatedWithAHostingEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getPrivateEndpointConnectionList("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetPrivateLinkResources
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetPrivateLinkResources.
+ */
+public final class AppServiceEnvironmentsGetPrivateLinkResourcesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_GetPrivateLinkResources.json
+ */
+ /**
+ * Sample code: Gets the private link resources.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getsThePrivateLinkResources(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getPrivateLinkResourcesWithResponse("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetVipInfo
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetVipInfo.
+ */
+public final class AppServiceEnvironmentsGetVipInfoSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_GetVipInfo.json
+ */
+ /**
+ * Sample code: Get IP addresses assigned to an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getIPAddressesAssignedToAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getVipInfoWithResponse("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetWorkerPool
+
+```java
+/**
+ * Samples for AppServiceEnvironments GetWorkerPool.
+ */
+public final class AppServiceEnvironmentsGetWorkerPoolSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_GetWorkerPool.json
+ */
+ /**
+ * Sample code: Get properties of a worker pool.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getPropertiesOfAWorkerPool(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .getWorkerPoolWithResponse("test-rg", "test-ase", "workerPool1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_List
+
+```java
+/**
+ * Samples for AppServiceEnvironments List.
+ */
+public final class AppServiceEnvironmentsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_List.json
+ */
+ /**
+ * Sample code: Get all App Service Environments for a subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAllAppServiceEnvironmentsForASubscription(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListAppServicePlans
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListAppServicePlans.
+ */
+public final class AppServiceEnvironmentsListAppServicePlansSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListAppServicePlans.json
+ */
+ /**
+ * Sample code: Get all App Service plans in an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAllAppServicePlansInAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().listAppServicePlans("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListByResourceGroup
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListByResourceGroup.
+ */
+public final class AppServiceEnvironmentsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Get all App Service Environments in a resource group.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAllAppServiceEnvironmentsInAResourceGroup(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListCapacities
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListCapacities.
+ */
+public final class AppServiceEnvironmentsListCapacitiesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListCapacities.json
+ */
+ /**
+ * Sample code: Get the used, available, and total worker capacity an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getTheUsedAvailableAndTotalWorkerCapacityAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().listCapacities("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListDiagnostics
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListDiagnostics.
+ */
+public final class AppServiceEnvironmentsListDiagnosticsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListDiagnostics.json
+ */
+ /**
+ * Sample code: Get diagnostic information for an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDiagnosticInformationForAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .listDiagnosticsWithResponse("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListMultiRoleMetricDefinitions
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListMultiRoleMetricDefinitions.
+ */
+public final class AppServiceEnvironmentsListMultiRoleMetricDefinitionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListMultiRoleMetricDefinitions.json
+ */
+ /**
+ * Sample code: Get metric definitions for a multi-role pool of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getMetricDefinitionsForAMultiRolePoolOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .listMultiRoleMetricDefinitions("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListMultiRolePoolInstanceMetricDefinitions
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListMultiRolePoolInstanceMetricDefinitions.
+ */
+public final class AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListMultiRolePoolInstanceMetricDefinitions.json
+ */
+ /**
+ * Sample code: Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getMetricDefinitionsForASpecificInstanceOfAMultiRolePoolOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .listMultiRolePoolInstanceMetricDefinitions("test-rg", "test-ase", "10.7.1.8",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListMultiRolePoolSkus
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListMultiRolePoolSkus.
+ */
+public final class AppServiceEnvironmentsListMultiRolePoolSkusSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListMultiRolePoolSkus.json
+ */
+ /**
+ * Sample code: Get available SKUs for scaling a multi-role pool.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAvailableSKUsForScalingAMultiRolePool(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().listMultiRolePoolSkus("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListMultiRolePools
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListMultiRolePools.
+ */
+public final class AppServiceEnvironmentsListMultiRolePoolsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListMultiRolePools.json
+ */
+ /**
+ * Sample code: Get all multi-role pools.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAllMultiRolePools(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().listMultiRolePools("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListMultiRoleUsages
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListMultiRoleUsages.
+ */
+public final class AppServiceEnvironmentsListMultiRoleUsagesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListMultiRoleUsages.json
+ */
+ /**
+ * Sample code: Get usage metrics for a multi-role pool of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getUsageMetricsForAMultiRolePoolOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().listMultiRoleUsages("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListOperations
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListOperations.
+ */
+public final class AppServiceEnvironmentsListOperationsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListOperations.json
+ */
+ /**
+ * Sample code: List all currently running operations on the App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAllCurrentlyRunningOperationsOnTheAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .listOperationsWithResponse("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListUsages
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListUsages.
+ */
+public final class AppServiceEnvironmentsListUsagesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListUsages.json
+ */
+ /**
+ * Sample code: Get global usage metrics of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getGlobalUsageMetricsOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().listUsages("test-rg", "test-ase", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWebApps
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListWebApps.
+ */
+public final class AppServiceEnvironmentsListWebAppsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListWebApps.json
+ */
+ /**
+ * Sample code: Get all apps in an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAllAppsInAnAppServiceEnvironment(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().listWebApps("test-rg", "test-ase", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWebWorkerMetricDefinitions
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListWebWorkerMetricDefinitions.
+ */
+public final class AppServiceEnvironmentsListWebWorkerMetricDefinitionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListWebWorkerMetricDefinitions.json
+ */
+ /**
+ * Sample code: Get metric definitions for a worker pool of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getMetricDefinitionsForAWorkerPoolOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .listWebWorkerMetricDefinitions("test-rg", "test-ase", "0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWebWorkerUsages
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListWebWorkerUsages.
+ */
+public final class AppServiceEnvironmentsListWebWorkerUsagesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListWebWorkerUsages.json
+ */
+ /**
+ * Sample code: Get usage metrics for a worker pool of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getUsageMetricsForAWorkerPoolOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .listWebWorkerUsages("test-rg", "test-ase", "0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWorkerPoolInstanceMetricDefinitions
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListWorkerPoolInstanceMetricDefinitions.
+ */
+public final class AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListWorkerPoolInstanceMetricDefinitions.json
+ */
+ /**
+ * Sample code: Get metric definitions for a specific instance of a worker pool of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getMetricDefinitionsForASpecificInstanceOfAWorkerPoolOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .listWorkerPoolInstanceMetricDefinitions("test-rg", "test-ase", "0", "10.8.0.7",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWorkerPoolSkus
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListWorkerPoolSkus.
+ */
+public final class AppServiceEnvironmentsListWorkerPoolSkusSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListWorkerPoolSkus.json
+ */
+ /**
+ * Sample code: Get available SKUs for scaling a worker pool.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAvailableSKUsForScalingAWorkerPool(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .listWorkerPoolSkus("test-rg", "test-ase", "workerPool1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWorkerPools
+
+```java
+/**
+ * Samples for AppServiceEnvironments ListWorkerPools.
+ */
+public final class AppServiceEnvironmentsListWorkerPoolsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListWorkerPools.json
+ */
+ /**
+ * Sample code: Get all worker pools of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAllWorkerPoolsOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().listWorkerPools("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_Reboot
+
+```java
+/**
+ * Samples for AppServiceEnvironments Reboot.
+ */
+public final class AppServiceEnvironmentsRebootSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Reboot.json
+ */
+ /**
+ * Sample code: Reboot all machines in an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void rebootAllMachinesInAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().rebootWithResponse("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_Resume
+
+```java
+/**
+ * Samples for AppServiceEnvironments Resume.
+ */
+public final class AppServiceEnvironmentsResumeSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Resume.json
+ */
+ /**
+ * Sample code: Resume an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ resumeAnAppServiceEnvironment(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().resume("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_Suspend
+
+```java
+/**
+ * Samples for AppServiceEnvironments Suspend.
+ */
+public final class AppServiceEnvironmentsSuspendSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Suspend.json
+ */
+ /**
+ * Sample code: Suspend an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ suspendAnAppServiceEnvironment(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().suspend("test-rg", "test-ase", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_TestUpgradeAvailableNotification
+
+```java
+/**
+ * Samples for AppServiceEnvironments TestUpgradeAvailableNotification.
+ */
+public final class AppServiceEnvironmentsTestUpgradeAvailableNotificationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_TestUpgradeAvailableNotification.json
+ */
+ /**
+ * Sample code: Send a test notification that an upgrade is available for this App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void sendATestNotificationThatAnUpgradeIsAvailableForThisAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .testUpgradeAvailableNotificationWithResponse("rg", "SampleHostingEnvironment",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_Update
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.AppServiceEnvironmentResource;
+import com.azure.resourcemanager.appservice.generated.models.VirtualNetworkProfile;
+
+/**
+ * Samples for AppServiceEnvironments Update.
+ */
+public final class AppServiceEnvironmentsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Update.json
+ */
+ /**
+ * Sample code: Create or update an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createOrUpdateAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ AppServiceEnvironmentResource resource = manager.appServiceEnvironments()
+ .getByResourceGroupWithResponse("test-rg", "test-ase", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withVirtualNetwork(new VirtualNetworkProfile().withId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"))
+ .withFrontEndScaleFactor(20)
+ .apply();
+ }
+}
+```
+
+### AppServiceEnvironments_UpdateAseCustomDnsSuffixConfiguration
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.CustomDnsSuffixConfigurationInner;
+
+/**
+ * Samples for AppServiceEnvironments UpdateAseCustomDnsSuffixConfiguration.
+ */
+public final class AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateAseCustomDnsSuffixConfiguration.json
+ */
+ /**
+ * Sample code: Update ASE custom DNS suffix configuration.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateASECustomDNSSuffixConfiguration(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .updateAseCustomDnsSuffixConfigurationWithResponse("test-rg", "test-ase",
+ new CustomDnsSuffixConfigurationInner().withDnsSuffix("contoso.com")
+ .withCertificateUrl("https://test-kv.vault.azure.net/secrets/contosocert")
+ .withKeyVaultReferenceIdentity("fakeTokenPlaceholder"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_UpdateAseNetworkingConfiguration
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.AseV3NetworkingConfigurationInner;
+
+/**
+ * Samples for AppServiceEnvironments UpdateAseNetworkingConfiguration.
+ */
+public final class AppServiceEnvironmentsUpdateAseNetworkingConfigurationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_UpdateAseNetworkingConfiguration.json
+ */
+ /**
+ * Sample code: Update networking configuration of an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateNetworkingConfigurationOfAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .updateAseNetworkingConfigurationWithResponse("test-rg", "test-ase",
+ new AseV3NetworkingConfigurationInner().withFtpEnabled(true).withRemoteDebugEnabled(true),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_UpdateMultiRolePool
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.WorkerPoolResourceInner;
+
+/**
+ * Samples for AppServiceEnvironments UpdateMultiRolePool.
+ */
+public final class AppServiceEnvironmentsUpdateMultiRolePoolSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json
+ */
+ /**
+ * Sample code: Create or update a multi-role pool.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ createOrUpdateAMultiRolePool(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments()
+ .updateMultiRolePoolWithResponse("test-rg", "test-ase",
+ new WorkerPoolResourceInner().withWorkerSize("Medium").withWorkerCount(3),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_UpdateWorkerPool
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.WorkerPoolResource;
+
+/**
+ * Samples for AppServiceEnvironments UpdateWorkerPool.
+ */
+public final class AppServiceEnvironmentsUpdateWorkerPoolSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json
+ */
+ /**
+ * Sample code: Get properties of a worker pool.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getPropertiesOfAWorkerPool(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ WorkerPoolResource resource = manager.appServiceEnvironments()
+ .getWorkerPoolWithResponse("test-rg", "test-ase", "0", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withWorkerSize("Small").withWorkerCount(3).apply();
+ }
+}
+```
+
+### AppServiceEnvironments_Upgrade
+
+```java
+/**
+ * Samples for AppServiceEnvironments Upgrade.
+ */
+public final class AppServiceEnvironmentsUpgradeSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Upgrade.json
+ */
+ /**
+ * Sample code: Initiate an upgrade on an App Service Environment.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void initiateAnUpgradeOnAnAppServiceEnvironment(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServiceEnvironments().upgrade("rg", "SampleHostingEnvironment", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServicePlans_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.SkuDescription;
+
+/**
+ * Samples for AppServicePlans CreateOrUpdate.
+ */
+public final class AppServicePlansCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateAppServicePlan.json
+ */
+ /**
+ * Sample code: Create Or Update App Service plan.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ createOrUpdateAppServicePlan(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServicePlans()
+ .define("testsf6141")
+ .withRegion("East US")
+ .withExistingResourceGroup("testrg123")
+ .withSku(
+ new SkuDescription().withName("P1").withTier("Premium").withSize("P1").withFamily("P").withCapacity(1))
+ .withKind("app")
+ .create();
+ }
+}
+```
+
+### AppServicePlans_Delete
+
+```java
+/**
+ * Samples for AppServicePlans Delete.
+ */
+public final class AppServicePlansDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteAppServicePlan.json
+ */
+ /**
+ * Sample code: Delete App Service plan.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteAppServicePlan(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServicePlans()
+ .deleteByResourceGroupWithResponse("testrg123", "testsf6141", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServicePlans_GetByResourceGroup
+
+```java
+/**
+ * Samples for AppServicePlans GetByResourceGroup.
+ */
+public final class AppServicePlansGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetAppServicePlan.json
+ */
+ /**
+ * Sample code: Get App Service plan.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppServicePlan(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServicePlans()
+ .getByResourceGroupWithResponse("testrg123", "testsf6141", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServicePlans_List
+
+```java
+/**
+ * Samples for AppServicePlans List.
+ */
+public final class AppServicePlansListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAppServicePlans.json
+ */
+ /**
+ * Sample code: List App Service plans.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppServicePlans(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServicePlans().list(null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServicePlans_ListByResourceGroup
+
+```java
+/**
+ * Samples for AppServicePlans ListByResourceGroup.
+ */
+public final class AppServicePlansListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAppServicePlansByResourceGroup.json
+ */
+ /**
+ * Sample code: List App Service plans by resource group.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listAppServicePlansByResourceGroup(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.appServicePlans().listByResourceGroup("testrg123", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AppServicePlans_Update
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.AppServicePlan;
+
+/**
+ * Samples for AppServicePlans Update.
+ */
+public final class AppServicePlansUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PatchAppServicePlan.json
+ */
+ /**
+ * Sample code: Patch Service plan.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void patchServicePlan(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ AppServicePlan resource = manager.appServicePlans()
+ .getByResourceGroupWithResponse("testrg123", "testsf6141", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withKind("app").apply();
+ }
+}
+```
+
+### CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse
+
+```java
+
+/**
+ * Samples for CertificateOrdersDiagnostics GetAppServiceCertificateOrderDetectorResponse.
+ */
+public final class CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/Diagnostics_GetAppServiceCertificateOrderDetectorResponse.json
+ */
+ /**
+ * Sample code: Get app service certificate order detector response.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppServiceCertificateOrderDetectorResponse(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.certificateOrdersDiagnostics()
+ .getAppServiceCertificateOrderDetectorResponseWithResponse("Sample-WestUSResourceGroup",
+ "SampleCertificateOrderName", "AutoRenewStatus", null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CertificateOrdersDiagnostics_ListAppServiceCertificateOrderDetectorResponse
+
+```java
+/**
+ * Samples for CertificateOrdersDiagnostics ListAppServiceCertificateOrderDetectorResponse.
+ */
+public final class CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/Diagnostics_ListAppServiceCertificateOrderDetectorResponse.json
+ */
+ /**
+ * Sample code: List app service certificate detector response.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppServiceCertificateDetectorResponse(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.certificateOrdersDiagnostics()
+ .listAppServiceCertificateOrderDetectorResponse("Sample-WestUSResourceGroup", "SampleCertificateOrderName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CertificateRegistrationProvider_ListOperations
+
+```java
+/**
+ * Samples for CertificateRegistrationProvider ListOperations.
+ */
+public final class CertificateRegistrationProviderListOperationsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ListOperations.json
+ */
+ /**
+ * Sample code: List operations.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listOperations(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.certificateRegistrationProviders().listOperations(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Certificates_CreateOrUpdate
+
+```java
+import java.util.Arrays;
+
+/**
+ * Samples for Certificates CreateOrUpdate.
+ */
+public final class CertificatesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateCertificate.json
+ */
+ /**
+ * Sample code: Create Or Update Certificate.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ createOrUpdateCertificate(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.certificates()
+ .define("testc6282")
+ .withRegion("East US")
+ .withExistingResourceGroup("testrg123")
+ .withPassword("")
+ .withHostNames(Arrays.asList("ServerCert"))
+ .create();
+ }
+}
+```
+
+### Certificates_Delete
+
+```java
+/**
+ * Samples for Certificates Delete.
+ */
+public final class CertificatesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteCertificate.json
+ */
+ /**
+ * Sample code: Delete Certificate.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteCertificate(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.certificates()
+ .deleteByResourceGroupWithResponse("testrg123", "testc6282", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Certificates_GetByResourceGroup
+
+```java
+/**
+ * Samples for Certificates GetByResourceGroup.
+ */
+public final class CertificatesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetCertificate.json
+ */
+ /**
+ * Sample code: Get Certificate.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getCertificate(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.certificates()
+ .getByResourceGroupWithResponse("testrg123", "testc6282", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Certificates_List
+
+```java
+/**
+ * Samples for Certificates List.
+ */
+public final class CertificatesListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListCertificates.json
+ */
+ /**
+ * Sample code: List Certificates for subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listCertificatesForSubscription(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.certificates().list(null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Certificates_ListByResourceGroup
+
+```java
+/**
+ * Samples for Certificates ListByResourceGroup.
+ */
+public final class CertificatesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListCertificatesByResourceGroup.json
+ */
+ /**
+ * Sample code: List Certificates by resource group.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listCertificatesByResourceGroup(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.certificates().listByResourceGroup("testrg123", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Certificates_Update
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.Certificate;
+
+/**
+ * Samples for Certificates Update.
+ */
+public final class CertificatesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PatchCertificate.json
+ */
+ /**
+ * Sample code: Patch Certificate.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void patchCertificate(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ Certificate resource = manager.certificates()
+ .getByResourceGroupWithResponse("testrg123", "testc6282", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().apply();
+ }
+}
+```
+
+### ContainerApps_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.Configuration;
+import com.azure.resourcemanager.appservice.generated.models.Container;
+import com.azure.resourcemanager.appservice.generated.models.CustomScaleRule;
+import com.azure.resourcemanager.appservice.generated.models.Dapr;
+import com.azure.resourcemanager.appservice.generated.models.Ingress;
+import com.azure.resourcemanager.appservice.generated.models.Scale;
+import com.azure.resourcemanager.appservice.generated.models.ScaleRule;
+import com.azure.resourcemanager.appservice.generated.models.Template;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ContainerApps CreateOrUpdate.
+ */
+public final class ContainerAppsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateContainerApp.json
+ */
+ /**
+ * Sample code: Create or Update Container App.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ createOrUpdateContainerApp(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.containerApps()
+ .define("testcontainerApp0")
+ .withRegion("East US")
+ .withExistingResourceGroup("rg")
+ .withKind("containerApp")
+ .withKubeEnvironmentId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/kubeEnvironments/demokube")
+ .withConfiguration(new Configuration().withIngress(new Ingress().withExternal(true).withTargetPort(3000)))
+ .withTemplate(
+ new Template()
+ .withContainers(Arrays
+ .asList(new Container().withImage("repo/testcontainerApp0:v1").withName("testcontainerApp0")))
+ .withScale(new Scale().withMinReplicas(1)
+ .withMaxReplicas(5)
+ .withRules(Arrays.asList(new ScaleRule().withName("httpscalingrule")
+ .withCustom(new CustomScaleRule().withType("http")
+ .withMetadata(mapOf("concurrentRequests", "50"))))))
+ .withDapr(new Dapr().withEnabled(true).withAppPort(3000)))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ContainerApps_Delete
+
+```java
+/**
+ * Samples for ContainerApps Delete.
+ */
+public final class ContainerAppsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteContainerApp.json
+ */
+ /**
+ * Sample code: Delete Container App.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteContainerApp(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.containerApps().delete("rg", "testWorkerApp0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerApps_GetByResourceGroup
+
+```java
+/**
+ * Samples for ContainerApps GetByResourceGroup.
+ */
+public final class ContainerAppsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetContainerApp.json
+ */
+ /**
+ * Sample code: Get Container App.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getContainerApp(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.containerApps()
+ .getByResourceGroupWithResponse("rg", "testcontainerApp0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerApps_List
+
+```java
+/**
+ * Samples for ContainerApps List.
+ */
+public final class ContainerAppsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListContainerAppsBySubscription.json
+ */
+ /**
+ * Sample code: List Container Apps by resource group.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listContainerAppsByResourceGroup(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.containerApps().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerApps_ListByResourceGroup
+
+```java
+/**
+ * Samples for ContainerApps ListByResourceGroup.
+ */
+public final class ContainerAppsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListContainerAppsByResourceGroup.json
+ */
+ /**
+ * Sample code: List Container Apps by resource group.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listContainerAppsByResourceGroup(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.containerApps().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerApps_ListSecrets
+
+```java
+/**
+ * Samples for ContainerApps ListSecrets.
+ */
+public final class ContainerAppsListSecretsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListContainerAppSecrets.json
+ */
+ /**
+ * Sample code: List Container Apps Secrets.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listContainerAppsSecrets(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.containerApps().listSecretsWithResponse("testcontainerApp0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_ActivateRevision
+
+```java
+/**
+ * Samples for ContainerAppsRevisions ActivateRevision.
+ */
+public final class ContainerAppsRevisionsActivateRevisionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ActivateRevision.json
+ */
+ /**
+ * Sample code: Activate Container App's revision.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ activateContainerAppSRevision(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.containerAppsRevisions()
+ .activateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_DeactivateRevision
+
+```java
+/**
+ * Samples for ContainerAppsRevisions DeactivateRevision.
+ */
+public final class ContainerAppsRevisionsDeactivateRevisionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeactivateRevision.json
+ */
+ /**
+ * Sample code: Deactivate Container App's revision.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deactivateContainerAppSRevision(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.containerAppsRevisions()
+ .deactivateRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_GetRevision
+
+```java
+/**
+ * Samples for ContainerAppsRevisions GetRevision.
+ */
+public final class ContainerAppsRevisionsGetRevisionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetRevision.json
+ */
+ /**
+ * Sample code: Get Container App's revision.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getContainerAppSRevision(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.containerAppsRevisions()
+ .getRevisionWithResponse("rg", "testcontainerApp0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_ListRevisions
+
+```java
+/**
+ * Samples for ContainerAppsRevisions ListRevisions.
+ */
+public final class ContainerAppsRevisionsListRevisionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListRevisions.json
+ */
+ /**
+ * Sample code: List Container App's revisions.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listContainerAppSRevisions(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.containerAppsRevisions().listRevisions("rg", "testcontainerApp0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_RestartRevision
+
+```java
+/**
+ * Samples for ContainerAppsRevisions RestartRevision.
+ */
+public final class ContainerAppsRevisionsRestartRevisionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/RestartRevision.json
+ */
+ /**
+ * Sample code: Restart Container App's revision.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ restartContainerAppSRevision(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.containerAppsRevisions()
+ .restartRevisionWithResponse("rg", "testStaticSite0", "testcontainerApp0-pjxhsye",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeletedWebApps_GetDeletedWebAppByLocation
+
+```java
+/**
+ * Samples for DeletedWebApps GetDeletedWebAppByLocation.
+ */
+public final class DeletedWebAppsGetDeletedWebAppByLocationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetDeletedWebAppByLocation.json
+ */
+ /**
+ * Sample code: Get Deleted Web App by Location.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getDeletedWebAppByLocation(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.deletedWebApps()
+ .getDeletedWebAppByLocationWithResponse("West US 2", "9", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DeletedWebApps_ListByLocation
+
+```java
+/**
+ * Samples for DeletedWebApps ListByLocation.
+ */
+public final class DeletedWebAppsListByLocationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListDeletedWebAppsByLocation.json
+ */
+ /**
+ * Sample code: List Deleted Web App by Location.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listDeletedWebAppByLocation(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.deletedWebApps().listByLocation("West US 2", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ExecuteSiteAnalysis
+
+```java
+
+/**
+ * Samples for Diagnostics ExecuteSiteAnalysis.
+ */
+public final class DiagnosticsExecuteSiteAnalysisSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteAnalysis.json
+ */
+ /**
+ * Sample code: Execute site analysis.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void executeSiteAnalysis(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .executeSiteAnalysisWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ "apprestartanalyses", null, null, null, com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json
+ */
+ /**
+ * Sample code: Execute site slot analysis.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ executeSiteSlotAnalysis(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .executeSiteAnalysisWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ "apprestartanalyses", null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ExecuteSiteAnalysisSlot
+
+```java
+
+/**
+ * Samples for Diagnostics ExecuteSiteAnalysisSlot.
+ */
+public final class DiagnosticsExecuteSiteAnalysisSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteAnalysis.json
+ */
+ /**
+ * Sample code: Execute site analysis.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void executeSiteAnalysis(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .executeSiteAnalysisSlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ "apprestartanalyses", "Production", null, null, null, com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json
+ */
+ /**
+ * Sample code: Execute site slot analysis.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ executeSiteSlotAnalysis(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .executeSiteAnalysisSlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ "apprestartanalyses", "staging", null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ExecuteSiteDetector
+
+```java
+
+/**
+ * Samples for Diagnostics ExecuteSiteDetector.
+ */
+public final class DiagnosticsExecuteSiteDetectorSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteDetector.json
+ */
+ /**
+ * Sample code: Execute site detector.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void executeSiteDetector(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .executeSiteDetectorWithResponse("Sample-WestUSResourceGroup", "SampleApp", "sitecrashes", "availability",
+ null, null, null, com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json
+ */
+ /**
+ * Sample code: Execute site slot detector.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ executeSiteSlotDetector(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .executeSiteDetectorWithResponse("Sample-WestUSResourceGroup", "SampleApp", "sitecrashes", "availability",
+ null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ExecuteSiteDetectorSlot
+
+```java
+
+/**
+ * Samples for Diagnostics ExecuteSiteDetectorSlot.
+ */
+public final class DiagnosticsExecuteSiteDetectorSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteDetector.json
+ */
+ /**
+ * Sample code: Execute site detector.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void executeSiteDetector(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .executeSiteDetectorSlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "sitecrashes",
+ "availability", "Production", null, null, null, com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json
+ */
+ /**
+ * Sample code: Execute site slot detector.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ executeSiteSlotDetector(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .executeSiteDetectorSlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "sitecrashes",
+ "availability", "staging", null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetHostingEnvironmentDetectorResponse
+
+```java
+
+/**
+ * Samples for Diagnostics GetHostingEnvironmentDetectorResponse.
+ */
+public final class DiagnosticsGetHostingEnvironmentDetectorResponseSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json
+ */
+ /**
+ * Sample code: Get App Service Environment Detector Responses.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppServiceEnvironmentDetectorResponses(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getHostingEnvironmentDetectorResponseWithResponse("Sample-WestUSResourceGroup",
+ "SampleAppServiceEnvironment", "runtimeavailability", null, null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteAnalysis
+
+```java
+/**
+ * Samples for Diagnostics GetSiteAnalysis.
+ */
+public final class DiagnosticsGetSiteAnalysisSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteAnalysisSlot.json
+ */
+ /**
+ * Sample code: Get App Slot Analysis.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppSlotAnalysis(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteAnalysisWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability", "appanalysis",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteAnalysis.json
+ */
+ /**
+ * Sample code: Get App Analysis.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppAnalysis(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteAnalysisWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability", "appanalysis",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteAnalysisSlot
+
+```java
+/**
+ * Samples for Diagnostics GetSiteAnalysisSlot.
+ */
+public final class DiagnosticsGetSiteAnalysisSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteAnalysisSlot.json
+ */
+ /**
+ * Sample code: Get App Slot Analysis.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppSlotAnalysis(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteAnalysisSlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability", "appanalysis",
+ "staging", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteAnalysis.json
+ */
+ /**
+ * Sample code: Get App Analysis.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppAnalysis(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteAnalysisSlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability", "appanalysis",
+ "Production", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDetector
+
+```java
+/**
+ * Samples for Diagnostics GetSiteDetector.
+ */
+public final class DiagnosticsGetSiteDetectorSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetector.json
+ */
+ /**
+ * Sample code: Get App Detector.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppDetector(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDetectorWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability", "sitecrashes",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetectorSlot.json
+ */
+ /**
+ * Sample code: Get App Slot Detector.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppSlotDetector(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDetectorWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability", "sitecrashes",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDetectorResponse
+
+```java
+
+/**
+ * Samples for Diagnostics GetSiteDetectorResponse.
+ */
+public final class DiagnosticsGetSiteDetectorResponseSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json
+ */
+ /**
+ * Sample code: Get App Slot Detector Response.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppSlotDetectorResponse(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDetectorResponseWithResponse("Sample-WestUSResourceGroup", "SampleApp", "runtimeavailability", null,
+ null, null, com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetectorResponse.json
+ */
+ /**
+ * Sample code: Get App Detector Response.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppDetectorResponse(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDetectorResponseWithResponse("Sample-WestUSResourceGroup", "SampleApp", "runtimeavailability", null,
+ null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDetectorResponseSlot
+
+```java
+
+/**
+ * Samples for Diagnostics GetSiteDetectorResponseSlot.
+ */
+public final class DiagnosticsGetSiteDetectorResponseSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json
+ */
+ /**
+ * Sample code: Get App Slot Detector Response.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppSlotDetectorResponse(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDetectorResponseSlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "runtimeavailability",
+ "staging", null, null, null, com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetectorResponse.json
+ */
+ /**
+ * Sample code: Get App Detector Response.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppDetectorResponse(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDetectorResponseSlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "runtimeavailability",
+ "staging", null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDetectorSlot
+
+```java
+/**
+ * Samples for Diagnostics GetSiteDetectorSlot.
+ */
+public final class DiagnosticsGetSiteDetectorSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetector.json
+ */
+ /**
+ * Sample code: Get App Detector.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppDetector(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDetectorSlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability", "sitecrashes",
+ "Production", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetectorSlot.json
+ */
+ /**
+ * Sample code: Get App Slot Detector.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppSlotDetector(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDetectorSlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability", "sitecrashes",
+ "staging", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDiagnosticCategory
+
+```java
+/**
+ * Samples for Diagnostics GetSiteDiagnosticCategory.
+ */
+public final class DiagnosticsGetSiteDiagnosticCategorySamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDiagnosticCategory.json
+ */
+ /**
+ * Sample code: Get App Diagnostic Category.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppDiagnosticCategory(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDiagnosticCategoryWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json
+ */
+ /**
+ * Sample code: Get App Slot Diagnostic Category.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppSlotDiagnosticCategory(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDiagnosticCategoryWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDiagnosticCategorySlot
+
+```java
+/**
+ * Samples for Diagnostics GetSiteDiagnosticCategorySlot.
+ */
+public final class DiagnosticsGetSiteDiagnosticCategorySlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDiagnosticCategory.json
+ */
+ /**
+ * Sample code: Get App Diagnostic Category.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppDiagnosticCategory(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDiagnosticCategorySlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ "Production", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json
+ */
+ /**
+ * Sample code: Get App Slot Diagnostic Category.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppSlotDiagnosticCategory(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .getSiteDiagnosticCategorySlotWithResponse("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ "staging", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListHostingEnvironmentDetectorResponses
+
+```java
+/**
+ * Samples for Diagnostics ListHostingEnvironmentDetectorResponses.
+ */
+public final class DiagnosticsListHostingEnvironmentDetectorResponsesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListHostingEnvironmentDetectorResponses.json
+ */
+ /**
+ * Sample code: Get App Service Environment Detector Responses.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAppServiceEnvironmentDetectorResponses(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listHostingEnvironmentDetectorResponses("Sample-WestUSResourceGroup", "SampleAppServiceEnvironment",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteAnalyses
+
+```java
+/**
+ * Samples for Diagnostics ListSiteAnalyses.
+ */
+public final class DiagnosticsListSiteAnalysesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteAnalyses.json
+ */
+ /**
+ * Sample code: List App Analyses.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppAnalyses(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteAnalyses("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteAnalysesSlot.json
+ */
+ /**
+ * Sample code: List App Slot Analyses.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppSlotAnalyses(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteAnalyses("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteAnalysesSlot
+
+```java
+/**
+ * Samples for Diagnostics ListSiteAnalysesSlot.
+ */
+public final class DiagnosticsListSiteAnalysesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteAnalyses.json
+ */
+ /**
+ * Sample code: List App Analyses.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppAnalyses(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteAnalysesSlot("Sample-WestUSResourceGroup", "SampleApp", "availability", "Production",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteAnalysesSlot.json
+ */
+ /**
+ * Sample code: List App Slot Analyses.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppSlotAnalyses(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteAnalysesSlot("Sample-WestUSResourceGroup", "SampleApp", "availability", "staging",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDetectorResponses
+
+```java
+/**
+ * Samples for Diagnostics ListSiteDetectorResponses.
+ */
+public final class DiagnosticsListSiteDetectorResponsesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json
+ */
+ /**
+ * Sample code: Get App Slot Detector Responses.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppSlotDetectorResponses(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDetectorResponses("Sample-WestUSResourceGroup", "SampleApp", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponses.json
+ */
+ /**
+ * Sample code: Get App Detector Responses.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppDetectorResponses(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDetectorResponses("Sample-WestUSResourceGroup", "SampleApp", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDetectorResponsesSlot
+
+```java
+/**
+ * Samples for Diagnostics ListSiteDetectorResponsesSlot.
+ */
+public final class DiagnosticsListSiteDetectorResponsesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json
+ */
+ /**
+ * Sample code: Get App Slot Detector Responses.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppSlotDetectorResponses(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDetectorResponsesSlot("Sample-WestUSResourceGroup", "SampleApp", "staging",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponses.json
+ */
+ /**
+ * Sample code: Get App Detector Responses.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppDetectorResponses(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDetectorResponsesSlot("Sample-WestUSResourceGroup", "SampleApp", "staging",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDetectors
+
+```java
+/**
+ * Samples for Diagnostics ListSiteDetectors.
+ */
+public final class DiagnosticsListSiteDetectorsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectors.json
+ */
+ /**
+ * Sample code: List App Detectors.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppDetectors(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDetectors("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorsSlot.json
+ */
+ /**
+ * Sample code: List App Slot Detectors.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppSlotDetectors(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDetectors("Sample-WestUSResourceGroup", "SampleApp", "availability",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDetectorsSlot
+
+```java
+/**
+ * Samples for Diagnostics ListSiteDetectorsSlot.
+ */
+public final class DiagnosticsListSiteDetectorsSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectors.json
+ */
+ /**
+ * Sample code: List App Detectors.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppDetectors(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDetectorsSlot("Sample-WestUSResourceGroup", "SampleApp", "availability", "Production",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorsSlot.json
+ */
+ /**
+ * Sample code: List App Slot Detectors.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppSlotDetectors(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDetectorsSlot("Sample-WestUSResourceGroup", "SampleApp", "availability", "staging",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDiagnosticCategories
+
+```java
+/**
+ * Samples for Diagnostics ListSiteDiagnosticCategories.
+ */
+public final class DiagnosticsListSiteDiagnosticCategoriesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json
+ */
+ /**
+ * Sample code: List App Slot Diagnostic Categories.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listAppSlotDiagnosticCategories(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDiagnosticCategories("Sample-WestUSResourceGroup", "SampleApp", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDiagnosticCategories.json
+ */
+ /**
+ * Sample code: List App Diagnostic Categories.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listAppDiagnosticCategories(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDiagnosticCategories("Sample-WestUSResourceGroup", "SampleApp", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDiagnosticCategoriesSlot
+
+```java
+/**
+ * Samples for Diagnostics ListSiteDiagnosticCategoriesSlot.
+ */
+public final class DiagnosticsListSiteDiagnosticCategoriesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json
+ */
+ /**
+ * Sample code: List App Slot Diagnostic Categories.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listAppSlotDiagnosticCategories(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDiagnosticCategoriesSlot("Sample-WestUSResourceGroup", "SampleApp", "staging",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDiagnosticCategories.json
+ */
+ /**
+ * Sample code: List App Diagnostic Categories.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listAppDiagnosticCategories(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.diagnostics()
+ .listSiteDiagnosticCategoriesSlot("Sample-WestUSResourceGroup", "SampleApp", "Production",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DomainRegistrationProvider_ListOperations
+
+```java
+/**
+ * Samples for DomainRegistrationProvider ListOperations.
+ */
+public final class DomainRegistrationProviderListOperationsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ListOperations.json
+ */
+ /**
+ * Sample code: List operations.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listOperations(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domainRegistrationProviders().listOperations(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_CheckAvailability
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.NameIdentifierInner;
+
+/**
+ * Samples for Domains CheckAvailability.
+ */
+public final class DomainsCheckAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/CheckDomainAvailability.json
+ */
+ /**
+ * Sample code: Check domain availability.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ checkDomainAvailability(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains()
+ .checkAvailabilityWithResponse(new NameIdentifierInner().withName("abcd.com"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.Address;
+import com.azure.resourcemanager.appservice.generated.models.Contact;
+import com.azure.resourcemanager.appservice.generated.models.DnsType;
+import com.azure.resourcemanager.appservice.generated.models.DomainPurchaseConsent;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Domains CreateOrUpdate.
+ */
+public final class DomainsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/CreateAppServiceDomain.json
+ */
+ /**
+ * Sample code: Create App Service Domain.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ createAppServiceDomain(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains()
+ .define("example.com")
+ .withRegion("global")
+ .withExistingResourceGroup("testrg123")
+ .withTags(mapOf())
+ .withContactAdmin(new Contact()
+ .withAddressMailing(new Address().withAddress1("3400 State St")
+ .withCity("Chicago")
+ .withCountry("United States")
+ .withPostalCode("fakeTokenPlaceholder")
+ .withState("IL"))
+ .withEmail("admin@email.com")
+ .withFax("1-245-534-2242")
+ .withJobTitle("Admin")
+ .withNameFirst("John")
+ .withNameLast("Doe")
+ .withNameMiddle("")
+ .withOrganization("Microsoft Inc.")
+ .withPhone("1-245-534-2242"))
+ .withContactBilling(new Contact()
+ .withAddressMailing(new Address().withAddress1("3400 State St")
+ .withCity("Chicago")
+ .withCountry("United States")
+ .withPostalCode("fakeTokenPlaceholder")
+ .withState("IL"))
+ .withEmail("billing@email.com")
+ .withFax("1-245-534-2242")
+ .withJobTitle("Billing")
+ .withNameFirst("John")
+ .withNameLast("Doe")
+ .withNameMiddle("")
+ .withOrganization("Microsoft Inc.")
+ .withPhone("1-245-534-2242"))
+ .withContactRegistrant(new Contact()
+ .withAddressMailing(new Address().withAddress1("3400 State St")
+ .withCity("Chicago")
+ .withCountry("United States")
+ .withPostalCode("fakeTokenPlaceholder")
+ .withState("IL"))
+ .withEmail("registrant@email.com")
+ .withFax("1-245-534-2242")
+ .withJobTitle("Registrant")
+ .withNameFirst("John")
+ .withNameLast("Doe")
+ .withNameMiddle("")
+ .withOrganization("Microsoft Inc.")
+ .withPhone("1-245-534-2242"))
+ .withContactTech(new Contact()
+ .withAddressMailing(new Address().withAddress1("3400 State St")
+ .withCity("Chicago")
+ .withCountry("United States")
+ .withPostalCode("fakeTokenPlaceholder")
+ .withState("IL"))
+ .withEmail("tech@email.com")
+ .withFax("1-245-534-2242")
+ .withJobTitle("Tech")
+ .withNameFirst("John")
+ .withNameLast("Doe")
+ .withNameMiddle("")
+ .withOrganization("Microsoft Inc.")
+ .withPhone("1-245-534-2242"))
+ .withPrivacy(false)
+ .withAutoRenew(true)
+ .withConsent(new DomainPurchaseConsent().withAgreementKeys(Arrays.asList("agreementKey1"))
+ .withAgreedBy("192.0.2.1")
+ .withAgreedAt(OffsetDateTime.parse("2021-09-10T19:30:53Z")))
+ .withDnsType(DnsType.DEFAULT_DOMAIN_REGISTRAR_DNS)
+ .withAuthCode("exampleAuthCode")
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Domains_CreateOrUpdateOwnershipIdentifier
+
+```java
+/**
+ * Samples for Domains CreateOrUpdateOwnershipIdentifier.
+ */
+public final class DomainsCreateOrUpdateOwnershipIdentifierSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/CreateAppServiceDomainOwnershipIdentifier.json
+ */
+ /**
+ * Sample code: Create App Service Domain OwnershipIdentifier.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createAppServiceDomainOwnershipIdentifier(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains()
+ .defineOwnershipIdentifier("SampleOwnershipId")
+ .withExistingDomain("testrg123", "example.com")
+ .withOwnershipId("SampleOwnershipId")
+ .create();
+ }
+}
+```
+
+### Domains_Delete
+
+```java
+/**
+ * Samples for Domains Delete.
+ */
+public final class DomainsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/DeleteAppServiceDomain.json
+ */
+ /**
+ * Sample code: Delete App Service Domain.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deleteAppServiceDomain(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains().deleteWithResponse("testrg123", "example.com", true, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_DeleteOwnershipIdentifier
+
+```java
+/**
+ * Samples for Domains DeleteOwnershipIdentifier.
+ */
+public final class DomainsDeleteOwnershipIdentifierSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/DeleteAppServiceDomainOwnershipIdentifier.json
+ */
+ /**
+ * Sample code: Delete App Service Domain Ownership Identifier.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteAppServiceDomainOwnershipIdentifier(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains()
+ .deleteOwnershipIdentifierWithResponse("testrg123", "example.com", "ownershipIdentifier",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_GetByResourceGroup
+
+```java
+/**
+ * Samples for Domains GetByResourceGroup.
+ */
+public final class DomainsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/GetDomain.json
+ */
+ /**
+ * Sample code: Get Domain.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDomain(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains().getByResourceGroupWithResponse("testrg123", "example.com", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_GetControlCenterSsoRequest
+
+```java
+/**
+ * Samples for Domains GetControlCenterSsoRequest.
+ */
+public final class DomainsGetControlCenterSsoRequestSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/GetDomainControlCenterSsoRequest.json
+ */
+ /**
+ * Sample code: Get Domain Control Center Sso Request.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getDomainControlCenterSsoRequest(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains().getControlCenterSsoRequestWithResponse(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_GetOwnershipIdentifier
+
+```java
+/**
+ * Samples for Domains GetOwnershipIdentifier.
+ */
+public final class DomainsGetOwnershipIdentifierSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/GetDomainOwnershipIdentifier.json
+ */
+ /**
+ * Sample code: Get Domain Ownership Identifier.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getDomainOwnershipIdentifier(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains()
+ .getOwnershipIdentifierWithResponse("testrg123", "example.com", "SampleOwnershipId",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_List
+
+```java
+/**
+ * Samples for Domains List.
+ */
+public final class DomainsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ListDomainsBySubscription.json
+ */
+ /**
+ * Sample code: List domains by subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listDomainsBySubscription(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_ListByResourceGroup
+
+```java
+/**
+ * Samples for Domains ListByResourceGroup.
+ */
+public final class DomainsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ListDomainsByResourceGroup.json
+ */
+ /**
+ * Sample code: List domains by resource group.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listDomainsByResourceGroup(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains().listByResourceGroup("testrg123", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_ListOwnershipIdentifiers
+
+```java
+/**
+ * Samples for Domains ListOwnershipIdentifiers.
+ */
+public final class DomainsListOwnershipIdentifiersSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ListDomainOwnershipIdentifiers.json
+ */
+ /**
+ * Sample code: List Domain Ownership Identifiers.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listDomainOwnershipIdentifiers(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains().listOwnershipIdentifiers("testrg123", "example.com", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_ListRecommendations
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.DomainRecommendationSearchParameters;
+
+/**
+ * Samples for Domains ListRecommendations.
+ */
+public final class DomainsListRecommendationsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ListDomainRecommendations.json
+ */
+ /**
+ * Sample code: List domain recommendations.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listDomainRecommendations(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains()
+ .listRecommendations(new DomainRecommendationSearchParameters().withKeywords("fakeTokenPlaceholder")
+ .withMaxDomainRecommendations(10), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_Renew
+
+```java
+/**
+ * Samples for Domains Renew.
+ */
+public final class DomainsRenewSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/RenewDomain.json
+ */
+ /**
+ * Sample code: Renew an existing domain.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void renewAnExistingDomain(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains().renewWithResponse("RG", "example.com", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_TransferOut
+
+```java
+/**
+ * Samples for Domains TransferOut.
+ */
+public final class DomainsTransferOutSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/TransferOutDomain.json
+ */
+ /**
+ * Sample code: Transfer out domain.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void transferOutDomain(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.domains().transferOutWithResponse("testrg123", "example.com", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Domains_Update
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.DnsType;
+import com.azure.resourcemanager.appservice.generated.models.Domain;
+
+/**
+ * Samples for Domains Update.
+ */
+public final class DomainsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/UpdateAppServiceDomain.json
+ */
+ /**
+ * Sample code: Update App Service Domain.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ updateAppServiceDomain(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ Domain resource = manager.domains()
+ .getByResourceGroupWithResponse("testrg123", "example.com", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withPrivacy(false)
+ .withAutoRenew(true)
+ .withDnsType(DnsType.DEFAULT_DOMAIN_REGISTRAR_DNS)
+ .apply();
+ }
+}
+```
+
+### Domains_UpdateOwnershipIdentifier
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.DomainOwnershipIdentifier;
+
+/**
+ * Samples for Domains UpdateOwnershipIdentifier.
+ */
+public final class DomainsUpdateOwnershipIdentifierSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/UpdateAppServiceDomainOwnershipIdentifier.json
+ */
+ /**
+ * Sample code: Update App Service Domain OwnershipIdentifier.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateAppServiceDomainOwnershipIdentifier(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ DomainOwnershipIdentifier resource = manager.domains()
+ .getOwnershipIdentifierWithResponse("testrg123", "example.com", "SampleOwnershipId",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withOwnershipId("SampleOwnershipId").apply();
+ }
+}
+```
+
+### GetUsagesInLocation_List
+
+```java
+/**
+ * Samples for GetUsagesInLocation List.
+ */
+public final class GetUsagesInLocationListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetUsagesInLocation.json
+ */
+ /**
+ * Sample code: Get usages in location for subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getUsagesInLocationForSubscription(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.getUsagesInLocations().list("West US", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Global_GetDeletedWebApp
+
+```java
+/**
+ * Samples for Global GetDeletedWebApp.
+ */
+public final class GlobalGetDeletedWebAppSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetDeletedWebApp.json
+ */
+ /**
+ * Sample code: Get Deleted Web App.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDeletedWebApp(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.globals().getDeletedWebAppWithResponse("9", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Global_GetDeletedWebAppSnapshots
+
+```java
+/**
+ * Samples for Global GetDeletedWebAppSnapshots.
+ */
+public final class GlobalGetDeletedWebAppSnapshotsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetDeletedWebAppSnapshots.json
+ */
+ /**
+ * Sample code: Get Deleted Web App Snapshots.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getDeletedWebAppSnapshots(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.globals().getDeletedWebAppSnapshotsWithResponse("9", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Global_GetSubscriptionOperationWithAsyncResponse
+
+```java
+/**
+ * Samples for Global GetSubscriptionOperationWithAsyncResponse.
+ */
+public final class GlobalGetSubscriptionOperationWithAsyncResponseSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSubscriptionOperationWithAsyncResponse.json
+ */
+ /**
+ * Sample code: Gets an operation in a subscription and given region.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getsAnOperationInASubscriptionAndGivenRegion(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.globals()
+ .getSubscriptionOperationWithAsyncResponseWithResponse("West US", "34adfa4f-cedf-4dc0-ba29-b6d1a69ab5d5",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### KubeEnvironments_CreateOrUpdate
+
+```java
+/**
+ * Samples for KubeEnvironments CreateOrUpdate.
+ */
+public final class KubeEnvironmentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create kube environments.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ createKubeEnvironments(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.kubeEnvironments()
+ .define("testkubeenv")
+ .withRegion("East US")
+ .withExistingResourceGroup("examplerg")
+ .withStaticIp("1.2.3.4")
+ .create();
+ }
+}
+```
+
+### KubeEnvironments_Delete
+
+```java
+/**
+ * Samples for KubeEnvironments Delete.
+ */
+public final class KubeEnvironmentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_Delete.json
+ */
+ /**
+ * Sample code: Delete kube environment by name.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deleteKubeEnvironmentByName(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.kubeEnvironments().delete("examplerg", "examplekenv", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### KubeEnvironments_GetByResourceGroup
+
+```java
+/**
+ * Samples for KubeEnvironments GetByResourceGroup.
+ */
+public final class KubeEnvironmentsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_Get.json
+ */
+ /**
+ * Sample code: Get kube environments by name.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getKubeEnvironmentsByName(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.kubeEnvironments()
+ .getByResourceGroupWithResponse("examplerg", "jlaw-demo1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### KubeEnvironments_List
+
+```java
+/**
+ * Samples for KubeEnvironments List.
+ */
+public final class KubeEnvironmentsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_ListBySubscription.json
+ */
+ /**
+ * Sample code: List kube environments by subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listKubeEnvironmentsBySubscription(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.kubeEnvironments().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### KubeEnvironments_ListByResourceGroup
+
+```java
+/**
+ * Samples for KubeEnvironments ListByResourceGroup.
+ */
+public final class KubeEnvironmentsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: List kube environments by resource group.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listKubeEnvironmentsByResourceGroup(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.kubeEnvironments().listByResourceGroup("examplerg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### KubeEnvironments_Update
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.KubeEnvironment;
+
+/**
+ * Samples for KubeEnvironments Update.
+ */
+public final class KubeEnvironmentsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_Update.json
+ */
+ /**
+ * Sample code: Update kube environments.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ updateKubeEnvironments(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ KubeEnvironment resource = manager.kubeEnvironments()
+ .getByResourceGroupWithResponse("examplerg", "testkubeenv", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().apply();
+ }
+}
+```
+
+### Provider_GetFunctionAppStacks
+
+```java
+
+/**
+ * Samples for Provider GetFunctionAppStacks.
+ */
+public final class ProviderGetFunctionAppStacksSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetFunctionAppStacks.json
+ */
+ /**
+ * Sample code: Get Function App Stacks.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getFunctionAppStacks(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.providers().getFunctionAppStacks(null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Provider_GetFunctionAppStacksForLocation
+
+```java
+
+/**
+ * Samples for Provider GetFunctionAppStacksForLocation.
+ */
+public final class ProviderGetFunctionAppStacksForLocationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetFunctionAppStacksForLocation.json
+ */
+ /**
+ * Sample code: Get Locations Function App Stacks.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getLocationsFunctionAppStacks(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.providers().getFunctionAppStacksForLocation("westus", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Provider_GetWebAppStacks
+
+```java
+
+/**
+ * Samples for Provider GetWebAppStacks.
+ */
+public final class ProviderGetWebAppStacksSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebAppStacks.json
+ */
+ /**
+ * Sample code: Get Web App Stacks.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getWebAppStacks(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.providers().getWebAppStacks(null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Provider_GetWebAppStacksForLocation
+
+```java
+
+/**
+ * Samples for Provider GetWebAppStacksForLocation.
+ */
+public final class ProviderGetWebAppStacksForLocationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebAppStacksForLocation.json
+ */
+ /**
+ * Sample code: Get Locations Web App Stacks.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getLocationsWebAppStacks(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.providers().getWebAppStacksForLocation("westus", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Provider_ListOperations
+
+```java
+/**
+ * Samples for Provider ListOperations.
+ */
+public final class ProviderListOperationsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListOperations.json
+ */
+ /**
+ * Sample code: List operations.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listOperations(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.providers().listOperations(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_GetBySite
+
+```java
+/**
+ * Samples for ResourceHealthMetadata GetBySite.
+ */
+public final class ResourceHealthMetadataGetBySiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetResourceHealthMetadataBySite.json
+ */
+ /**
+ * Sample code: Get ResourceHealthMetadata.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getResourceHealthMetadata(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.resourceHealthMetadatas()
+ .getBySiteWithResponse("Default-Web-NorthCentralUS", "newsiteinnewASE-NCUS",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_GetBySiteSlot
+
+```java
+/**
+ * Samples for ResourceHealthMetadata GetBySiteSlot.
+ */
+public final class ResourceHealthMetadataGetBySiteSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetResourceHealthMetadataBySite.json
+ */
+ /**
+ * Sample code: Get ResourceHealthMetadata.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getResourceHealthMetadata(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.resourceHealthMetadatas()
+ .getBySiteSlotWithResponse("Default-Web-NorthCentralUS", "newsiteinnewASE-NCUS", "Production",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_List
+
+```java
+/**
+ * Samples for ResourceHealthMetadata List.
+ */
+public final class ResourceHealthMetadataListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListResourceHealthMetadataBySubscription.json
+ */
+ /**
+ * Sample code: List ResourceHealthMetadata for a subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listResourceHealthMetadataForASubscription(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.resourceHealthMetadatas().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_ListByResourceGroup
+
+```java
+/**
+ * Samples for ResourceHealthMetadata ListByResourceGroup.
+ */
+public final class ResourceHealthMetadataListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListResourceHealthMetadataByResourceGroup.json
+ */
+ /**
+ * Sample code: List ResourceHealthMetadata for a resource group.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listResourceHealthMetadataForAResourceGroup(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.resourceHealthMetadatas()
+ .listByResourceGroup("Default-Web-NorthCentralUS", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_ListBySite
+
+```java
+/**
+ * Samples for ResourceHealthMetadata ListBySite.
+ */
+public final class ResourceHealthMetadataListBySiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListResourceHealthMetadataBySite.json
+ */
+ /**
+ * Sample code: List ResourceHealthMetadata for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listResourceHealthMetadataForASite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.resourceHealthMetadatas()
+ .listBySite("Default-Web-NorthCentralUS", "newsiteinnewASE-NCUS", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_ListBySiteSlot
+
+```java
+/**
+ * Samples for ResourceHealthMetadata ListBySiteSlot.
+ */
+public final class ResourceHealthMetadataListBySiteSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListResourceHealthMetadataBySite.json
+ */
+ /**
+ * Sample code: List ResourceHealthMetadata for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listResourceHealthMetadataForASite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.resourceHealthMetadatas()
+ .listBySiteSlot("Default-Web-NorthCentralUS", "newsiteinnewASE-NCUS", "Production",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ResourceProvider_ListAseRegions
+
+```java
+/**
+ * Samples for ResourceProvider ListAseRegions.
+ */
+public final class ResourceProviderListAseRegionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAseRegions.json
+ */
+ /**
+ * Sample code: List aseregions.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAseregions(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.resourceProviders().listAseRegions(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ResourceProvider_ListCustomHostnameSites
+
+```java
+/**
+ * Samples for ResourceProvider ListCustomHostnameSites.
+ */
+public final class ResourceProviderListCustomHostnameSitesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListCustomSpecificHostNameSites.json
+ */
+ /**
+ * Sample code: Get specific custom hostname under subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getSpecificCustomHostnameUnderSubscription(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.resourceProviders().listCustomHostnameSites("www.example.com", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListCustomHostNameSites.json
+ */
+ /**
+ * Sample code: Get custom hostnames under subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getCustomHostnamesUnderSubscription(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.resourceProviders().listCustomHostnameSites(null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ResourceProvider_VerifyHostingEnvironmentVnet
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.VnetParameters;
+
+/**
+ * Samples for ResourceProvider VerifyHostingEnvironmentVnet.
+ */
+public final class ResourceProviderVerifyHostingEnvironmentVnetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/VerifyHostingEnvironmentVnet.json
+ */
+ /**
+ * Sample code: VerifyHostingEnvironmentVnet.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ verifyHostingEnvironmentVnet(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.resourceProviders()
+ .verifyHostingEnvironmentVnetWithResponse(new VnetParameters().withVnetResourceGroup("vNet123rg")
+ .withVnetName("vNet123")
+ .withVnetSubnetName("vNet123SubNet"), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ApproveOrRejectPrivateEndpointConnection
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.RemotePrivateEndpointConnectionArmResourceInner;
+import com.azure.resourcemanager.appservice.generated.models.PrivateLinkConnectionState;
+
+/**
+ * Samples for StaticSites ApproveOrRejectPrivateEndpointConnection.
+ */
+public final class StaticSitesApproveOrRejectPrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ApproveRejectSitePrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: Approves or rejects a private endpoint connection for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void approvesOrRejectsAPrivateEndpointConnectionForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .approveOrRejectPrivateEndpointConnection("rg", "testSite", "connection",
+ new RemotePrivateEndpointConnectionArmResourceInner()
+ .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("Approved")
+ .withDescription("Approved by admin.")
+ .withActionsRequired("")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_CreateOrUpdateBasicAuth
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.BasicAuthName;
+
+/**
+ * Samples for StaticSites CreateOrUpdateBasicAuth.
+ */
+public final class StaticSitesCreateOrUpdateBasicAuthSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSiteBasicAuth.json
+ */
+ /**
+ * Sample code: Creates or updates basic auth properties for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createsOrUpdatesBasicAuthPropertiesForAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .defineBasicAuth(BasicAuthName.DEFAULT)
+ .withExistingStaticSite("rg", "testStaticSite0")
+ .withPassword("**********************")
+ .withApplicableEnvironmentsMode("AllEnvironments")
+ .create();
+ }
+}
+```
+
+### StaticSites_CreateOrUpdateBuildDatabaseConnection
+
+```java
+/**
+ * Samples for StaticSites CreateOrUpdateBuildDatabaseConnection.
+ */
+public final class StaticSitesCreateOrUpdateBuildDatabaseConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSiteBuildDatabaseConnection.json
+ */
+ /**
+ * Sample code: Create or update a database connection for a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createOrUpdateADatabaseConnectionForAStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .defineBuildDatabaseConnection("default")
+ .withExistingBuild("rg", "testStaticSite0", "default")
+ .withResourceId(
+ "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName")
+ .withConnectionIdentity("SystemAssigned")
+ .withConnectionString("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;")
+ .withRegion("West US 2")
+ .create();
+ }
+}
+```
+
+### StaticSites_CreateOrUpdateDatabaseConnection
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.DatabaseConnectionInner;
+
+/**
+ * Samples for StaticSites CreateOrUpdateDatabaseConnection.
+ */
+public final class StaticSitesCreateOrUpdateDatabaseConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSiteDatabaseConnection.json
+ */
+ /**
+ * Sample code: Create or update a database connection for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createOrUpdateADatabaseConnectionForAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .createOrUpdateDatabaseConnectionWithResponse("rg", "testStaticSite0", "default",
+ new DatabaseConnectionInner().withResourceId(
+ "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName")
+ .withConnectionIdentity("SystemAssigned")
+ .withConnectionString(
+ "AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;")
+ .withRegion("West US 2"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_CreateOrUpdateStaticSite
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.SkuDescription;
+import com.azure.resourcemanager.appservice.generated.models.StaticSiteBuildProperties;
+
+/**
+ * Samples for StaticSites CreateOrUpdateStaticSite.
+ */
+public final class StaticSitesCreateOrUpdateStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSite.json
+ */
+ /**
+ * Sample code: Create or update a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ createOrUpdateAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .defineStaticSite("testStaticSite0")
+ .withRegion("West US 2")
+ .withExistingResourceGroup("rg")
+ .withSku(new SkuDescription().withName("Basic").withTier("Basic"))
+ .withRepositoryUrl("https://github.com/username/RepoName")
+ .withBranch("master")
+ .withRepositoryToken("repoToken123")
+ .withBuildProperties(new StaticSiteBuildProperties().withAppLocation("app")
+ .withApiLocation("api")
+ .withAppArtifactLocation("build"))
+ .create();
+ }
+}
+```
+
+### StaticSites_CreateOrUpdateStaticSiteAppSettings
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.StringDictionaryInner;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for StaticSites CreateOrUpdateStaticSiteAppSettings.
+ */
+public final class StaticSitesCreateOrUpdateStaticSiteAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSiteAppSettings.json
+ */
+ /**
+ * Sample code: Creates or updates the app settings of a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createsOrUpdatesTheAppSettingsOfAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .createOrUpdateStaticSiteAppSettingsWithResponse("rg", "testStaticSite0",
+ new StringDictionaryInner().withProperties(mapOf("setting1", "someval", "setting2", "someval2")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### StaticSites_CreateOrUpdateStaticSiteBuildAppSettings
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.StringDictionaryInner;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for StaticSites CreateOrUpdateStaticSiteBuildAppSettings.
+ */
+public final class StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSiteBuildAppSettings.json
+ */
+ /**
+ * Sample code: Creates or updates the function app settings of a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createsOrUpdatesTheFunctionAppSettingsOfAStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .createOrUpdateStaticSiteBuildAppSettingsWithResponse("rg", "testStaticSite0", "12",
+ new StringDictionaryInner().withProperties(mapOf("setting1", "someval", "setting2", "someval2")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### StaticSites_CreateOrUpdateStaticSiteBuildFunctionAppSettings
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.StringDictionaryInner;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for StaticSites CreateOrUpdateStaticSiteBuildFunctionAppSettings.
+ */
+public final class StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSiteBuildFunctionAppSettings.json
+ */
+ /**
+ * Sample code: Creates or updates the function app settings of a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createsOrUpdatesTheFunctionAppSettingsOfAStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .createOrUpdateStaticSiteBuildFunctionAppSettingsWithResponse("rg", "testStaticSite0", "12",
+ new StringDictionaryInner().withProperties(mapOf("setting1", "someval", "setting2", "someval2")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### StaticSites_CreateOrUpdateStaticSiteCustomDomain
+
+```java
+/**
+ * Samples for StaticSites CreateOrUpdateStaticSiteCustomDomain.
+ */
+public final class StaticSitesCreateOrUpdateStaticSiteCustomDomainSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSiteCustomDomain.json
+ */
+ /**
+ * Sample code: Create or update a custom domain for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createOrUpdateACustomDomainForAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .defineStaticSiteCustomDomain("custom.domain.net")
+ .withExistingStaticSite("rg", "testStaticSite0")
+ .create();
+ }
+}
+```
+
+### StaticSites_CreateOrUpdateStaticSiteFunctionAppSettings
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.StringDictionaryInner;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for StaticSites CreateOrUpdateStaticSiteFunctionAppSettings.
+ */
+public final class StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSiteFunctionAppSettings.json
+ */
+ /**
+ * Sample code: Creates or updates the function app settings of a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createsOrUpdatesTheFunctionAppSettingsOfAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .createOrUpdateStaticSiteFunctionAppSettingsWithResponse("rg", "testStaticSite0",
+ new StringDictionaryInner().withProperties(mapOf("setting1", "someval", "setting2", "someval2")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### StaticSites_CreateUserRolesInvitationLink
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.StaticSiteUserInvitationRequestResource;
+
+/**
+ * Samples for StaticSites CreateUserRolesInvitationLink.
+ */
+public final class StaticSitesCreateUserRolesInvitationLinkSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateUserRolesInvitationLink.json
+ */
+ /**
+ * Sample code: Create an invitation link for a user for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createAnInvitationLinkForAUserForAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .createUserRolesInvitationLinkWithResponse("rg", "testStaticSite0",
+ new StaticSiteUserInvitationRequestResource().withDomain("happy-sea-15afae3e.azurestaticwebsites.net")
+ .withProvider("aad")
+ .withUserDetails("username")
+ .withRoles("admin,contributor")
+ .withNumHoursToExpiration(1),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_CreateZipDeploymentForStaticSite
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.StaticSiteZipDeploymentArmResource;
+
+/**
+ * Samples for StaticSites CreateZipDeploymentForStaticSite.
+ */
+public final class StaticSitesCreateZipDeploymentForStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StaticSiteZipDeploy.json
+ */
+ /**
+ * Sample code: Deploy a site from a zipped package.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deployASiteFromAZippedPackage(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .createZipDeploymentForStaticSite("rg", "testStaticSite0", new StaticSiteZipDeploymentArmResource()
+ .withAppZipUrl("https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/app-zipdeploy.zip")
+ .withApiZipUrl("https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/api-zipdeploy.zip")
+ .withDeploymentTitle("Update index.html")
+ .withProvider("testProvider")
+ .withFunctionLanguage("testFunctionLanguage"), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_CreateZipDeploymentForStaticSiteBuild
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.StaticSiteZipDeploymentArmResource;
+
+/**
+ * Samples for StaticSites CreateZipDeploymentForStaticSiteBuild.
+ */
+public final class StaticSitesCreateZipDeploymentForStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StaticSiteBuildZipDeploy.json
+ */
+ /**
+ * Sample code: Deploy a site from a zipped package to a particular static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deployASiteFromAZippedPackageToAParticularStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .createZipDeploymentForStaticSiteBuild("rg", "testStaticSite0", "12",
+ new StaticSiteZipDeploymentArmResource()
+ .withAppZipUrl(
+ "https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/app-zipdeploy.zip")
+ .withApiZipUrl(
+ "https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/api-zipdeploy.zip")
+ .withDeploymentTitle("Update index.html")
+ .withProvider("testProvider")
+ .withFunctionLanguage("testFunctionLanguage"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_Delete
+
+```java
+/**
+ * Samples for StaticSites Delete.
+ */
+public final class StaticSitesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteStaticSite.json
+ */
+ /**
+ * Sample code: Delete a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().delete("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_DeleteBuildDatabaseConnection
+
+```java
+/**
+ * Samples for StaticSites DeleteBuildDatabaseConnection.
+ */
+public final class StaticSitesDeleteBuildDatabaseConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteStaticSiteBuildDatabaseConnection.json
+ */
+ /**
+ * Sample code: Delete a database connection from a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteADatabaseConnectionFromAStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .deleteBuildDatabaseConnectionWithResponse("rg", "testStaticSite0", "default", "default",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_DeleteDatabaseConnection
+
+```java
+/**
+ * Samples for StaticSites DeleteDatabaseConnection.
+ */
+public final class StaticSitesDeleteDatabaseConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteStaticSiteDatabaseConnection.json
+ */
+ /**
+ * Sample code: Delete a database connection from a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteADatabaseConnectionFromAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .deleteDatabaseConnectionWithResponse("rg", "testStaticSite0", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_DeletePrivateEndpointConnection
+
+```java
+/**
+ * Samples for StaticSites DeletePrivateEndpointConnection.
+ */
+public final class StaticSitesDeletePrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteSitePrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: Delete a private endpoint connection for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteAPrivateEndpointConnectionForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .deletePrivateEndpointConnection("rg", "testSite", "connection", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_DeleteStaticSiteBuild
+
+```java
+/**
+ * Samples for StaticSites DeleteStaticSiteBuild.
+ */
+public final class StaticSitesDeleteStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteStaticSiteBuild.json
+ */
+ /**
+ * Sample code: Delete a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deleteAStaticSiteBuild(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().deleteStaticSiteBuild("rg", "testStaticSite0", "12", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_DeleteStaticSiteCustomDomain
+
+```java
+/**
+ * Samples for StaticSites DeleteStaticSiteCustomDomain.
+ */
+public final class StaticSitesDeleteStaticSiteCustomDomainSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteStaticSiteCustomDomain.json
+ */
+ /**
+ * Sample code: Delete a custom domain for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deleteACustomDomainForAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .deleteStaticSiteCustomDomain("rg", "testStaticSite0", "custom.domain.net",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_DeleteStaticSiteUser
+
+```java
+/**
+ * Samples for StaticSites DeleteStaticSiteUser.
+ */
+public final class StaticSitesDeleteStaticSiteUserSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteStaticSiteUser.json
+ */
+ /**
+ * Sample code: Delete a user for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deleteAUserForAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .deleteStaticSiteUserWithResponse("rg", "testStaticSite0", "aad", "1234", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_DetachStaticSite
+
+```java
+/**
+ * Samples for StaticSites DetachStaticSite.
+ */
+public final class StaticSitesDetachStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DetachStaticSite.json
+ */
+ /**
+ * Sample code: Detach a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void detachAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().detachStaticSite("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_DetachUserProvidedFunctionAppFromStaticSite
+
+```java
+/**
+ * Samples for StaticSites DetachUserProvidedFunctionAppFromStaticSite.
+ */
+public final class StaticSitesDetachUserProvidedFunctionAppFromStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DetachUserProvidedFunctionAppFromStaticSite.json
+ */
+ /**
+ * Sample code: Detach the user provided function app from the static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void detachTheUserProvidedFunctionAppFromTheStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .detachUserProvidedFunctionAppFromStaticSiteWithResponse("rg", "testStaticSite0", "testFunctionApp",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_DetachUserProvidedFunctionAppFromStaticSiteBuild
+
+```java
+/**
+ * Samples for StaticSites DetachUserProvidedFunctionAppFromStaticSiteBuild.
+ */
+public final class StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DetachUserProvidedFunctionAppFromStaticSiteBuild.json
+ */
+ /**
+ * Sample code: Detach the user provided function app from the static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void detachTheUserProvidedFunctionAppFromTheStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .detachUserProvidedFunctionAppFromStaticSiteBuildWithResponse("rg", "testStaticSite0", "12",
+ "testFunctionApp", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetBasicAuth
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.BasicAuthName;
+
+/**
+ * Samples for StaticSites GetBasicAuth.
+ */
+public final class StaticSitesGetBasicAuthSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBasicAuth.json
+ */
+ /**
+ * Sample code: Gets the basic auth properties for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getsTheBasicAuthPropertiesForAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getBasicAuthWithResponse("rg", "testStaticSite0", BasicAuthName.DEFAULT, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetBuildDatabaseConnection
+
+```java
+/**
+ * Samples for StaticSites GetBuildDatabaseConnection.
+ */
+public final class StaticSitesGetBuildDatabaseConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBuildDatabaseConnection.json
+ */
+ /**
+ * Sample code: Get overview of database connections for the static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getOverviewOfDatabaseConnectionsForTheStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getBuildDatabaseConnectionWithResponse("rg", "testStaticSite0", "default", "default",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetBuildDatabaseConnectionWithDetails
+
+```java
+/**
+ * Samples for StaticSites GetBuildDatabaseConnectionWithDetails.
+ */
+public final class StaticSitesGetBuildDatabaseConnectionWithDetailsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBuildDatabaseConnectionWithDetails.json
+ */
+ /**
+ * Sample code: Get details of database connections for the static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDetailsOfDatabaseConnectionsForTheStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getBuildDatabaseConnectionWithDetailsWithResponse("rg", "testStaticSite0", "default", "default",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetBuildDatabaseConnections
+
+```java
+/**
+ * Samples for StaticSites GetBuildDatabaseConnections.
+ */
+public final class StaticSitesGetBuildDatabaseConnectionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBuildDatabaseConnections.json
+ */
+ /**
+ * Sample code: List overviews of database connections for the static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listOverviewsOfDatabaseConnectionsForTheStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getBuildDatabaseConnections("rg", "testStaticSite0", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetBuildDatabaseConnectionsWithDetails
+
+```java
+/**
+ * Samples for StaticSites GetBuildDatabaseConnectionsWithDetails.
+ */
+public final class StaticSitesGetBuildDatabaseConnectionsWithDetailsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBuildDatabaseConnectionsWithDetails.json
+ */
+ /**
+ * Sample code: List full details of database connections for the static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listFullDetailsOfDatabaseConnectionsForTheStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getBuildDatabaseConnectionsWithDetails("rg", "testStaticSite0", "default",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetByResourceGroup
+
+```java
+/**
+ * Samples for StaticSites GetByResourceGroup.
+ */
+public final class StaticSitesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSite.json
+ */
+ /**
+ * Sample code: Get details for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getDetailsForAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().getByResourceGroupWithResponse("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetDatabaseConnection
+
+```java
+/**
+ * Samples for StaticSites GetDatabaseConnection.
+ */
+public final class StaticSitesGetDatabaseConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteDatabaseConnection.json
+ */
+ /**
+ * Sample code: Get overview of database connections for the static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getOverviewOfDatabaseConnectionsForTheStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getDatabaseConnectionWithResponse("rg", "testStaticSite0", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetDatabaseConnectionWithDetails
+
+```java
+/**
+ * Samples for StaticSites GetDatabaseConnectionWithDetails.
+ */
+public final class StaticSitesGetDatabaseConnectionWithDetailsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteDatabaseConnectionWithDetails.json
+ */
+ /**
+ * Sample code: Get details of database connections for the static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDetailsOfDatabaseConnectionsForTheStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getDatabaseConnectionWithDetailsWithResponse("rg", "testStaticSite0", "default",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetDatabaseConnections
+
+```java
+/**
+ * Samples for StaticSites GetDatabaseConnections.
+ */
+public final class StaticSitesGetDatabaseConnectionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteDatabaseConnections.json
+ */
+ /**
+ * Sample code: List overviews of database connections for the static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listOverviewsOfDatabaseConnectionsForTheStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().getDatabaseConnections("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetDatabaseConnectionsWithDetails
+
+```java
+/**
+ * Samples for StaticSites GetDatabaseConnectionsWithDetails.
+ */
+public final class StaticSitesGetDatabaseConnectionsWithDetailsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteDatabaseConnectionsWithDetails.json
+ */
+ /**
+ * Sample code: List full details of database connections for the static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listFullDetailsOfDatabaseConnectionsForTheStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getDatabaseConnectionsWithDetails("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetLinkedBackend
+
+```java
+/**
+ * Samples for StaticSites GetLinkedBackend.
+ */
+public final class StaticSitesGetLinkedBackendSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetLinkedBackendForStaticSite.json
+ */
+ /**
+ * Sample code: Get details of the linked backend registered with a static site by name.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDetailsOfTheLinkedBackendRegisteredWithAStaticSiteByName(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getLinkedBackendWithResponse("rg", "testStaticSite0", "testBackend", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetLinkedBackendForBuild
+
+```java
+/**
+ * Samples for StaticSites GetLinkedBackendForBuild.
+ */
+public final class StaticSitesGetLinkedBackendForBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetLinkedBackendForStaticSiteBuild.json
+ */
+ /**
+ * Sample code: Get details of the linked backend registered with a static site build by name.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDetailsOfTheLinkedBackendRegisteredWithAStaticSiteBuildByName(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getLinkedBackendForBuildWithResponse("rg", "testStaticSite0", "default", "testBackend",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetLinkedBackends
+
+```java
+/**
+ * Samples for StaticSites GetLinkedBackends.
+ */
+public final class StaticSitesGetLinkedBackendsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetLinkedBackendsForStaticSite.json
+ */
+ /**
+ * Sample code: Get details of the linked backends registered with a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDetailsOfTheLinkedBackendsRegisteredWithAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().getLinkedBackends("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetLinkedBackendsForBuild
+
+```java
+/**
+ * Samples for StaticSites GetLinkedBackendsForBuild.
+ */
+public final class StaticSitesGetLinkedBackendsForBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetLinkedBackendsForStaticSiteBuild.json
+ */
+ /**
+ * Sample code: Get details of the linked backends registered with a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDetailsOfTheLinkedBackendsRegisteredWithAStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getLinkedBackendsForBuild("rg", "testStaticSite0", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetPrivateEndpointConnection
+
+```java
+/**
+ * Samples for StaticSites GetPrivateEndpointConnection.
+ */
+public final class StaticSitesGetPrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: Get a private endpoint connection for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAPrivateEndpointConnectionForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getPrivateEndpointConnectionWithResponse("rg", "testSite", "connection", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetPrivateEndpointConnectionList
+
+```java
+/**
+ * Samples for StaticSites GetPrivateEndpointConnectionList.
+ */
+public final class StaticSitesGetPrivateEndpointConnectionListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateEndpointConnectionList.json
+ */
+ /**
+ * Sample code: Get a list of private endpoint connections associated with a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAListOfPrivateEndpointConnectionsAssociatedWithASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getPrivateEndpointConnectionList("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetPrivateLinkResources
+
+```java
+/**
+ * Samples for StaticSites GetPrivateLinkResources.
+ */
+public final class StaticSitesGetPrivateLinkResourcesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateLinkResources.json
+ */
+ /**
+ * Sample code: Get private link resources of a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getPrivateLinkResourcesOfASite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().getPrivateLinkResourcesWithResponse("rg", "testSite", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetStaticSiteBuild
+
+```java
+/**
+ * Samples for StaticSites GetStaticSiteBuild.
+ */
+public final class StaticSitesGetStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBuild.json
+ */
+ /**
+ * Sample code: Get a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAStaticSiteBuild(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getStaticSiteBuildWithResponse("rg", "testStaticSite0", "12", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetStaticSiteBuilds
+
+```java
+/**
+ * Samples for StaticSites GetStaticSiteBuilds.
+ */
+public final class StaticSitesGetStaticSiteBuildsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBuilds.json
+ */
+ /**
+ * Sample code: Get all builds for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAllBuildsForAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().getStaticSiteBuilds("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetStaticSiteCustomDomain
+
+```java
+/**
+ * Samples for StaticSites GetStaticSiteCustomDomain.
+ */
+public final class StaticSitesGetStaticSiteCustomDomainSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteCustomDomain.json
+ */
+ /**
+ * Sample code: Get custom domain for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getCustomDomainForAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getStaticSiteCustomDomainWithResponse("rg", "testStaticSite0", "custom.domain.net",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetUserProvidedFunctionAppForStaticSite
+
+```java
+/**
+ * Samples for StaticSites GetUserProvidedFunctionAppForStaticSite.
+ */
+public final class StaticSitesGetUserProvidedFunctionAppForStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetUserProvidedFunctionAppForStaticSite.json
+ */
+ /**
+ * Sample code: Get details of the user provided function app registered with a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getUserProvidedFunctionAppForStaticSiteWithResponse("rg", "testStaticSite0", "testFunctionApp",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetUserProvidedFunctionAppForStaticSiteBuild
+
+```java
+/**
+ * Samples for StaticSites GetUserProvidedFunctionAppForStaticSiteBuild.
+ */
+public final class StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json
+ */
+ /**
+ * Sample code: Get details of the user provided function app registered with a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getUserProvidedFunctionAppForStaticSiteBuildWithResponse("rg", "testStaticSite0", "default",
+ "testFunctionApp", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetUserProvidedFunctionAppsForStaticSite
+
+```java
+/**
+ * Samples for StaticSites GetUserProvidedFunctionAppsForStaticSite.
+ */
+public final class StaticSitesGetUserProvidedFunctionAppsForStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetUserProvidedFunctionAppsForStaticSite.json
+ */
+ /**
+ * Sample code: Get details of the user provided function apps registered with a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDetailsOfTheUserProvidedFunctionAppsRegisteredWithAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getUserProvidedFunctionAppsForStaticSite("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetUserProvidedFunctionAppsForStaticSiteBuild
+
+```java
+/**
+ * Samples for StaticSites GetUserProvidedFunctionAppsForStaticSiteBuild.
+ */
+public final class StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetUserProvidedFunctionAppsForStaticSiteBuild.json
+ */
+ /**
+ * Sample code: Get details of the user provided function apps registered with a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDetailsOfTheUserProvidedFunctionAppsRegisteredWithAStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .getUserProvidedFunctionAppsForStaticSiteBuild("rg", "testStaticSite0", "default",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_LinkBackend
+
+```java
+/**
+ * Samples for StaticSites LinkBackend.
+ */
+public final class StaticSitesLinkBackendSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/LinkBackendToStaticSite.json
+ */
+ /**
+ * Sample code: Link a backend to a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ linkABackendToAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .defineStaticSiteLinkedBackendArmResource("testBackend")
+ .withExistingStaticSite("rg", "testStaticSite0")
+ .withBackendResourceId(
+ "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend")
+ .withRegion("West US 2")
+ .create();
+ }
+}
+```
+
+### StaticSites_LinkBackendToBuild
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.StaticSiteLinkedBackendArmResourceInner;
+
+/**
+ * Samples for StaticSites LinkBackendToBuild.
+ */
+public final class StaticSitesLinkBackendToBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/LinkBackendToStaticSiteBuild.json
+ */
+ /**
+ * Sample code: Link a backend to a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ linkABackendToAStaticSiteBuild(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .linkBackendToBuild("rg", "testStaticSite0", "default", "testBackend",
+ new StaticSiteLinkedBackendArmResourceInner().withBackendResourceId(
+ "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend")
+ .withRegion("West US 2"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_List
+
+```java
+/**
+ * Samples for StaticSites List.
+ */
+public final class StaticSitesListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetAllStaticSites.json
+ */
+ /**
+ * Sample code: Get all static sites in a subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAllStaticSitesInASubscription(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListBasicAuth
+
+```java
+/**
+ * Samples for StaticSites ListBasicAuth.
+ */
+public final class StaticSitesListBasicAuthSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteBasicAuth.json
+ */
+ /**
+ * Sample code: Lists the basic auth properties for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listsTheBasicAuthPropertiesForAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().listBasicAuth("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListByResourceGroup
+
+```java
+/**
+ * Samples for StaticSites ListByResourceGroup.
+ */
+public final class StaticSitesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSites.json
+ */
+ /**
+ * Sample code: Get static sites for a resource group.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getStaticSitesForAResourceGroup(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().listByResourceGroup("rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteAppSettings
+
+```java
+/**
+ * Samples for StaticSites ListStaticSiteAppSettings.
+ */
+public final class StaticSitesListStaticSiteAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteAppSettings.json
+ */
+ /**
+ * Sample code: Get app settings of a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppSettingsOfAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .listStaticSiteAppSettingsWithResponse("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteBuildAppSettings
+
+```java
+/**
+ * Samples for StaticSites ListStaticSiteBuildAppSettings.
+ */
+public final class StaticSitesListStaticSiteBuildAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteBuildAppSettings.json
+ */
+ /**
+ * Sample code: Get app settings of a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAppSettingsOfAStaticSiteBuild(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .listStaticSiteBuildAppSettingsWithResponse("rg", "testStaticSite0", "12",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteBuildFunctionAppSettings
+
+```java
+/**
+ * Samples for StaticSites ListStaticSiteBuildFunctionAppSettings.
+ */
+public final class StaticSitesListStaticSiteBuildFunctionAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteBuildFunctionAppSettings.json
+ */
+ /**
+ * Sample code: Get function app settings of a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getFunctionAppSettingsOfAStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .listStaticSiteBuildFunctionAppSettingsWithResponse("rg", "testStaticSite0", "12",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteBuildFunctions
+
+```java
+/**
+ * Samples for StaticSites ListStaticSiteBuildFunctions.
+ */
+public final class StaticSitesListStaticSiteBuildFunctionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteBuildFunctions.json
+ */
+ /**
+ * Sample code: Gets the functions of a particular static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getsTheFunctionsOfAParticularStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .listStaticSiteBuildFunctions("rg", "testStaticSite0", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteConfiguredRoles
+
+```java
+/**
+ * Samples for StaticSites ListStaticSiteConfiguredRoles.
+ */
+public final class StaticSitesListStaticSiteConfiguredRolesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteConfiguredRoles.json
+ */
+ /**
+ * Sample code: Lists the configured roles for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listsTheConfiguredRolesForAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .listStaticSiteConfiguredRolesWithResponse("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteCustomDomains
+
+```java
+/**
+ * Samples for StaticSites ListStaticSiteCustomDomains.
+ */
+public final class StaticSitesListStaticSiteCustomDomainsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteCustomDomains.json
+ */
+ /**
+ * Sample code: List custom domains for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listCustomDomainsForAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().listStaticSiteCustomDomains("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteFunctionAppSettings
+
+```java
+/**
+ * Samples for StaticSites ListStaticSiteFunctionAppSettings.
+ */
+public final class StaticSitesListStaticSiteFunctionAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteFunctionAppSettings.json
+ */
+ /**
+ * Sample code: Get function app settings of a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getFunctionAppSettingsOfAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .listStaticSiteFunctionAppSettingsWithResponse("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteFunctions
+
+```java
+/**
+ * Samples for StaticSites ListStaticSiteFunctions.
+ */
+public final class StaticSitesListStaticSiteFunctionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteFunctions.json
+ */
+ /**
+ * Sample code: Gets the functions of a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getsTheFunctionsOfAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().listStaticSiteFunctions("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteSecrets
+
+```java
+/**
+ * Samples for StaticSites ListStaticSiteSecrets.
+ */
+public final class StaticSitesListStaticSiteSecretsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteSecrets.json
+ */
+ /**
+ * Sample code: List secrets for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listSecretsForAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .listStaticSiteSecretsWithResponse("rg", "testStaticSite0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteUsers
+
+```java
+/**
+ * Samples for StaticSites ListStaticSiteUsers.
+ */
+public final class StaticSitesListStaticSiteUsersSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteUsers.json
+ */
+ /**
+ * Sample code: List users for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listUsersForAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites().listStaticSiteUsers("rg", "testStaticSite0", "all", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_PreviewWorkflow
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.StaticSiteBuildProperties;
+import com.azure.resourcemanager.appservice.generated.models.StaticSitesWorkflowPreviewRequest;
+
+/**
+ * Samples for StaticSites PreviewWorkflow.
+ */
+public final class StaticSitesPreviewWorkflowSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GenerateStaticSiteWorkflowPreview.json
+ */
+ /**
+ * Sample code: Generates a preview workflow file for the static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void generatesAPreviewWorkflowFileForTheStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .previewWorkflowWithResponse("West US 2",
+ new StaticSitesWorkflowPreviewRequest().withRepositoryUrl("https://github.com/username/RepoName")
+ .withBranch("master")
+ .withBuildProperties(new StaticSiteBuildProperties().withAppLocation("app")
+ .withApiLocation("api")
+ .withAppArtifactLocation("build")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_RegisterUserProvidedFunctionAppWithStaticSite
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.StaticSiteUserProvidedFunctionAppArmResourceInner;
+
+/**
+ * Samples for StaticSites RegisterUserProvidedFunctionAppWithStaticSite.
+ */
+public final class StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/RegisterUserProvidedFunctionAppWithStaticSite.json
+ */
+ /**
+ * Sample code: Register a user provided function app with a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void registerAUserProvidedFunctionAppWithAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .registerUserProvidedFunctionAppWithStaticSite("rg", "testStaticSite0", "testFunctionApp",
+ new StaticSiteUserProvidedFunctionAppArmResourceInner().withFunctionAppResourceId(
+ "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp")
+ .withFunctionAppRegion("West US 2"),
+ true, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_RegisterUserProvidedFunctionAppWithStaticSiteBuild
+
+```java
+/**
+ * Samples for StaticSites RegisterUserProvidedFunctionAppWithStaticSiteBuild.
+ */
+public final class StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/RegisterUserProvidedFunctionAppWithStaticSiteBuild.json
+ */
+ /**
+ * Sample code: Register a user provided function app with a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void registerAUserProvidedFunctionAppWithAStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .defineStaticSiteUserProvidedFunctionAppArmResource("testFunctionApp")
+ .withExistingBuild("rg", "testStaticSite0", "default")
+ .withFunctionAppResourceId(
+ "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp")
+ .withFunctionAppRegion("West US 2")
+ .withIsForced(true)
+ .create();
+ }
+}
+```
+
+### StaticSites_ResetStaticSiteApiKey
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.StaticSiteResetPropertiesArmResource;
+
+/**
+ * Samples for StaticSites ResetStaticSiteApiKey.
+ */
+public final class StaticSitesResetStaticSiteApiKeySamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ResetStaticSiteApiKey.json
+ */
+ /**
+ * Sample code: Reset the api key for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ resetTheApiKeyForAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .resetStaticSiteApiKeyWithResponse("rg", "testStaticSite0",
+ new StaticSiteResetPropertiesArmResource().withRepositoryToken("fakeTokenPlaceholder")
+ .withShouldUpdateRepository(true),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_UnlinkBackend
+
+```java
+/**
+ * Samples for StaticSites UnlinkBackend.
+ */
+public final class StaticSitesUnlinkBackendSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UnlinkBackendFromStaticSite.json
+ */
+ /**
+ * Sample code: Unlink a backend from a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ unlinkABackendFromAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .unlinkBackendWithResponse("rg", "testStaticSite0", "testBackend", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_UnlinkBackendFromBuild
+
+```java
+/**
+ * Samples for StaticSites UnlinkBackendFromBuild.
+ */
+public final class StaticSitesUnlinkBackendFromBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UnlinkBackendFromStaticSiteBuild.json
+ */
+ /**
+ * Sample code: Unlink a backend from a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ unlinkABackendFromAStaticSiteBuild(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .unlinkBackendFromBuildWithResponse("rg", "testStaticSite0", "12", "testBackend", null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_UpdateBuildDatabaseConnection
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.DatabaseConnection;
+
+/**
+ * Samples for StaticSites UpdateBuildDatabaseConnection.
+ */
+public final class StaticSitesUpdateBuildDatabaseConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PatchStaticSiteBuildDatabaseConnection.json
+ */
+ /**
+ * Sample code: Patch a database connection for a static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void patchADatabaseConnectionForAStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ DatabaseConnection resource = manager.staticSites()
+ .getBuildDatabaseConnectionWithResponse("rg", "testStaticSite0", "default", "default",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().apply();
+ }
+}
+```
+
+### StaticSites_UpdateDatabaseConnection
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.DatabaseConnectionPatchRequest;
+
+/**
+ * Samples for StaticSites UpdateDatabaseConnection.
+ */
+public final class StaticSitesUpdateDatabaseConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PatchStaticSiteDatabaseConnection.json
+ */
+ /**
+ * Sample code: Patch a database connection for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void patchADatabaseConnectionForAStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .updateDatabaseConnectionWithResponse("rg", "testStaticSite0", "default",
+ new DatabaseConnectionPatchRequest(), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_UpdateStaticSite
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.StaticSiteArmResource;
+
+/**
+ * Samples for StaticSites UpdateStaticSite.
+ */
+public final class StaticSitesUpdateStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PatchStaticSite.json
+ */
+ /**
+ * Sample code: Patch a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void patchAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ StaticSiteArmResource resource = manager.staticSites()
+ .getByResourceGroupWithResponse("rg", "testStaticSite0", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().apply();
+ }
+}
+```
+
+### StaticSites_UpdateStaticSiteUser
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.StaticSiteUserArmResourceInner;
+
+/**
+ * Samples for StaticSites UpdateStaticSiteUser.
+ */
+public final class StaticSitesUpdateStaticSiteUserSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateStaticSiteUser.json
+ */
+ /**
+ * Sample code: Create or update a user for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ createOrUpdateAUserForAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .updateStaticSiteUserWithResponse("rg", "testStaticSite0", "aad", "1234",
+ new StaticSiteUserArmResourceInner().withRoles("contributor"), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ValidateBackend
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.StaticSiteLinkedBackendArmResourceInner;
+
+/**
+ * Samples for StaticSites ValidateBackend.
+ */
+public final class StaticSitesValidateBackendSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ValidateLinkedBackendForStaticSite.json
+ */
+ /**
+ * Sample code: Validate if backend can be linked to static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void validateIfBackendCanBeLinkedToStaticSite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .validateBackend("rg", "testStaticSite0", "testBackend",
+ new StaticSiteLinkedBackendArmResourceInner().withBackendResourceId(
+ "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend")
+ .withRegion("West US 2"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ValidateBackendForBuild
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.StaticSiteLinkedBackendArmResourceInner;
+
+/**
+ * Samples for StaticSites ValidateBackendForBuild.
+ */
+public final class StaticSitesValidateBackendForBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ValidateLinkedBackendForStaticSiteBuild.json
+ */
+ /**
+ * Sample code: Validate if backend can be linked to static site build.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void validateIfBackendCanBeLinkedToStaticSiteBuild(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .validateBackendForBuild("rg", "testStaticSite0", "default", "testBackend",
+ new StaticSiteLinkedBackendArmResourceInner().withBackendResourceId(
+ "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend")
+ .withRegion("West US 2"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StaticSites_ValidateCustomDomainCanBeAddedToStaticSite
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.StaticSiteCustomDomainRequestPropertiesArmResource;
+
+/**
+ * Samples for StaticSites ValidateCustomDomainCanBeAddedToStaticSite.
+ */
+public final class StaticSitesValidateCustomDomainCanBeAddedToStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ValidateStaticSiteCustomDomain.json
+ */
+ /**
+ * Sample code: Validate a custom domain for a static site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ validateACustomDomainForAStaticSite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.staticSites()
+ .validateCustomDomainCanBeAddedToStaticSite("rg", "testStaticSite0", "custom.domain.net",
+ new StaticSiteCustomDomainRequestPropertiesArmResource(), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### TopLevelDomains_Get
+
+```java
+/**
+ * Samples for TopLevelDomains Get.
+ */
+public final class TopLevelDomainsGetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/GetTopLevelDomain.json
+ */
+ /**
+ * Sample code: Get Top Level Domain.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getTopLevelDomain(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.topLevelDomains().getWithResponse("com", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### TopLevelDomains_List
+
+```java
+/**
+ * Samples for TopLevelDomains List.
+ */
+public final class TopLevelDomainsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ListTopLevelDomains.json
+ */
+ /**
+ * Sample code: List Top Level Domains.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listTopLevelDomains(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.topLevelDomains().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### TopLevelDomains_ListAgreements
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.TopLevelDomainAgreementOption;
+
+/**
+ * Samples for TopLevelDomains ListAgreements.
+ */
+public final class TopLevelDomainsListAgreementsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ListTopLevelDomainAgreements.json
+ */
+ /**
+ * Sample code: List Top Level Domain Agreements.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listTopLevelDomainAgreements(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.topLevelDomains()
+ .listAgreements("in", new TopLevelDomainAgreementOption().withIncludePrivacy(true).withForTransfer(false),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_AnalyzeCustomHostname
+
+```java
+/**
+ * Samples for WebApps AnalyzeCustomHostname.
+ */
+public final class WebAppsAnalyzeCustomHostnameSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AnalyzeCustomHostName.json
+ */
+ /**
+ * Sample code: Analyze custom hostname for webapp.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ analyzeCustomHostnameForWebapp(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .analyzeCustomHostnameWithResponse("testrg123", "sitef6141", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_AnalyzeCustomHostnameSlot
+
+```java
+/**
+ * Samples for WebApps AnalyzeCustomHostnameSlot.
+ */
+public final class WebAppsAnalyzeCustomHostnameSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AnalyzeCustomHostNameSlot.json
+ */
+ /**
+ * Sample code: Analyze custom hostname for slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ analyzeCustomHostnameForSlot(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .analyzeCustomHostnameSlotWithResponse("testrg123", "sitef6141", "staging", null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ApplySlotConfigToProduction
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.CsmSlotEntity;
+
+/**
+ * Samples for WebApps ApplySlotConfigToProduction.
+ */
+public final class WebAppsApplySlotConfigToProductionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ApplySlotConfig.json
+ */
+ /**
+ * Sample code: Apply web app slot config.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void applyWebAppSlotConfig(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .applySlotConfigToProductionWithResponse("testrg123", "sitef6141",
+ new CsmSlotEntity().withTargetSlot("staging").withPreserveVnet(true), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ApproveOrRejectPrivateEndpointConnection
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.RemotePrivateEndpointConnectionArmResourceInner;
+import com.azure.resourcemanager.appservice.generated.models.PrivateLinkConnectionState;
+
+/**
+ * Samples for WebApps ApproveOrRejectPrivateEndpointConnection.
+ */
+public final class WebAppsApproveOrRejectPrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ApproveRejectSitePrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: Approves or rejects a private endpoint connection for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void approvesOrRejectsAPrivateEndpointConnectionForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .approveOrRejectPrivateEndpointConnection("rg", "testSite", "connection",
+ new RemotePrivateEndpointConnectionArmResourceInner()
+ .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("Approved")
+ .withDescription("Approved by admin.")
+ .withActionsRequired("")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ApproveOrRejectPrivateEndpointConnectionSlot
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.RemotePrivateEndpointConnectionArmResourceInner;
+import com.azure.resourcemanager.appservice.generated.models.PrivateLinkConnectionState;
+
+/**
+ * Samples for WebApps ApproveOrRejectPrivateEndpointConnectionSlot.
+ */
+public final class WebAppsApproveOrRejectPrivateEndpointConnectionSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ApproveRejectSitePrivateEndpointConnectionSlot.json
+ */
+ /**
+ * Sample code: Approves or rejects a private endpoint connection for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void approvesOrRejectsAPrivateEndpointConnectionForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .approveOrRejectPrivateEndpointConnectionSlot("rg", "testSite", "connection", "stage",
+ new RemotePrivateEndpointConnectionArmResourceInner()
+ .withPrivateLinkServiceConnectionState(new PrivateLinkConnectionState().withStatus("Approved")
+ .withDescription("Approved by admin.")
+ .withActionsRequired("")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_Backup
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.BackupRequestInner;
+import com.azure.resourcemanager.appservice.generated.models.BackupSchedule;
+import com.azure.resourcemanager.appservice.generated.models.DatabaseBackupSetting;
+import com.azure.resourcemanager.appservice.generated.models.DatabaseType;
+import com.azure.resourcemanager.appservice.generated.models.FrequencyUnit;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
+/**
+ * Samples for WebApps Backup.
+ */
+public final class WebAppsBackupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/BackupWebApp.json
+ */
+ /**
+ * Sample code: Backup web app.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void backupWebApp(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .backupWithResponse("testrg123", "sitef6141", new BackupRequestInner().withBackupName("abcdwe")
+ .withEnabled(true)
+ .withStorageAccountUrl(
+ "DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey=")
+ .withBackupSchedule(new BackupSchedule().withFrequencyInterval(7)
+ .withFrequencyUnit(FrequencyUnit.DAY)
+ .withKeepAtLeastOneBackup(true)
+ .withRetentionPeriodInDays(30)
+ .withStartTime(OffsetDateTime.parse("2022-09-02T17:33:11.641Z")))
+ .withDatabases(Arrays.asList(
+ new DatabaseBackupSetting().withDatabaseType(DatabaseType.SQL_AZURE)
+ .withName("backenddb")
+ .withConnectionStringName("backend")
+ .withConnectionString(
+ "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"),
+ new DatabaseBackupSetting().withDatabaseType(DatabaseType.SQL_AZURE)
+ .withName("statsdb")
+ .withConnectionStringName("stats")
+ .withConnectionString(
+ "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.SiteConfigInner;
+import com.azure.resourcemanager.appservice.generated.models.AuthenticationType;
+import com.azure.resourcemanager.appservice.generated.models.CloningInfo;
+import com.azure.resourcemanager.appservice.generated.models.FunctionAppConfig;
+import com.azure.resourcemanager.appservice.generated.models.FunctionsAlwaysReadyConfig;
+import com.azure.resourcemanager.appservice.generated.models.FunctionsDeployment;
+import com.azure.resourcemanager.appservice.generated.models.FunctionsDeploymentStorage;
+import com.azure.resourcemanager.appservice.generated.models.FunctionsDeploymentStorageAuthentication;
+import com.azure.resourcemanager.appservice.generated.models.FunctionsRuntime;
+import com.azure.resourcemanager.appservice.generated.models.FunctionsScaleAndConcurrency;
+import com.azure.resourcemanager.appservice.generated.models.FunctionsScaleAndConcurrencyTriggers;
+import com.azure.resourcemanager.appservice.generated.models.FunctionsScaleAndConcurrencyTriggersHttp;
+import com.azure.resourcemanager.appservice.generated.models.NameValuePair;
+import com.azure.resourcemanager.appservice.generated.models.RuntimeName;
+import com.azure.resourcemanager.appservice.generated.models.StorageType;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for WebApps CreateOrUpdate.
+ */
+public final class WebAppsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateFunctionAppFlexConsumptionWithDetails.json
+ */
+ /**
+ * Sample code: Create or Update Flex Consumption function app with details.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createOrUpdateFlexConsumptionFunctionAppWithDetails(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .define("sitef6141")
+ .withRegion("East US")
+ .withExistingResourceGroup("testrg123")
+ .withKind("functionapp,linux")
+ .withSiteConfig(new SiteConfigInner().withAppSettings(Arrays.asList(new NameValuePair()
+ .withName("AzureWebJobsStorage")
+ .withValue(
+ "DefaultEndpointsProtocol=https;AccountName=StorageAccountName;AccountKey=Sanitized;EndpointSuffix=core.windows.net"),
+ new NameValuePair().withName("APPLICATIONINSIGHTS_CONNECTION_STRING")
+ .withValue("InstrumentationKey=Sanitized;IngestionEndpoint=Sanitized;LiveEndpoint=Sanitized"))))
+ .withFunctionAppConfig(new FunctionAppConfig()
+ .withDeployment(new FunctionsDeployment()
+ .withStorage(new FunctionsDeploymentStorage().withType(StorageType.BLOB_CONTAINER)
+ .withValue("https://storageAccountName.blob.core.windows.net/containername")
+ .withAuthentication(new FunctionsDeploymentStorageAuthentication()
+ .withType(AuthenticationType.STORAGE_ACCOUNT_CONNECTION_STRING)
+ .withStorageAccountConnectionStringName("TheAppSettingName"))))
+ .withRuntime(new FunctionsRuntime().withName(RuntimeName.PYTHON).withVersion("3.11"))
+ .withScaleAndConcurrency(new FunctionsScaleAndConcurrency()
+ .withAlwaysReady(
+ Arrays.asList(new FunctionsAlwaysReadyConfig().withName("http").withInstanceCount(2.0F)))
+ .withMaximumInstanceCount(100.0F)
+ .withInstanceMemoryMB(2048.0F)
+ .withTriggers(new FunctionsScaleAndConcurrencyTriggers()
+ .withHttp(new FunctionsScaleAndConcurrencyTriggersHttp().withPerInstanceConcurrency(16.0F)))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateFunctionAppFlexConsumption.json
+ */
+ /**
+ * Sample code: Create or Update Flex Consumption function app.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createOrUpdateFlexConsumptionFunctionApp(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .define("sitef6141")
+ .withRegion("East US")
+ .withExistingResourceGroup("testrg123")
+ .withKind("functionapp,linux")
+ .withSiteConfig(new SiteConfigInner().withAppSettings(Arrays.asList(new NameValuePair()
+ .withName("AzureWebJobsStorage")
+ .withValue(
+ "DefaultEndpointsProtocol=https;AccountName=StorageAccountName;AccountKey=Sanitized;EndpointSuffix=core.windows.net"),
+ new NameValuePair().withName("APPLICATIONINSIGHTS_CONNECTION_STRING")
+ .withValue("InstrumentationKey=Sanitized;IngestionEndpoint=Sanitized;LiveEndpoint=Sanitized"))))
+ .withFunctionAppConfig(new FunctionAppConfig()
+ .withDeployment(new FunctionsDeployment()
+ .withStorage(new FunctionsDeploymentStorage().withType(StorageType.BLOB_CONTAINER)
+ .withValue("https://storageAccountName.blob.core.windows.net/containername")
+ .withAuthentication(new FunctionsDeploymentStorageAuthentication()
+ .withType(AuthenticationType.STORAGE_ACCOUNT_CONNECTION_STRING)
+ .withStorageAccountConnectionStringName("TheAppSettingName"))))
+ .withRuntime(new FunctionsRuntime().withName(RuntimeName.PYTHON).withVersion("3.11"))
+ .withScaleAndConcurrency(
+ new FunctionsScaleAndConcurrency().withMaximumInstanceCount(100.0F).withInstanceMemoryMB(2048.0F)))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateWebApp.json
+ */
+ /**
+ * Sample code: Create or Update web app.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void createOrUpdateWebApp(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .define("sitef6141")
+ .withRegion("East US")
+ .withExistingResourceGroup("testrg123")
+ .withKind("app")
+ .withServerFarmId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CloneWebApp.json
+ */
+ /**
+ * Sample code: Clone web app.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void cloneWebApp(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .define("sitef6141")
+ .withRegion("East US")
+ .withExistingResourceGroup("testrg123")
+ .withKind("app")
+ .withCloningInfo(new CloningInfo().withOverwrite(false)
+ .withCloneCustomHostNames(true)
+ .withCloneSourceControl(true)
+ .withSourceWebAppId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/sites/srcsiteg478")
+ .withSourceWebAppLocation("West Europe")
+ .withHostingEnvironment(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/hostingenvironments/aseforsites")
+ .withAppSettingsOverrides(mapOf("Setting1", "NewValue1", "Setting3", "NewValue5"))
+ .withConfigureLoadBalancing(false))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### WebApps_CreateOrUpdateConfiguration
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.SiteConfigResourceInner;
+import com.azure.resourcemanager.appservice.generated.models.FtpsState;
+import com.azure.resourcemanager.appservice.generated.models.ManagedPipelineMode;
+import com.azure.resourcemanager.appservice.generated.models.SiteLoadBalancing;
+import com.azure.resourcemanager.appservice.generated.models.SupportedTlsVersions;
+import com.azure.resourcemanager.appservice.generated.models.VirtualApplication;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for WebApps CreateOrUpdateConfiguration.
+ */
+public final class WebAppsCreateOrUpdateConfigurationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateSiteConfig.json
+ */
+ /**
+ * Sample code: Update Site Config.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateSiteConfig(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .createOrUpdateConfiguration("testrg123", "sitef6141",
+ new SiteConfigResourceInner().withNumberOfWorkers(1)
+ .withDefaultDocuments(Arrays.asList("Default.htm", "Default.html", "Default.asp", "index.htm",
+ "index.html", "iisstart.htm", "default.aspx", "index.php", "hostingstart.html"))
+ .withNetFrameworkVersion("v4.0")
+ .withPhpVersion("5.6")
+ .withPythonVersion("")
+ .withNodeVersion("")
+ .withPowerShellVersion("")
+ .withLinuxFxVersion("")
+ .withRequestTracingEnabled(false)
+ .withRemoteDebuggingEnabled(false)
+ .withHttpLoggingEnabled(false)
+ .withAcrUseManagedIdentityCreds(false)
+ .withLogsDirectorySizeLimit(35)
+ .withDetailedErrorLoggingEnabled(false)
+ .withUse32BitWorkerProcess(true)
+ .withWebSocketsEnabled(false)
+ .withAlwaysOn(false)
+ .withAppCommandLine("")
+ .withManagedPipelineMode(ManagedPipelineMode.INTEGRATED)
+ .withVirtualApplications(Arrays.asList(new VirtualApplication().withVirtualPath("/")
+ .withPhysicalPath("site\\wwwroot")
+ .withPreloadEnabled(false)))
+ .withLoadBalancing(SiteLoadBalancing.LEAST_REQUESTS)
+ .withAutoHealEnabled(false)
+ .withVnetName("")
+ .withVnetRouteAllEnabled(false)
+ .withVnetPrivatePortsCount(0)
+ .withHttp20Enabled(false)
+ .withMinTlsVersion(SupportedTlsVersions.ONE_TWO)
+ .withScmMinTlsVersion(SupportedTlsVersions.ONE_TWO)
+ .withFtpsState(FtpsState.ALL_ALLOWED)
+ .withFunctionAppScaleLimit(0)
+ .withFunctionsRuntimeScaleMonitoringEnabled(false)
+ .withMinimumElasticInstanceCount(0)
+ .withAzureStorageAccounts(mapOf()),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### WebApps_CreateOrUpdateSlot
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.SiteInner;
+import com.azure.resourcemanager.appservice.generated.models.CloningInfo;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for WebApps CreateOrUpdateSlot.
+ */
+public final class WebAppsCreateOrUpdateSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CloneWebAppSlot.json
+ */
+ /**
+ * Sample code: Clone web app slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void cloneWebAppSlot(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .createOrUpdateSlot("testrg123", "sitef6141", "staging", new SiteInner().withLocation("East US")
+ .withKind("app")
+ .withCloningInfo(new CloningInfo().withOverwrite(false)
+ .withCloneCustomHostNames(true)
+ .withCloneSourceControl(true)
+ .withSourceWebAppId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/sites/srcsiteg478/slot/qa")
+ .withSourceWebAppLocation("West Europe")
+ .withHostingEnvironment(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/hostingenvironments/aseforsites")
+ .withAppSettingsOverrides(mapOf("Setting1", "NewValue1", "Setting3", "NewValue5"))
+ .withConfigureLoadBalancing(false)),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateWebAppSlot.json
+ */
+ /**
+ * Sample code: Create or Update Web App Slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ createOrUpdateWebAppSlot(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .createOrUpdateSlot("testrg123", "sitef6141", "staging", new SiteInner().withLocation("East US")
+ .withKind("app")
+ .withServerFarmId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### WebApps_Delete
+
+```java
+/**
+ * Samples for WebApps Delete.
+ */
+public final class WebAppsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteWebApp.json
+ */
+ /**
+ * Sample code: Delete Web app.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteWebApp(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().deleteWithResponse("testrg123", "sitef6141", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_DeleteBackup
+
+```java
+/**
+ * Samples for WebApps DeleteBackup.
+ */
+public final class WebAppsDeleteBackupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteWebAppBackup.json
+ */
+ /**
+ * Sample code: Delete web app backup.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteWebAppBackup(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().deleteBackupWithResponse("testrg123", "sitef6141", "12345", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_DeletePrivateEndpointConnection
+
+```java
+/**
+ * Samples for WebApps DeletePrivateEndpointConnection.
+ */
+public final class WebAppsDeletePrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteSitePrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: Delete a private endpoint connection for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteAPrivateEndpointConnectionForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .deletePrivateEndpointConnection("rg", "testSite", "connection", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_DeletePrivateEndpointConnectionSlot
+
+```java
+/**
+ * Samples for WebApps DeletePrivateEndpointConnectionSlot.
+ */
+public final class WebAppsDeletePrivateEndpointConnectionSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteSitePrivateEndpointConnectionSlot.json
+ */
+ /**
+ * Sample code: Delete a private endpoint connection for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteAPrivateEndpointConnectionForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .deletePrivateEndpointConnectionSlot("rg", "testSite", "connection", "stage",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_DeleteSlot
+
+```java
+/**
+ * Samples for WebApps DeleteSlot.
+ */
+public final class WebAppsDeleteSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteWebAppSlot.json
+ */
+ /**
+ * Sample code: Delete Web App Slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deleteWebAppSlot(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .deleteSlotWithResponse("testrg123", "sitef6141", "staging", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_DeployWorkflowArtifacts
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.appservice.generated.models.WorkflowArtifacts;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for WebApps DeployWorkflowArtifacts.
+ */
+public final class WebAppsDeployWorkflowArtifactsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PostDeployWorkflowArtifacts.json
+ */
+ /**
+ * Sample code: Deploys workflow artifacts.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deploysWorkflowArtifacts(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) throws IOException {
+ manager.webApps()
+ .deployWorkflowArtifactsWithResponse("testrg123", "testsite2", new WorkflowArtifacts()
+ .withAppSettings(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"eventHub_connectionString\":\"Endpoint=sb://example.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=EXAMPLE1a2b3c4d5e6fEXAMPLE=\"}",
+ Object.class, SerializerEncoding.JSON))
+ .withFiles(mapOf("connections.json", SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"managedApiConnections\":{},\"serviceProviderConnections\":{\"eventHub\":{\"displayName\":\"example1\",\"parameterValues\":{\"connectionString\":\"@appsetting('eventHub_connectionString')\"},\"serviceProvider\":{\"id\":\"/serviceProviders/eventHub\"}}}}",
+ Object.class, SerializerEncoding.JSON),
+ "test1/workflow.json",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"definition\":{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"triggers\":{\"When_events_are_available_in_Event_hub\":{\"type\":\"ServiceProvider\",\"inputs\":{\"parameters\":{\"eventHubName\":\"test123\"},\"serviceProviderConfiguration\":{\"operationId\":\"receiveEvents\",\"connectionName\":\"eventHub\",\"serviceProviderId\":\"/serviceProviders/eventHub\"}},\"splitOn\":\"@triggerOutputs()?['body']\"}}},\"kind\":\"Stateful\"}",
+ Object.class, SerializerEncoding.JSON))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteDeployWorkflowArtifacts.json
+ */
+ /**
+ * Sample code: Delete workflow artifacts.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ deleteWorkflowArtifacts(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .deployWorkflowArtifactsWithResponse("testrg123", "testsite2",
+ new WorkflowArtifacts().withFilesToDelete(Arrays.asList("test/workflow.json", "test/")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### WebApps_DeployWorkflowArtifactsSlot
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.appservice.generated.models.WorkflowArtifacts;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for WebApps DeployWorkflowArtifactsSlot.
+ */
+public final class WebAppsDeployWorkflowArtifactsSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PostDeployWorkflowArtifactsSlot.json
+ */
+ /**
+ * Sample code: Deploys workflow artifacts slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void deploysWorkflowArtifactsSlot(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) throws IOException {
+ manager.webApps()
+ .deployWorkflowArtifactsSlotWithResponse("testrg123", "testsite2", "testsSlot", new WorkflowArtifacts()
+ .withAppSettings(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"eventHub_connectionString\":\"Endpoint=sb://example.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=EXAMPLE1a2b3c4d5e6fEXAMPLE=\"}",
+ Object.class, SerializerEncoding.JSON))
+ .withFiles(mapOf("connections.json", SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"managedApiConnections\":{},\"serviceProviderConnections\":{\"eventHub\":{\"displayName\":\"example1\",\"parameterValues\":{\"connectionString\":\"@appsetting('eventHub_connectionString')\"},\"serviceProvider\":{\"id\":\"/serviceProviders/eventHub\"}}}}",
+ Object.class, SerializerEncoding.JSON),
+ "test1/workflow.json",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"definition\":{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"triggers\":{\"When_events_are_available_in_Event_hub\":{\"type\":\"ServiceProvider\",\"inputs\":{\"parameters\":{\"eventHubName\":\"test123\"},\"serviceProviderConfiguration\":{\"operationId\":\"receiveEvents\",\"connectionName\":\"eventHub\",\"serviceProviderId\":\"/serviceProviders/eventHub\"}},\"splitOn\":\"@triggerOutputs()?['body']\"}}},\"kind\":\"Stateful\"}",
+ Object.class, SerializerEncoding.JSON))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### WebApps_GetAppSettingKeyVaultReference
+
+```java
+/**
+ * Samples for WebApps GetAppSettingKeyVaultReference.
+ */
+public final class WebAppsGetAppSettingKeyVaultReferenceSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetKeyVaultReferencesForAppSetting.json
+ */
+ /**
+ * Sample code: Get Azure Key Vault app setting reference.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAzureKeyVaultAppSettingReference(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getAppSettingKeyVaultReferenceWithResponse("testrg123", "testc6282", "setting",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetAppSettingKeyVaultReferenceSlot
+
+```java
+/**
+ * Samples for WebApps GetAppSettingKeyVaultReferenceSlot.
+ */
+public final class WebAppsGetAppSettingKeyVaultReferenceSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetKeyVaultReferencesForAppSettingSlot.json
+ */
+ /**
+ * Sample code: Get Azure Key Vault slot app setting reference.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAzureKeyVaultSlotAppSettingReference(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getAppSettingKeyVaultReferenceSlotWithResponse("testrg123", "testc6282", "setting", "stage",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetAppSettingsKeyVaultReferences
+
+```java
+/**
+ * Samples for WebApps GetAppSettingsKeyVaultReferences.
+ */
+public final class WebAppsGetAppSettingsKeyVaultReferencesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetKeyVaultReferencesForAppSettings.json
+ */
+ /**
+ * Sample code: Get Azure Key Vault references for app settings.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAzureKeyVaultReferencesForAppSettings(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().getAppSettingsKeyVaultReferences("testrg123", "testc6282", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetAppSettingsKeyVaultReferencesSlot
+
+```java
+/**
+ * Samples for WebApps GetAppSettingsKeyVaultReferencesSlot.
+ */
+public final class WebAppsGetAppSettingsKeyVaultReferencesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetKeyVaultReferencesForAppSettingsSlot.json
+ */
+ /**
+ * Sample code: Get Azure Key Vault references for app settings for slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAzureKeyVaultReferencesForAppSettingsForSlot(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getAppSettingsKeyVaultReferencesSlot("testrg123", "testc6282", "stage", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetAuthSettings
+
+```java
+/**
+ * Samples for WebApps GetAuthSettings.
+ */
+public final class WebAppsGetAuthSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAuthSettings.json
+ */
+ /**
+ * Sample code: List Auth Settings.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAuthSettings(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().getAuthSettingsWithResponse("testrg123", "sitef6141", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetAuthSettingsV2
+
+```java
+/**
+ * Samples for WebApps GetAuthSettingsV2.
+ */
+public final class WebAppsGetAuthSettingsV2Samples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAuthSettingsV2.json
+ */
+ /**
+ * Sample code: List Auth Settings V2.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAuthSettingsV2(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().getAuthSettingsV2WithResponse("testrg123", "sitef6141", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetAuthSettingsV2WithoutSecrets
+
+```java
+/**
+ * Samples for WebApps GetAuthSettingsV2WithoutSecrets.
+ */
+public final class WebAppsGetAuthSettingsV2WithoutSecretsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetAuthSettingsV2WithoutSecrets.json
+ */
+ /**
+ * Sample code: List Auth Settings without Secrets.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listAuthSettingsWithoutSecrets(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getAuthSettingsV2WithoutSecretsWithResponse("testrg123", "sitef6141", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetBackupStatus
+
+```java
+/**
+ * Samples for WebApps GetBackupStatus.
+ */
+public final class WebAppsGetBackupStatusSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebAppBackup.json
+ */
+ /**
+ * Sample code: Get web app backup.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getWebAppBackup(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getBackupStatusWithResponse("testrg123", "sitef6141", "12345", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetByResourceGroup
+
+```java
+/**
+ * Samples for WebApps GetByResourceGroup.
+ */
+public final class WebAppsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebApp.json
+ */
+ /**
+ * Sample code: Get Web App.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getWebApp(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().getByResourceGroupWithResponse("testrg123", "sitef6141", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetConfiguration
+
+```java
+/**
+ * Samples for WebApps GetConfiguration.
+ */
+public final class WebAppsGetConfigurationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSiteConfig.json
+ */
+ /**
+ * Sample code: Get Site Config.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getSiteConfig(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().getConfigurationWithResponse("testrg123", "sitef6141", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetFtpAllowed
+
+```java
+/**
+ * Samples for WebApps GetFtpAllowed.
+ */
+public final class WebAppsGetFtpAllowedSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetPublishingCredentialsPolicy.json
+ */
+ /**
+ * Sample code: Get FTP Allowed.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getFTPAllowed(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().getFtpAllowedWithResponse("rg", "testSite", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetFtpAllowedSlot
+
+```java
+/**
+ * Samples for WebApps GetFtpAllowedSlot.
+ */
+public final class WebAppsGetFtpAllowedSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetPublishingCredentialsPolicySlot.json
+ */
+ /**
+ * Sample code: Get FTP Allowed.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getFTPAllowed(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().getFtpAllowedSlotWithResponse("rg", "testSite", "stage", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetInstanceInfo
+
+```java
+/**
+ * Samples for WebApps GetInstanceInfo.
+ */
+public final class WebAppsGetInstanceInfoSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSiteInstanceInfo.json
+ */
+ /**
+ * Sample code: Get site instance info.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getSiteInstanceInfo(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getInstanceInfoWithResponse("testrg123", "tests346", "134987120", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetInstanceInfoSlot
+
+```java
+/**
+ * Samples for WebApps GetInstanceInfoSlot.
+ */
+public final class WebAppsGetInstanceInfoSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSiteInstanceInfo.json
+ */
+ /**
+ * Sample code: Get site instance info.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getSiteInstanceInfo(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getInstanceInfoSlotWithResponse("testrg123", "tests346", "134987120", "staging",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetInstanceWorkflowSlot
+
+```java
+/**
+ * Samples for WebApps GetInstanceWorkflowSlot.
+ */
+public final class WebAppsGetInstanceWorkflowSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWorkflow.json
+ */
+ /**
+ * Sample code: GET a workflow Slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void gETAWorkflowSlot(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getInstanceWorkflowSlotWithResponse("testrg123", "testsite2", "staging", "stateful1",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTraceOperation
+
+```java
+/**
+ * Samples for WebApps GetNetworkTraceOperation.
+ */
+public final class WebAppsGetNetworkTraceOperationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraceOperation.json
+ */
+ /**
+ * Sample code: Get the current status of a network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getTheCurrentStatusOfANetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getNetworkTraceOperationWithResponse("testrg123", "SampleApp", "c291433b-53ad-4c49-8cae-0a293eae1c6d",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTraceOperationSlot
+
+```java
+/**
+ * Samples for WebApps GetNetworkTraceOperationSlot.
+ */
+public final class WebAppsGetNetworkTraceOperationSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraceOperation.json
+ */
+ /**
+ * Sample code: Get the current status of a network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getTheCurrentStatusOfANetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getNetworkTraceOperationSlotWithResponse("testrg123", "SampleApp", "c291433b-53ad-4c49-8cae-0a293eae1c6d",
+ "Production", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTraceOperationSlotV2
+
+```java
+/**
+ * Samples for WebApps GetNetworkTraceOperationSlotV2.
+ */
+public final class WebAppsGetNetworkTraceOperationSlotV2Samples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraceOperation.json
+ */
+ /**
+ * Sample code: Get the current status of a network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getTheCurrentStatusOfANetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getNetworkTraceOperationSlotV2WithResponse("testrg123", "SampleApp",
+ "c291433b-53ad-4c49-8cae-0a293eae1c6d", "Production", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTraceOperationV2
+
+```java
+/**
+ * Samples for WebApps GetNetworkTraceOperationV2.
+ */
+public final class WebAppsGetNetworkTraceOperationV2Samples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraceOperation.json
+ */
+ /**
+ * Sample code: Get the current status of a network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getTheCurrentStatusOfANetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getNetworkTraceOperationV2WithResponse("testrg123", "SampleApp", "c291433b-53ad-4c49-8cae-0a293eae1c6d",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTraces
+
+```java
+/**
+ * Samples for WebApps GetNetworkTraces.
+ */
+public final class WebAppsGetNetworkTracesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraces.json
+ */
+ /**
+ * Sample code: Get NetworkTraces for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getNetworkTracesForASite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getNetworkTracesWithResponse("testrg123", "SampleApp", "c291433b-53ad-4c49-8cae-0a293eae1c6d",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTracesSlot
+
+```java
+/**
+ * Samples for WebApps GetNetworkTracesSlot.
+ */
+public final class WebAppsGetNetworkTracesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraces.json
+ */
+ /**
+ * Sample code: Get NetworkTraces for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getNetworkTracesForASite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getNetworkTracesSlotWithResponse("testrg123", "SampleApp", "c291433b-53ad-4c49-8cae-0a293eae1c6d",
+ "Production", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTracesSlotV2
+
+```java
+/**
+ * Samples for WebApps GetNetworkTracesSlotV2.
+ */
+public final class WebAppsGetNetworkTracesSlotV2Samples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraces.json
+ */
+ /**
+ * Sample code: Get NetworkTraces for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getNetworkTracesForASite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getNetworkTracesSlotV2WithResponse("testrg123", "SampleApp", "c291433b-53ad-4c49-8cae-0a293eae1c6d",
+ "Production", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTracesV2
+
+```java
+/**
+ * Samples for WebApps GetNetworkTracesV2.
+ */
+public final class WebAppsGetNetworkTracesV2Samples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraces.json
+ */
+ /**
+ * Sample code: Get NetworkTraces for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getNetworkTracesForASite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getNetworkTracesV2WithResponse("testrg123", "SampleApp", "c291433b-53ad-4c49-8cae-0a293eae1c6d",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetPrivateEndpointConnection
+
+```java
+/**
+ * Samples for WebApps GetPrivateEndpointConnection.
+ */
+public final class WebAppsGetPrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: Get a private endpoint connection for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAPrivateEndpointConnectionForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getPrivateEndpointConnectionWithResponse("rg", "testSite", "connection", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetPrivateEndpointConnectionSlot
+
+```java
+/**
+ * Samples for WebApps GetPrivateEndpointConnectionSlot.
+ */
+public final class WebAppsGetPrivateEndpointConnectionSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateEndpointConnectionSlot.json
+ */
+ /**
+ * Sample code: Get a private endpoint connection for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAPrivateEndpointConnectionForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getPrivateEndpointConnectionSlotWithResponse("rg", "testSite", "connection", "stage",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetPrivateLinkResources
+
+```java
+/**
+ * Samples for WebApps GetPrivateLinkResources.
+ */
+public final class WebAppsGetPrivateLinkResourcesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateLinkResources.json
+ */
+ /**
+ * Sample code: Get private link resources of a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getPrivateLinkResourcesOfASite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().getPrivateLinkResourcesWithResponse("rg", "testSite", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetPrivateLinkResourcesSlot
+
+```java
+/**
+ * Samples for WebApps GetPrivateLinkResourcesSlot.
+ */
+public final class WebAppsGetPrivateLinkResourcesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateLinkResourcesSlot.json
+ */
+ /**
+ * Sample code: Get private link resources of a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getPrivateLinkResourcesOfASite(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getPrivateLinkResourcesSlotWithResponse("rg", "testSite", "stage", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetProductionSiteDeploymentStatus
+
+```java
+/**
+ * Samples for WebApps GetProductionSiteDeploymentStatus.
+ */
+public final class WebAppsGetProductionSiteDeploymentStatusSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSiteDeploymentStatus.json
+ */
+ /**
+ * Sample code: Get Deployment Status.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getDeploymentStatus(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getProductionSiteDeploymentStatus("rg", "testSite", "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetScmAllowed
+
+```java
+/**
+ * Samples for WebApps GetScmAllowed.
+ */
+public final class WebAppsGetScmAllowedSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetPublishingCredentialsPolicy.json
+ */
+ /**
+ * Sample code: Get SCM Allowed.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getSCMAllowed(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().getScmAllowedWithResponse("rg", "testSite", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetScmAllowedSlot
+
+```java
+/**
+ * Samples for WebApps GetScmAllowedSlot.
+ */
+public final class WebAppsGetScmAllowedSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetPublishingCredentialsPolicySlot.json
+ */
+ /**
+ * Sample code: Get SCM Allowed.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getSCMAllowed(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().getScmAllowedSlotWithResponse("rg", "testSite", "stage", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetSlot
+
+```java
+/**
+ * Samples for WebApps GetSlot.
+ */
+public final class WebAppsGetSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebAppSlot.json
+ */
+ /**
+ * Sample code: Get Web App Slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getWebAppSlot(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().getSlotWithResponse("testrg123", "sitef6141", "staging", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetSlotSiteDeploymentStatusSlot
+
+```java
+/**
+ * Samples for WebApps GetSlotSiteDeploymentStatusSlot.
+ */
+public final class WebAppsGetSlotSiteDeploymentStatusSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSiteDeploymentStatusSlot.json
+ */
+ /**
+ * Sample code: Get Deployment Status Slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getDeploymentStatusSlot(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getSlotSiteDeploymentStatusSlot("rg", "testSite", "stage", "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_GetWorkflow
+
+```java
+/**
+ * Samples for WebApps GetWorkflow.
+ */
+public final class WebAppsGetWorkflowSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWorkflow.json
+ */
+ /**
+ * Sample code: GET a workflow.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void gETAWorkflow(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .getWorkflowWithResponse("testrg123", "testsite2", "stateful1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_List
+
+```java
+/**
+ * Samples for WebApps List.
+ */
+public final class WebAppsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWebApps.json
+ */
+ /**
+ * Sample code: List Web apps for subscription.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listWebAppsForSubscription(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListApplicationSettings
+
+```java
+/**
+ * Samples for WebApps ListApplicationSettings.
+ */
+public final class WebAppsListApplicationSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAppSettings.json
+ */
+ /**
+ * Sample code: List App Settings.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listAppSettings(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .listApplicationSettingsWithResponse("testrg123", "sitef6141", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListBackupStatusSecrets
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.BackupRequestInner;
+import com.azure.resourcemanager.appservice.generated.models.BackupSchedule;
+import com.azure.resourcemanager.appservice.generated.models.DatabaseBackupSetting;
+import com.azure.resourcemanager.appservice.generated.models.DatabaseType;
+import com.azure.resourcemanager.appservice.generated.models.FrequencyUnit;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
+/**
+ * Samples for WebApps ListBackupStatusSecrets.
+ */
+public final class WebAppsListBackupStatusSecretsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebAppBackupWithSecrets.json
+ */
+ /**
+ * Sample code: Get web app backup with secrets.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getWebAppBackupWithSecrets(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .listBackupStatusSecretsWithResponse("testrg123", "sitef6141", "12345", new BackupRequestInner()
+ .withBackupName("abcdwe")
+ .withEnabled(true)
+ .withStorageAccountUrl(
+ "DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey=")
+ .withBackupSchedule(new BackupSchedule().withFrequencyInterval(7)
+ .withFrequencyUnit(FrequencyUnit.DAY)
+ .withKeepAtLeastOneBackup(true)
+ .withRetentionPeriodInDays(30)
+ .withStartTime(OffsetDateTime.parse("2022-09-02T17:33:11.641Z")))
+ .withDatabases(Arrays.asList(
+ new DatabaseBackupSetting().withDatabaseType(DatabaseType.SQL_AZURE)
+ .withName("backenddb")
+ .withConnectionStringName("backend")
+ .withConnectionString(
+ "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"),
+ new DatabaseBackupSetting().withDatabaseType(DatabaseType.SQL_AZURE)
+ .withName("statsdb")
+ .withConnectionStringName("stats")
+ .withConnectionString(
+ "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListBackups
+
+```java
+/**
+ * Samples for WebApps ListBackups.
+ */
+public final class WebAppsListBackupsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWebAppBackups.json
+ */
+ /**
+ * Sample code: List web app backups.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listWebAppBackups(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().listBackups("testrg123", "sitef6141", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListBasicPublishingCredentialsPolicies
+
+```java
+/**
+ * Samples for WebApps ListBasicPublishingCredentialsPolicies.
+ */
+public final class WebAppsListBasicPublishingCredentialsPoliciesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListPublishingCredentialsPolicies.json
+ */
+ /**
+ * Sample code: List Publishing Credentials Policies.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listPublishingCredentialsPolicies(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .listBasicPublishingCredentialsPolicies("testrg123", "testsite", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListBasicPublishingCredentialsPoliciesSlot
+
+```java
+/**
+ * Samples for WebApps ListBasicPublishingCredentialsPoliciesSlot.
+ */
+public final class WebAppsListBasicPublishingCredentialsPoliciesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListPublishingCredentialsPoliciesSlot.json
+ */
+ /**
+ * Sample code: List Publishing Credentials Policies.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listPublishingCredentialsPolicies(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .listBasicPublishingCredentialsPoliciesSlot("testrg123", "testsite", "staging",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListByResourceGroup
+
+```java
+/**
+ * Samples for WebApps ListByResourceGroup.
+ */
+public final class WebAppsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWebAppsByResourceGroup.json
+ */
+ /**
+ * Sample code: List Web Apps by Resource group.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listWebAppsByResourceGroup(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().listByResourceGroup("testrg123", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListConfigurations
+
+```java
+/**
+ * Samples for WebApps ListConfigurations.
+ */
+public final class WebAppsListConfigurationsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWebAppConfigurations.json
+ */
+ /**
+ * Sample code: List web app configurations.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listWebAppConfigurations(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().listConfigurations("testrg123", "sitef6141", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListInstanceWorkflowsSlot
+
+```java
+/**
+ * Samples for WebApps ListInstanceWorkflowsSlot.
+ */
+public final class WebAppsListInstanceWorkflowsSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWorkflows.json
+ */
+ /**
+ * Sample code: List the workflows Slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listTheWorkflowsSlot(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .listInstanceWorkflowsSlot("testrg123", "testsite2", "staging", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListProductionSiteDeploymentStatuses
+
+```java
+/**
+ * Samples for WebApps ListProductionSiteDeploymentStatuses.
+ */
+public final class WebAppsListProductionSiteDeploymentStatusesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListSiteDeploymentStatus.json
+ */
+ /**
+ * Sample code: List Deployment Status.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listDeploymentStatus(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().listProductionSiteDeploymentStatuses("rg", "testSite", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListSiteBackups
+
+```java
+/**
+ * Samples for WebApps ListSiteBackups.
+ */
+public final class WebAppsListSiteBackupsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListSlotBackups.json
+ */
+ /**
+ * Sample code: List backups.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listBackups(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().listSiteBackups("testrg123", "tests346", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListSiteBackupsSlot
+
+```java
+/**
+ * Samples for WebApps ListSiteBackupsSlot.
+ */
+public final class WebAppsListSiteBackupsSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListSlotBackups.json
+ */
+ /**
+ * Sample code: List backups.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listBackups(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().listSiteBackupsSlot("testrg123", "tests346", "staging", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListSlotSiteDeploymentStatusesSlot
+
+```java
+/**
+ * Samples for WebApps ListSlotSiteDeploymentStatusesSlot.
+ */
+public final class WebAppsListSlotSiteDeploymentStatusesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListSiteDeploymentStatusSlot.json
+ */
+ /**
+ * Sample code: List Deployment Status Slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listDeploymentStatusSlot(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .listSlotSiteDeploymentStatusesSlot("rg", "testSite", "stage", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListSlots
+
+```java
+/**
+ * Samples for WebApps ListSlots.
+ */
+public final class WebAppsListSlotsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWebAppSlots.json
+ */
+ /**
+ * Sample code: List Web App Slots.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listWebAppSlots(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().listSlots("testrg123", "sitef6141", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListWorkflows
+
+```java
+/**
+ * Samples for WebApps ListWorkflows.
+ */
+public final class WebAppsListWorkflowsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWorkflows.json
+ */
+ /**
+ * Sample code: List the workflows.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listTheWorkflows(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().listWorkflows("testrg123", "testsite2", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListWorkflowsConnections
+
+```java
+/**
+ * Samples for WebApps ListWorkflowsConnections.
+ */
+public final class WebAppsListWorkflowsConnectionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWorkflowsConfigurationConnections.json
+ */
+ /**
+ * Sample code: List the Instance Workflows Configuration Connections.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listTheInstanceWorkflowsConfigurationConnections(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .listWorkflowsConnectionsWithResponse("testrg123", "testsite2", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_ListWorkflowsConnectionsSlot
+
+```java
+/**
+ * Samples for WebApps ListWorkflowsConnectionsSlot.
+ */
+public final class WebAppsListWorkflowsConnectionsSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWorkflowsConfigurationConnections.json
+ */
+ /**
+ * Sample code: List the Instance Workflows Configuration Connections Slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listTheInstanceWorkflowsConfigurationConnectionsSlot(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .listWorkflowsConnectionsSlotWithResponse("testrg123", "testsite2", "staging",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_Restore
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.RestoreRequestInner;
+import com.azure.resourcemanager.appservice.generated.models.DatabaseBackupSetting;
+import com.azure.resourcemanager.appservice.generated.models.DatabaseType;
+import java.util.Arrays;
+
+/**
+ * Samples for WebApps Restore.
+ */
+public final class WebAppsRestoreSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/RestoreWebAppBackup.json
+ */
+ /**
+ * Sample code: Restore web app from backup.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ restoreWebAppFromBackup(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .restore("testrg123", "sitef6141", "123244", new RestoreRequestInner()
+ .withStorageAccountUrl(
+ "DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey=")
+ .withOverwrite(true)
+ .withSiteName("sitef6141")
+ .withDatabases(Arrays.asList(
+ new DatabaseBackupSetting().withDatabaseType(DatabaseType.SQL_AZURE)
+ .withName("backenddb")
+ .withConnectionStringName("backend")
+ .withConnectionString(
+ "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"),
+ new DatabaseBackupSetting().withDatabaseType(DatabaseType.SQL_AZURE)
+ .withName("statsdb")
+ .withConnectionStringName("stats")
+ .withConnectionString(
+ "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_StartNetworkTrace
+
+```java
+/**
+ * Samples for WebApps StartNetworkTrace.
+ */
+public final class WebAppsStartNetworkTraceSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StartWebSiteNetworkTraceOperation.json
+ */
+ /**
+ * Sample code: Start a new network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void startANewNetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().startNetworkTrace("testrg123", "SampleApp", 60, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_StartNetworkTraceSlot
+
+```java
+/**
+ * Samples for WebApps StartNetworkTraceSlot.
+ */
+public final class WebAppsStartNetworkTraceSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StartWebSiteNetworkTraceOperation.json
+ */
+ /**
+ * Sample code: Start a new network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void startANewNetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .startNetworkTraceSlot("testrg123", "SampleApp", "Production", 60, null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_StartWebSiteNetworkTraceOperation
+
+```java
+/**
+ * Samples for WebApps StartWebSiteNetworkTraceOperation.
+ */
+public final class WebAppsStartWebSiteNetworkTraceOperationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StartWebSiteNetworkTraceOperation.json
+ */
+ /**
+ * Sample code: Start a new network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void startANewNetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .startWebSiteNetworkTraceOperation("testrg123", "SampleApp", 60, null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_StartWebSiteNetworkTraceOperationSlot
+
+```java
+/**
+ * Samples for WebApps StartWebSiteNetworkTraceOperationSlot.
+ */
+public final class WebAppsStartWebSiteNetworkTraceOperationSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StartWebSiteNetworkTraceOperation.json
+ */
+ /**
+ * Sample code: Start a new network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void startANewNetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .startWebSiteNetworkTraceOperationSlot("testrg123", "SampleApp", "Production", 60, null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_StopNetworkTrace
+
+```java
+/**
+ * Samples for WebApps StopNetworkTrace.
+ */
+public final class WebAppsStopNetworkTraceSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StopWebSiteNetworkTrace.json
+ */
+ /**
+ * Sample code: Stop a currently running network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void stopACurrentlyRunningNetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps().stopNetworkTraceWithResponse("testrg123", "SampleApp", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_StopNetworkTraceSlot
+
+```java
+/**
+ * Samples for WebApps StopNetworkTraceSlot.
+ */
+public final class WebAppsStopNetworkTraceSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StopWebSiteNetworkTrace.json
+ */
+ /**
+ * Sample code: Stop a currently running network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void stopACurrentlyRunningNetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .stopNetworkTraceSlotWithResponse("testrg123", "SampleApp", "Production", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_StopWebSiteNetworkTrace
+
+```java
+/**
+ * Samples for WebApps StopWebSiteNetworkTrace.
+ */
+public final class WebAppsStopWebSiteNetworkTraceSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StopWebSiteNetworkTrace.json
+ */
+ /**
+ * Sample code: Stop a currently running network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void stopACurrentlyRunningNetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .stopWebSiteNetworkTraceWithResponse("testrg123", "SampleApp", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_StopWebSiteNetworkTraceSlot
+
+```java
+/**
+ * Samples for WebApps StopWebSiteNetworkTraceSlot.
+ */
+public final class WebAppsStopWebSiteNetworkTraceSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StopWebSiteNetworkTrace.json
+ */
+ /**
+ * Sample code: Stop a currently running network trace operation for a site.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void stopACurrentlyRunningNetworkTraceOperationForASite(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .stopWebSiteNetworkTraceSlotWithResponse("testrg123", "SampleApp", "Production",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_Update
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.Site;
+
+/**
+ * Samples for WebApps Update.
+ */
+public final class WebAppsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateWebApp.json
+ */
+ /**
+ * Sample code: Update web app.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateWebApp(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ Site resource = manager.webApps()
+ .getByResourceGroupWithResponse("testrg123", "sitef6141", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withServerFarmId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp")
+ .apply();
+ }
+}
+```
+
+### WebApps_UpdateApplicationSettings
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.StringDictionaryInner;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for WebApps UpdateApplicationSettings.
+ */
+public final class WebAppsUpdateApplicationSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateAppSettings.json
+ */
+ /**
+ * Sample code: Update App Settings.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateAppSettings(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .updateApplicationSettings("testrg123", "sitef6141",
+ new StringDictionaryInner().withProperties(mapOf("Setting1", "Value1", "Setting2", "Value2")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### WebApps_UpdateAuthSettings
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.SiteAuthSettingsInner;
+import com.azure.resourcemanager.appservice.generated.models.BuiltInAuthenticationProvider;
+import com.azure.resourcemanager.appservice.generated.models.UnauthenticatedClientAction;
+import java.util.Arrays;
+
+/**
+ * Samples for WebApps UpdateAuthSettings.
+ */
+public final class WebAppsUpdateAuthSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateAuthSettings.json
+ */
+ /**
+ * Sample code: Update Auth Settings.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateAuthSettings(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .updateAuthSettingsWithResponse("testrg123", "sitef6141",
+ new SiteAuthSettingsInner().withEnabled(true)
+ .withRuntimeVersion("~1")
+ .withUnauthenticatedClientAction(UnauthenticatedClientAction.REDIRECT_TO_LOGIN_PAGE)
+ .withTokenStoreEnabled(true)
+ .withAllowedExternalRedirectUrls(
+ Arrays.asList("sitef6141.customdomain.net", "sitef6141.customdomain.info"))
+ .withDefaultProvider(BuiltInAuthenticationProvider.GOOGLE)
+ .withTokenRefreshExtensionHours(120.0D)
+ .withClientId("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_UpdateAuthSettingsV2
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.SiteAuthSettingsV2Inner;
+import com.azure.resourcemanager.appservice.generated.models.AllowedAudiencesValidation;
+import com.azure.resourcemanager.appservice.generated.models.AuthPlatform;
+import com.azure.resourcemanager.appservice.generated.models.ClientRegistration;
+import com.azure.resourcemanager.appservice.generated.models.CookieExpiration;
+import com.azure.resourcemanager.appservice.generated.models.CookieExpirationConvention;
+import com.azure.resourcemanager.appservice.generated.models.FileSystemTokenStore;
+import com.azure.resourcemanager.appservice.generated.models.ForwardProxy;
+import com.azure.resourcemanager.appservice.generated.models.ForwardProxyConvention;
+import com.azure.resourcemanager.appservice.generated.models.GlobalValidation;
+import com.azure.resourcemanager.appservice.generated.models.Google;
+import com.azure.resourcemanager.appservice.generated.models.HttpSettings;
+import com.azure.resourcemanager.appservice.generated.models.HttpSettingsRoutes;
+import com.azure.resourcemanager.appservice.generated.models.IdentityProviders;
+import com.azure.resourcemanager.appservice.generated.models.Login;
+import com.azure.resourcemanager.appservice.generated.models.LoginRoutes;
+import com.azure.resourcemanager.appservice.generated.models.LoginScopes;
+import com.azure.resourcemanager.appservice.generated.models.Nonce;
+import com.azure.resourcemanager.appservice.generated.models.TokenStore;
+import com.azure.resourcemanager.appservice.generated.models.UnauthenticatedClientActionV2;
+import java.util.Arrays;
+
+/**
+ * Samples for WebApps UpdateAuthSettingsV2.
+ */
+public final class WebAppsUpdateAuthSettingsV2Samples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateAuthSettingsV2.json
+ */
+ /**
+ * Sample code: Update Auth Settings V2.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateAuthSettingsV2(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .updateAuthSettingsV2WithResponse("testrg123", "sitef6141", new SiteAuthSettingsV2Inner().withPlatform(
+ new AuthPlatform().withEnabled(true).withRuntimeVersion("~1").withConfigFilePath("/auth/config.json"))
+ .withGlobalValidation(new GlobalValidation().withRequireAuthentication(true)
+ .withUnauthenticatedClientAction(UnauthenticatedClientActionV2.RETURN403)
+ .withExcludedPaths(Arrays.asList("/nosecrets/Path")))
+ .withIdentityProviders(
+ new IdentityProviders()
+ .withGoogle(new Google().withEnabled(true)
+ .withRegistration(new ClientRegistration()
+ .withClientId("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com")
+ .withClientSecretSettingName("fakeTokenPlaceholder"))
+ .withLogin(new LoginScopes().withScopes(Arrays.asList("admin")))
+ .withValidation(new AllowedAudiencesValidation()
+ .withAllowedAudiences(Arrays.asList("https://example.com")))))
+ .withLogin(new Login().withRoutes(new LoginRoutes().withLogoutEndpoint("https://app.com/logout"))
+ .withTokenStore(new TokenStore().withEnabled(true)
+ .withTokenRefreshExtensionHours(96.0D)
+ .withFileSystem(new FileSystemTokenStore().withDirectory("/wwwroot/sites/example")))
+ .withPreserveUrlFragmentsForLogins(true)
+ .withAllowedExternalRedirectUrls(Arrays.asList("https://someurl.com"))
+ .withCookieExpiration(
+ new CookieExpiration().withConvention(CookieExpirationConvention.IDENTITY_PROVIDER_DERIVED)
+ .withTimeToExpiration("2022:09-01T00:00Z"))
+ .withNonce(new Nonce().withValidateNonce(true)))
+ .withHttpSettings(new HttpSettings().withRequireHttps(true)
+ .withRoutes(new HttpSettingsRoutes().withApiPrefix("/authv2/"))
+ .withForwardProxy(new ForwardProxy().withConvention(ForwardProxyConvention.STANDARD)
+ .withCustomHostHeaderName("authHeader")
+ .withCustomProtoHeaderName("customProtoHeader"))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_UpdateAzureStorageAccounts
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.AzureStoragePropertyDictionaryResourceInner;
+import com.azure.resourcemanager.appservice.generated.models.AzureStorageInfoValue;
+import com.azure.resourcemanager.appservice.generated.models.AzureStorageType;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for WebApps UpdateAzureStorageAccounts.
+ */
+public final class WebAppsUpdateAzureStorageAccountsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateAzureStorageAccounts.json
+ */
+ /**
+ * Sample code: Update Azure Storage Accounts.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ updateAzureStorageAccounts(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .updateAzureStorageAccountsWithResponse("testrg123", "sitef6141",
+ new AzureStoragePropertyDictionaryResourceInner().withProperties(mapOf("account1",
+ new AzureStorageInfoValue().withType(AzureStorageType.AZURE_FILES)
+ .withAccountName("testsa")
+ .withShareName("web")
+ .withAccessKey("fakeTokenPlaceholder")
+ .withMountPath("/mounts/a/files"))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### WebApps_UpdateFtpAllowed
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.CsmPublishingCredentialsPoliciesEntityInner;
+
+/**
+ * Samples for WebApps UpdateFtpAllowed.
+ */
+public final class WebAppsUpdateFtpAllowedSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdatePublishingCredentialsPolicy.json
+ */
+ /**
+ * Sample code: Update FTP Allowed.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateFTPAllowed(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .updateFtpAllowedWithResponse("rg", "testSite",
+ new CsmPublishingCredentialsPoliciesEntityInner().withAllow(true), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_UpdateFtpAllowedSlot
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.CsmPublishingCredentialsPoliciesEntityInner;
+
+/**
+ * Samples for WebApps UpdateFtpAllowedSlot.
+ */
+public final class WebAppsUpdateFtpAllowedSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdatePublishingCredentialsPolicySlot.json
+ */
+ /**
+ * Sample code: Update FTP Allowed.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateFTPAllowed(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .updateFtpAllowedSlotWithResponse("rg", "testSite", "stage",
+ new CsmPublishingCredentialsPoliciesEntityInner().withAllow(true), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_UpdateScmAllowed
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.CsmPublishingCredentialsPoliciesEntityInner;
+
+/**
+ * Samples for WebApps UpdateScmAllowed.
+ */
+public final class WebAppsUpdateScmAllowedSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdatePublishingCredentialsPolicy.json
+ */
+ /**
+ * Sample code: Update SCM Allowed.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateSCMAllowed(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .updateScmAllowedWithResponse("rg", "testSite",
+ new CsmPublishingCredentialsPoliciesEntityInner().withAllow(true), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_UpdateScmAllowedSlot
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.CsmPublishingCredentialsPoliciesEntityInner;
+
+/**
+ * Samples for WebApps UpdateScmAllowedSlot.
+ */
+public final class WebAppsUpdateScmAllowedSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdatePublishingCredentialsPolicySlot.json
+ */
+ /**
+ * Sample code: Update SCM Allowed.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateSCMAllowed(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .updateScmAllowedSlotWithResponse("rg", "testSite", "stage",
+ new CsmPublishingCredentialsPoliciesEntityInner().withAllow(true), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WebApps_UpdateSlot
+
+```java
+import com.azure.resourcemanager.appservice.generated.fluent.models.SitePatchResourceInner;
+
+/**
+ * Samples for WebApps UpdateSlot.
+ */
+public final class WebAppsUpdateSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateWebAppSlot.json
+ */
+ /**
+ * Sample code: Update Web App Slot.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void updateWebAppSlot(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.webApps()
+ .updateSlotWithResponse("testrg123", "sitef6141", "staging", new SitePatchResourceInner().withServerFarmId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRunActionRepetitions_Get
+
+```java
+/**
+ * Samples for WorkflowRunActionRepetitions Get.
+ */
+public final class WorkflowRunActionRepetitionsGetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActionRepetitions_Get.json
+ */
+ /**
+ * Sample code: Get a repetition.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getARepetition(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRunActionRepetitions()
+ .getWithResponse("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351",
+ "testAction", "000001", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRunActionRepetitions_List
+
+```java
+/**
+ * Samples for WorkflowRunActionRepetitions List.
+ */
+public final class WorkflowRunActionRepetitionsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActionRepetitions_List.json
+ */
+ /**
+ * Sample code: List repetitions.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listRepetitions(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRunActionRepetitions()
+ .list("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "testAction",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRunActionRepetitions_ListExpressionTraces
+
+```java
+/**
+ * Samples for WorkflowRunActionRepetitions ListExpressionTraces.
+ */
+public final class WorkflowRunActionRepetitionsListExpressionTracesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActionRepetitions_ListExpressionTraces.json
+ */
+ /**
+ * Sample code: List expression traces for a repetition.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listExpressionTracesForARepetition(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRunActionRepetitions()
+ .listExpressionTraces("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351",
+ "testAction", "000001", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRunActionRepetitionsRequestHistories_Get
+
+```java
+/**
+ * Samples for WorkflowRunActionRepetitionsRequestHistories Get.
+ */
+public final class WorkflowRunActionRepetitionsRequestHistoriesGetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json
+ */
+ /**
+ * Sample code: Get a repetition request history.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getARepetitionRequestHistory(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRunActionRepetitionsRequestHistories()
+ .getWithResponse("test-resource-group", "test-name", "test-workflow", "08586776228332053161046300351",
+ "HTTP_Webhook", "000001", "08586611142732800686", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRunActionRepetitionsRequestHistories_List
+
+```java
+/**
+ * Samples for WorkflowRunActionRepetitionsRequestHistories List.
+ */
+public final class WorkflowRunActionRepetitionsRequestHistoriesListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActionRepetitionsRequestHistories_List.json
+ */
+ /**
+ * Sample code: List repetition request history.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listRepetitionRequestHistory(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRunActionRepetitionsRequestHistories()
+ .list("test-resource-group", "test-name", "test-workflow", "08586776228332053161046300351", "HTTP_Webhook",
+ "000001", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRunActionScopeRepetitions_Get
+
+```java
+/**
+ * Samples for WorkflowRunActionScopeRepetitions Get.
+ */
+public final class WorkflowRunActionScopeRepetitionsGetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActionScopeRepetitions_Get.json
+ */
+ /**
+ * Sample code: Get a scoped repetition.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAScopedRepetition(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRunActionScopeRepetitions()
+ .getWithResponse("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "for_each",
+ "000000", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRunActionScopeRepetitions_List
+
+```java
+/**
+ * Samples for WorkflowRunActionScopeRepetitions List.
+ */
+public final class WorkflowRunActionScopeRepetitionsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActionScopeRepetitions_List.json
+ */
+ /**
+ * Sample code: List the scoped repetitions.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listTheScopedRepetitions(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRunActionScopeRepetitions()
+ .list("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "for_each",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRunActions_Get
+
+```java
+/**
+ * Samples for WorkflowRunActions Get.
+ */
+public final class WorkflowRunActionsGetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActions_Get.json
+ */
+ /**
+ * Sample code: Get a workflow run action.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAWorkflowRunAction(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRunActions()
+ .getWithResponse("test-resource-group", "test-name", "test-workflow", "08586676746934337772206998657CU22",
+ "HTTP", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRunActions_List
+
+```java
+/**
+ * Samples for WorkflowRunActions List.
+ */
+public final class WorkflowRunActionsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActions_List.json
+ */
+ /**
+ * Sample code: List a workflow run actions.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listAWorkflowRunActions(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRunActions()
+ .list("test-resource-group", "test-name", "test-workflow", "08586676746934337772206998657CU22", null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRunActions_ListExpressionTraces
+
+```java
+/**
+ * Samples for WorkflowRunActions ListExpressionTraces.
+ */
+public final class WorkflowRunActionsListExpressionTracesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActions_ListExpressionTraces.json
+ */
+ /**
+ * Sample code: List expression traces.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listExpressionTraces(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRunActions()
+ .listExpressionTraces("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351",
+ "testAction", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRuns_Cancel
+
+```java
+/**
+ * Samples for WorkflowRuns Cancel.
+ */
+public final class WorkflowRunsCancelSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRuns_Cancel.json
+ */
+ /**
+ * Sample code: Cancel a workflow run.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void cancelAWorkflowRun(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRuns()
+ .cancelWithResponse("test-resource-group", "test-name", "test-workflow",
+ "08586676746934337772206998657CU22", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRuns_Get
+
+```java
+/**
+ * Samples for WorkflowRuns Get.
+ */
+public final class WorkflowRunsGetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRuns_Get.json
+ */
+ /**
+ * Sample code: Get a run for a workflow.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getARunForAWorkflow(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRuns()
+ .getWithResponse("test-resource-group", "test-name", "test-workflow", "08586676746934337772206998657CU22",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowRuns_List
+
+```java
+/**
+ * Samples for WorkflowRuns List.
+ */
+public final class WorkflowRunsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRuns_List.json
+ */
+ /**
+ * Sample code: List workflow runs.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listWorkflowRuns(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowRuns()
+ .list("test-resource-group", "test-name", "test-workflow", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowTriggerHistories_Get
+
+```java
+/**
+ * Samples for WorkflowTriggerHistories Get.
+ */
+public final class WorkflowTriggerHistoriesGetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggerHistories_Get.json
+ */
+ /**
+ * Sample code: Get a workflow trigger history.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getAWorkflowTriggerHistory(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowTriggerHistories()
+ .getWithResponse("testResourceGroup", "test-name", "testWorkflowName", "testTriggerName",
+ "08586676746934337772206998657CU22", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowTriggerHistories_List
+
+```java
+/**
+ * Samples for WorkflowTriggerHistories List.
+ */
+public final class WorkflowTriggerHistoriesListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggerHistories_List.json
+ */
+ /**
+ * Sample code: List a workflow trigger history.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listAWorkflowTriggerHistory(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowTriggerHistories()
+ .list("testResourceGroup", "test-name", "testWorkflowName", "testTriggerName", null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowTriggerHistories_Resubmit
+
+```java
+/**
+ * Samples for WorkflowTriggerHistories Resubmit.
+ */
+public final class WorkflowTriggerHistoriesResubmitSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggerHistories_Resubmit.json
+ */
+ /**
+ * Sample code: Resubmit a workflow run based on the trigger history.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void resubmitAWorkflowRunBasedOnTheTriggerHistory(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowTriggerHistories()
+ .resubmit("testResourceGroup", "test-name", "testWorkflowName", "testTriggerName", "testHistoryName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowTriggers_Get
+
+```java
+/**
+ * Samples for WorkflowTriggers Get.
+ */
+public final class WorkflowTriggersGetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggers_Get.json
+ */
+ /**
+ * Sample code: Get a workflow trigger.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAWorkflowTrigger(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowTriggers()
+ .getWithResponse("test-resource-group", "test-name", "test-workflow", "manual",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowTriggers_GetSchemaJson
+
+```java
+/**
+ * Samples for WorkflowTriggers GetSchemaJson.
+ */
+public final class WorkflowTriggersGetSchemaJsonSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggers_GetSchemaJson.json
+ */
+ /**
+ * Sample code: Get trigger schema.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getTriggerSchema(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowTriggers()
+ .getSchemaJsonWithResponse("testResourceGroup", "test-name", "testWorkflow", "testTrigger",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowTriggers_List
+
+```java
+/**
+ * Samples for WorkflowTriggers List.
+ */
+public final class WorkflowTriggersListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggers_List.json
+ */
+ /**
+ * Sample code: List workflow triggers.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void listWorkflowTriggers(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowTriggers()
+ .list("test-resource-group", "test-name", "test-workflow", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowTriggers_ListCallbackUrl
+
+```java
+/**
+ * Samples for WorkflowTriggers ListCallbackUrl.
+ */
+public final class WorkflowTriggersListCallbackUrlSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggers_ListCallbackUrl.json
+ */
+ /**
+ * Sample code: Get the callback URL for a trigger.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ getTheCallbackURLForATrigger(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowTriggers()
+ .listCallbackUrlWithResponse("test-resource-group", "test-name", "test-workflow", "manual",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowTriggers_Run
+
+```java
+/**
+ * Samples for WorkflowTriggers Run.
+ */
+public final class WorkflowTriggersRunSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggers_Run.json
+ */
+ /**
+ * Sample code: Run a workflow trigger.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void runAWorkflowTrigger(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowTriggers()
+ .run("test-resource-group", "test-name", "test-workflow", "recurrence", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowVersions_Get
+
+```java
+/**
+ * Samples for WorkflowVersions Get.
+ */
+public final class WorkflowVersionsGetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowVersions_Get.json
+ */
+ /**
+ * Sample code: Get a workflow version.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getAWorkflowVersion(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowVersions()
+ .getWithResponse("test-resource-group", "test-name", "test-workflow", "08586676824806722526",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkflowVersions_List
+
+```java
+/**
+ * Samples for WorkflowVersions List.
+ */
+public final class WorkflowVersionsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowVersions_List.json
+ */
+ /**
+ * Sample code: List a workflows versions.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void
+ listAWorkflowsVersions(com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflowVersions()
+ .list("test-resource-group", "test-name", "test-workflow", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Workflows_RegenerateAccessKey
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.KeyType;
+import com.azure.resourcemanager.appservice.generated.models.RegenerateActionParameter;
+
+/**
+ * Samples for Workflows RegenerateAccessKey.
+ */
+public final class WorkflowsRegenerateAccessKeySamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Workflows_RegenerateAccessKey.json
+ */
+ /**
+ * Sample code: Regenerate the callback URL access key for request triggers.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void regenerateTheCallbackURLAccessKeyForRequestTriggers(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager.workflows()
+ .regenerateAccessKeyWithResponse("testResourceGroup", "test-name", "testWorkflowName",
+ new RegenerateActionParameter().withKeyType(KeyType.PRIMARY), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Workflows_Validate
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.appservice.generated.models.Kind;
+import com.azure.resourcemanager.appservice.generated.models.Workflow;
+import java.io.IOException;
+
+/**
+ * Samples for Workflows Validate.
+ */
+public final class WorkflowsValidateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Workflows_Validate.json
+ */
+ /**
+ * Sample code: Validate a workflow.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void validateAWorkflow(com.azure.resourcemanager.appservice.generated.AppServiceManager manager)
+ throws IOException {
+ manager.workflows()
+ .validateWithResponse("test-resource-group", "test-name", "test-workflow",
+ new Workflow().withDefinition(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{},\"triggers\":{}}",
+ Object.class, SerializerEncoding.JSON))
+ .withKind(Kind.STATEFUL),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/appservice/azure-resourcemanager-appservice-generated/pom.xml b/sdk/appservice/azure-resourcemanager-appservice-generated/pom.xml
new file mode 100644
index 0000000000000..e6e3fa675d5fd
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/pom.xml
@@ -0,0 +1,62 @@
+
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-appservice-generated
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for AppService Management
+ This package contains Microsoft Azure SDK for AppService Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. WebSite Management Client. Package tag package-2023-12.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ 0
+ 0
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.48.0
+
+
+ com.azure
+ azure-core-management
+ 1.13.0
+
+
+
diff --git a/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/AppServiceManager.java b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/AppServiceManager.java
new file mode 100644
index 0000000000000..30c3f4962d697
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/AppServiceManager.java
@@ -0,0 +1,772 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appservice.generated;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryOptions;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appservice.generated.fluent.WebSiteManagementClient;
+import com.azure.resourcemanager.appservice.generated.implementation.AppServiceCertificateOrdersImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.AppServiceEnvironmentsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.AppServicePlansImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.CertificateOrdersDiagnosticsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.CertificateRegistrationProvidersImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.CertificatesImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.ContainerAppsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.ContainerAppsRevisionsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.DeletedWebAppsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.DiagnosticsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.DomainRegistrationProvidersImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.DomainsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.GetUsagesInLocationsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.GlobalsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.KubeEnvironmentsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.ProvidersImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.RecommendationsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.ResourceHealthMetadatasImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.ResourceProvidersImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.StaticSitesImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.TopLevelDomainsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.WebAppsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.WebSiteManagementClientBuilder;
+import com.azure.resourcemanager.appservice.generated.implementation.WorkflowRunActionRepetitionsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.WorkflowRunActionRepetitionsRequestHistoriesImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.WorkflowRunActionScopeRepetitionsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.WorkflowRunActionsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.WorkflowRunsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.WorkflowsImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.WorkflowTriggerHistoriesImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.WorkflowTriggersImpl;
+import com.azure.resourcemanager.appservice.generated.implementation.WorkflowVersionsImpl;
+import com.azure.resourcemanager.appservice.generated.models.AppServiceCertificateOrders;
+import com.azure.resourcemanager.appservice.generated.models.AppServiceEnvironments;
+import com.azure.resourcemanager.appservice.generated.models.AppServicePlans;
+import com.azure.resourcemanager.appservice.generated.models.CertificateOrdersDiagnostics;
+import com.azure.resourcemanager.appservice.generated.models.CertificateRegistrationProviders;
+import com.azure.resourcemanager.appservice.generated.models.Certificates;
+import com.azure.resourcemanager.appservice.generated.models.ContainerApps;
+import com.azure.resourcemanager.appservice.generated.models.ContainerAppsRevisions;
+import com.azure.resourcemanager.appservice.generated.models.DeletedWebApps;
+import com.azure.resourcemanager.appservice.generated.models.Diagnostics;
+import com.azure.resourcemanager.appservice.generated.models.DomainRegistrationProviders;
+import com.azure.resourcemanager.appservice.generated.models.Domains;
+import com.azure.resourcemanager.appservice.generated.models.GetUsagesInLocations;
+import com.azure.resourcemanager.appservice.generated.models.Globals;
+import com.azure.resourcemanager.appservice.generated.models.KubeEnvironments;
+import com.azure.resourcemanager.appservice.generated.models.Providers;
+import com.azure.resourcemanager.appservice.generated.models.Recommendations;
+import com.azure.resourcemanager.appservice.generated.models.ResourceHealthMetadatas;
+import com.azure.resourcemanager.appservice.generated.models.ResourceProviders;
+import com.azure.resourcemanager.appservice.generated.models.StaticSites;
+import com.azure.resourcemanager.appservice.generated.models.TopLevelDomains;
+import com.azure.resourcemanager.appservice.generated.models.WebApps;
+import com.azure.resourcemanager.appservice.generated.models.WorkflowRunActionRepetitions;
+import com.azure.resourcemanager.appservice.generated.models.WorkflowRunActionRepetitionsRequestHistories;
+import com.azure.resourcemanager.appservice.generated.models.WorkflowRunActions;
+import com.azure.resourcemanager.appservice.generated.models.WorkflowRunActionScopeRepetitions;
+import com.azure.resourcemanager.appservice.generated.models.WorkflowRuns;
+import com.azure.resourcemanager.appservice.generated.models.Workflows;
+import com.azure.resourcemanager.appservice.generated.models.WorkflowTriggerHistories;
+import com.azure.resourcemanager.appservice.generated.models.WorkflowTriggers;
+import com.azure.resourcemanager.appservice.generated.models.WorkflowVersions;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+/**
+ * Entry point to AppServiceManager.
+ * WebSite Management Client.
+ */
+public final class AppServiceManager {
+ private AppServiceCertificateOrders appServiceCertificateOrders;
+
+ private CertificateOrdersDiagnostics certificateOrdersDiagnostics;
+
+ private CertificateRegistrationProviders certificateRegistrationProviders;
+
+ private Domains domains;
+
+ private TopLevelDomains topLevelDomains;
+
+ private DomainRegistrationProviders domainRegistrationProviders;
+
+ private AppServiceEnvironments appServiceEnvironments;
+
+ private AppServicePlans appServicePlans;
+
+ private Certificates certificates;
+
+ private ContainerApps containerApps;
+
+ private ContainerAppsRevisions containerAppsRevisions;
+
+ private DeletedWebApps deletedWebApps;
+
+ private Diagnostics diagnostics;
+
+ private Globals globals;
+
+ private KubeEnvironments kubeEnvironments;
+
+ private Providers providers;
+
+ private Recommendations recommendations;
+
+ private ResourceHealthMetadatas resourceHealthMetadatas;
+
+ private ResourceProviders resourceProviders;
+
+ private GetUsagesInLocations getUsagesInLocations;
+
+ private StaticSites staticSites;
+
+ private WebApps webApps;
+
+ private Workflows workflows;
+
+ private WorkflowRuns workflowRuns;
+
+ private WorkflowRunActions workflowRunActions;
+
+ private WorkflowRunActionRepetitions workflowRunActionRepetitions;
+
+ private WorkflowRunActionRepetitionsRequestHistories workflowRunActionRepetitionsRequestHistories;
+
+ private WorkflowRunActionScopeRepetitions workflowRunActionScopeRepetitions;
+
+ private WorkflowTriggers workflowTriggers;
+
+ private WorkflowTriggerHistories workflowTriggerHistories;
+
+ private WorkflowVersions workflowVersions;
+
+ private final WebSiteManagementClient clientObject;
+
+ private AppServiceManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject = new WebSiteManagementClientBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of AppService service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the AppService service API instance.
+ */
+ public static AppServiceManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Creates an instance of AppService service API entry point.
+ *
+ * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
+ * @param profile the Azure profile for client.
+ * @return the AppService service API instance.
+ */
+ public static AppServiceManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return new AppServiceManager(httpPipeline, profile, null);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create AppServiceManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new AppServiceManager.Configurable();
+ }
+
+ /**
+ * The Configurable allowing configurations to be set.
+ */
+ public static final class Configurable {
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of AppService service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the AppService service API instance.
+ */
+ public AppServiceManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder.append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.appservice.generated")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder.append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new AppServiceManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of AppServiceCertificateOrders. It manages AppServiceCertificateOrder,
+ * AppServiceCertificateResource.
+ *
+ * @return Resource collection API of AppServiceCertificateOrders.
+ */
+ public AppServiceCertificateOrders appServiceCertificateOrders() {
+ if (this.appServiceCertificateOrders == null) {
+ this.appServiceCertificateOrders
+ = new AppServiceCertificateOrdersImpl(clientObject.getAppServiceCertificateOrders(), this);
+ }
+ return appServiceCertificateOrders;
+ }
+
+ /**
+ * Gets the resource collection API of CertificateOrdersDiagnostics.
+ *
+ * @return Resource collection API of CertificateOrdersDiagnostics.
+ */
+ public CertificateOrdersDiagnostics certificateOrdersDiagnostics() {
+ if (this.certificateOrdersDiagnostics == null) {
+ this.certificateOrdersDiagnostics
+ = new CertificateOrdersDiagnosticsImpl(clientObject.getCertificateOrdersDiagnostics(), this);
+ }
+ return certificateOrdersDiagnostics;
+ }
+
+ /**
+ * Gets the resource collection API of CertificateRegistrationProviders.
+ *
+ * @return Resource collection API of CertificateRegistrationProviders.
+ */
+ public CertificateRegistrationProviders certificateRegistrationProviders() {
+ if (this.certificateRegistrationProviders == null) {
+ this.certificateRegistrationProviders
+ = new CertificateRegistrationProvidersImpl(clientObject.getCertificateRegistrationProviders(), this);
+ }
+ return certificateRegistrationProviders;
+ }
+
+ /**
+ * Gets the resource collection API of Domains. It manages Domain, DomainOwnershipIdentifier.
+ *
+ * @return Resource collection API of Domains.
+ */
+ public Domains domains() {
+ if (this.domains == null) {
+ this.domains = new DomainsImpl(clientObject.getDomains(), this);
+ }
+ return domains;
+ }
+
+ /**
+ * Gets the resource collection API of TopLevelDomains.
+ *
+ * @return Resource collection API of TopLevelDomains.
+ */
+ public TopLevelDomains topLevelDomains() {
+ if (this.topLevelDomains == null) {
+ this.topLevelDomains = new TopLevelDomainsImpl(clientObject.getTopLevelDomains(), this);
+ }
+ return topLevelDomains;
+ }
+
+ /**
+ * Gets the resource collection API of DomainRegistrationProviders.
+ *
+ * @return Resource collection API of DomainRegistrationProviders.
+ */
+ public DomainRegistrationProviders domainRegistrationProviders() {
+ if (this.domainRegistrationProviders == null) {
+ this.domainRegistrationProviders
+ = new DomainRegistrationProvidersImpl(clientObject.getDomainRegistrationProviders(), this);
+ }
+ return domainRegistrationProviders;
+ }
+
+ /**
+ * Gets the resource collection API of AppServiceEnvironments. It manages AppServiceEnvironmentResource,
+ * RemotePrivateEndpointConnectionArmResource, WorkerPoolResource.
+ *
+ * @return Resource collection API of AppServiceEnvironments.
+ */
+ public AppServiceEnvironments appServiceEnvironments() {
+ if (this.appServiceEnvironments == null) {
+ this.appServiceEnvironments
+ = new AppServiceEnvironmentsImpl(clientObject.getAppServiceEnvironments(), this);
+ }
+ return appServiceEnvironments;
+ }
+
+ /**
+ * Gets the resource collection API of AppServicePlans. It manages AppServicePlan, VnetRoute.
+ *
+ * @return Resource collection API of AppServicePlans.
+ */
+ public AppServicePlans appServicePlans() {
+ if (this.appServicePlans == null) {
+ this.appServicePlans = new AppServicePlansImpl(clientObject.getAppServicePlans(), this);
+ }
+ return appServicePlans;
+ }
+
+ /**
+ * Gets the resource collection API of Certificates. It manages Certificate.
+ *
+ * @return Resource collection API of Certificates.
+ */
+ public Certificates certificates() {
+ if (this.certificates == null) {
+ this.certificates = new CertificatesImpl(clientObject.getCertificates(), this);
+ }
+ return certificates;
+ }
+
+ /**
+ * Gets the resource collection API of ContainerApps. It manages ContainerApp.
+ *
+ * @return Resource collection API of ContainerApps.
+ */
+ public ContainerApps containerApps() {
+ if (this.containerApps == null) {
+ this.containerApps = new ContainerAppsImpl(clientObject.getContainerApps(), this);
+ }
+ return containerApps;
+ }
+
+ /**
+ * Gets the resource collection API of ContainerAppsRevisions.
+ *
+ * @return Resource collection API of ContainerAppsRevisions.
+ */
+ public ContainerAppsRevisions containerAppsRevisions() {
+ if (this.containerAppsRevisions == null) {
+ this.containerAppsRevisions
+ = new ContainerAppsRevisionsImpl(clientObject.getContainerAppsRevisions(), this);
+ }
+ return containerAppsRevisions;
+ }
+
+ /**
+ * Gets the resource collection API of DeletedWebApps.
+ *
+ * @return Resource collection API of DeletedWebApps.
+ */
+ public DeletedWebApps deletedWebApps() {
+ if (this.deletedWebApps == null) {
+ this.deletedWebApps = new DeletedWebAppsImpl(clientObject.getDeletedWebApps(), this);
+ }
+ return deletedWebApps;
+ }
+
+ /**
+ * Gets the resource collection API of Diagnostics.
+ *
+ * @return Resource collection API of Diagnostics.
+ */
+ public Diagnostics diagnostics() {
+ if (this.diagnostics == null) {
+ this.diagnostics = new DiagnosticsImpl(clientObject.getDiagnostics(), this);
+ }
+ return diagnostics;
+ }
+
+ /**
+ * Gets the resource collection API of Globals.
+ *
+ * @return Resource collection API of Globals.
+ */
+ public Globals globals() {
+ if (this.globals == null) {
+ this.globals = new GlobalsImpl(clientObject.getGlobals(), this);
+ }
+ return globals;
+ }
+
+ /**
+ * Gets the resource collection API of KubeEnvironments. It manages KubeEnvironment.
+ *
+ * @return Resource collection API of KubeEnvironments.
+ */
+ public KubeEnvironments kubeEnvironments() {
+ if (this.kubeEnvironments == null) {
+ this.kubeEnvironments = new KubeEnvironmentsImpl(clientObject.getKubeEnvironments(), this);
+ }
+ return kubeEnvironments;
+ }
+
+ /**
+ * Gets the resource collection API of Providers.
+ *
+ * @return Resource collection API of Providers.
+ */
+ public Providers providers() {
+ if (this.providers == null) {
+ this.providers = new ProvidersImpl(clientObject.getProviders(), this);
+ }
+ return providers;
+ }
+
+ /**
+ * Gets the resource collection API of Recommendations.
+ *
+ * @return Resource collection API of Recommendations.
+ */
+ public Recommendations recommendations() {
+ if (this.recommendations == null) {
+ this.recommendations = new RecommendationsImpl(clientObject.getRecommendations(), this);
+ }
+ return recommendations;
+ }
+
+ /**
+ * Gets the resource collection API of ResourceHealthMetadatas.
+ *
+ * @return Resource collection API of ResourceHealthMetadatas.
+ */
+ public ResourceHealthMetadatas resourceHealthMetadatas() {
+ if (this.resourceHealthMetadatas == null) {
+ this.resourceHealthMetadatas
+ = new ResourceHealthMetadatasImpl(clientObject.getResourceHealthMetadatas(), this);
+ }
+ return resourceHealthMetadatas;
+ }
+
+ /**
+ * Gets the resource collection API of ResourceProviders.
+ *
+ * @return Resource collection API of ResourceProviders.
+ */
+ public ResourceProviders resourceProviders() {
+ if (this.resourceProviders == null) {
+ this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
+ }
+ return resourceProviders;
+ }
+
+ /**
+ * Gets the resource collection API of GetUsagesInLocations.
+ *
+ * @return Resource collection API of GetUsagesInLocations.
+ */
+ public GetUsagesInLocations getUsagesInLocations() {
+ if (this.getUsagesInLocations == null) {
+ this.getUsagesInLocations = new GetUsagesInLocationsImpl(clientObject.getGetUsagesInLocations(), this);
+ }
+ return getUsagesInLocations;
+ }
+
+ /**
+ * Gets the resource collection API of StaticSites. It manages StaticSiteArmResource, DatabaseConnection,
+ * StaticSiteUserProvidedFunctionAppArmResource, StaticSiteBasicAuthPropertiesArmResource,
+ * StaticSiteCustomDomainOverviewArmResource, StaticSiteLinkedBackendArmResource.
+ *
+ * @return Resource collection API of StaticSites.
+ */
+ public StaticSites staticSites() {
+ if (this.staticSites == null) {
+ this.staticSites = new StaticSitesImpl(clientObject.getStaticSites(), this);
+ }
+ return staticSites;
+ }
+
+ /**
+ * Gets the resource collection API of WebApps. It manages Site, Deployment, Identifier, FunctionEnvelope,
+ * HostnameBinding, HybridConnection, RelayServiceConnectionEntity, PremierAddOn, PublicCertificate, SiteContainer,
+ * VnetInfoResource, VnetGateway.
+ *
+ * @return Resource collection API of WebApps.
+ */
+ public WebApps webApps() {
+ if (this.webApps == null) {
+ this.webApps = new WebAppsImpl(clientObject.getWebApps(), this);
+ }
+ return webApps;
+ }
+
+ /**
+ * Gets the resource collection API of Workflows.
+ *
+ * @return Resource collection API of Workflows.
+ */
+ public Workflows workflows() {
+ if (this.workflows == null) {
+ this.workflows = new WorkflowsImpl(clientObject.getWorkflows(), this);
+ }
+ return workflows;
+ }
+
+ /**
+ * Gets the resource collection API of WorkflowRuns.
+ *
+ * @return Resource collection API of WorkflowRuns.
+ */
+ public WorkflowRuns workflowRuns() {
+ if (this.workflowRuns == null) {
+ this.workflowRuns = new WorkflowRunsImpl(clientObject.getWorkflowRuns(), this);
+ }
+ return workflowRuns;
+ }
+
+ /**
+ * Gets the resource collection API of WorkflowRunActions.
+ *
+ * @return Resource collection API of WorkflowRunActions.
+ */
+ public WorkflowRunActions workflowRunActions() {
+ if (this.workflowRunActions == null) {
+ this.workflowRunActions = new WorkflowRunActionsImpl(clientObject.getWorkflowRunActions(), this);
+ }
+ return workflowRunActions;
+ }
+
+ /**
+ * Gets the resource collection API of WorkflowRunActionRepetitions.
+ *
+ * @return Resource collection API of WorkflowRunActionRepetitions.
+ */
+ public WorkflowRunActionRepetitions workflowRunActionRepetitions() {
+ if (this.workflowRunActionRepetitions == null) {
+ this.workflowRunActionRepetitions
+ = new WorkflowRunActionRepetitionsImpl(clientObject.getWorkflowRunActionRepetitions(), this);
+ }
+ return workflowRunActionRepetitions;
+ }
+
+ /**
+ * Gets the resource collection API of WorkflowRunActionRepetitionsRequestHistories.
+ *
+ * @return Resource collection API of WorkflowRunActionRepetitionsRequestHistories.
+ */
+ public WorkflowRunActionRepetitionsRequestHistories workflowRunActionRepetitionsRequestHistories() {
+ if (this.workflowRunActionRepetitionsRequestHistories == null) {
+ this.workflowRunActionRepetitionsRequestHistories = new WorkflowRunActionRepetitionsRequestHistoriesImpl(
+ clientObject.getWorkflowRunActionRepetitionsRequestHistories(), this);
+ }
+ return workflowRunActionRepetitionsRequestHistories;
+ }
+
+ /**
+ * Gets the resource collection API of WorkflowRunActionScopeRepetitions.
+ *
+ * @return Resource collection API of WorkflowRunActionScopeRepetitions.
+ */
+ public WorkflowRunActionScopeRepetitions workflowRunActionScopeRepetitions() {
+ if (this.workflowRunActionScopeRepetitions == null) {
+ this.workflowRunActionScopeRepetitions
+ = new WorkflowRunActionScopeRepetitionsImpl(clientObject.getWorkflowRunActionScopeRepetitions(), this);
+ }
+ return workflowRunActionScopeRepetitions;
+ }
+
+ /**
+ * Gets the resource collection API of WorkflowTriggers.
+ *
+ * @return Resource collection API of WorkflowTriggers.
+ */
+ public WorkflowTriggers workflowTriggers() {
+ if (this.workflowTriggers == null) {
+ this.workflowTriggers = new WorkflowTriggersImpl(clientObject.getWorkflowTriggers(), this);
+ }
+ return workflowTriggers;
+ }
+
+ /**
+ * Gets the resource collection API of WorkflowTriggerHistories.
+ *
+ * @return Resource collection API of WorkflowTriggerHistories.
+ */
+ public WorkflowTriggerHistories workflowTriggerHistories() {
+ if (this.workflowTriggerHistories == null) {
+ this.workflowTriggerHistories
+ = new WorkflowTriggerHistoriesImpl(clientObject.getWorkflowTriggerHistories(), this);
+ }
+ return workflowTriggerHistories;
+ }
+
+ /**
+ * Gets the resource collection API of WorkflowVersions.
+ *
+ * @return Resource collection API of WorkflowVersions.
+ */
+ public WorkflowVersions workflowVersions() {
+ if (this.workflowVersions == null) {
+ this.workflowVersions = new WorkflowVersionsImpl(clientObject.getWorkflowVersions(), this);
+ }
+ return workflowVersions;
+ }
+
+ /**
+ * Gets wrapped service client WebSiteManagementClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client WebSiteManagementClient.
+ */
+ public WebSiteManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServiceCertificateOrdersClient.java b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServiceCertificateOrdersClient.java
new file mode 100644
index 0000000000000..27263420acdec
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServiceCertificateOrdersClient.java
@@ -0,0 +1,821 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appservice.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appservice.generated.fluent.models.AppServiceCertificateOrderInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.AppServiceCertificateResourceInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.CertificateEmailInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.CertificateOrderActionInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.NameIdentifierInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.SiteSealInner;
+import com.azure.resourcemanager.appservice.generated.models.AppServiceCertificateOrderPatchResource;
+import com.azure.resourcemanager.appservice.generated.models.AppServiceCertificatePatchResource;
+import com.azure.resourcemanager.appservice.generated.models.ReissueCertificateOrderRequest;
+import com.azure.resourcemanager.appservice.generated.models.RenewCertificateOrderRequest;
+import com.azure.resourcemanager.appservice.generated.models.SiteSealRequest;
+import java.util.List;
+
+/**
+ * An instance of this class provides access to all the operations defined in AppServiceCertificateOrdersClient.
+ */
+public interface AppServiceCertificateOrdersClient {
+ /**
+ * List all certificate orders in a subscription.
+ *
+ * Description for List all certificate orders in a subscription.
+ *
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of certificate orders as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List all certificate orders in a subscription.
+ *
+ * Description for List all certificate orders in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of certificate orders as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Validate information for a certificate order.
+ *
+ * Description for Validate information for a certificate order.
+ *
+ * @param appServiceCertificateOrder Information for a certificate order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response validatePurchaseInformationWithResponse(AppServiceCertificateOrderInner appServiceCertificateOrder,
+ Context context);
+
+ /**
+ * Validate information for a certificate order.
+ *
+ * Description for Validate information for a certificate order.
+ *
+ * @param appServiceCertificateOrder Information for a certificate order.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void validatePurchaseInformation(AppServiceCertificateOrderInner appServiceCertificateOrder);
+
+ /**
+ * Get certificate orders in a resource group.
+ *
+ * Description for Get certificate orders in a resource group.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of certificate orders as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get certificate orders in a resource group.
+ *
+ * Description for Get certificate orders in a resource group.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of certificate orders as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get a certificate order.
+ *
+ * Description for Get a certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order..
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return sSL certificate purchase order along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String certificateOrderName, Context context);
+
+ /**
+ * Get a certificate order.
+ *
+ * Description for Get a certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order..
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return sSL certificate purchase order.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceCertificateOrderInner getByResourceGroup(String resourceGroupName, String certificateOrderName);
+
+ /**
+ * Create or update a certificate purchase order.
+ *
+ * Description for Create or update a certificate purchase order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param certificateDistinguishedName Distinguished name to use for the certificate order.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of sSL certificate purchase order.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppServiceCertificateOrderInner> beginCreateOrUpdate(
+ String resourceGroupName, String certificateOrderName,
+ AppServiceCertificateOrderInner certificateDistinguishedName);
+
+ /**
+ * Create or update a certificate purchase order.
+ *
+ * Description for Create or update a certificate purchase order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param certificateDistinguishedName Distinguished name to use for the certificate order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of sSL certificate purchase order.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppServiceCertificateOrderInner> beginCreateOrUpdate(
+ String resourceGroupName, String certificateOrderName,
+ AppServiceCertificateOrderInner certificateDistinguishedName, Context context);
+
+ /**
+ * Create or update a certificate purchase order.
+ *
+ * Description for Create or update a certificate purchase order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param certificateDistinguishedName Distinguished name to use for the certificate order.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return sSL certificate purchase order.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceCertificateOrderInner createOrUpdate(String resourceGroupName, String certificateOrderName,
+ AppServiceCertificateOrderInner certificateDistinguishedName);
+
+ /**
+ * Create or update a certificate purchase order.
+ *
+ * Description for Create or update a certificate purchase order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param certificateDistinguishedName Distinguished name to use for the certificate order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return sSL certificate purchase order.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceCertificateOrderInner createOrUpdate(String resourceGroupName, String certificateOrderName,
+ AppServiceCertificateOrderInner certificateDistinguishedName, Context context);
+
+ /**
+ * Delete an existing certificate order.
+ *
+ * Description for Delete an existing certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String certificateOrderName, Context context);
+
+ /**
+ * Delete an existing certificate order.
+ *
+ * Description for Delete an existing certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String certificateOrderName);
+
+ /**
+ * Create or update a certificate purchase order.
+ *
+ * Description for Create or update a certificate purchase order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param certificateDistinguishedName Distinguished name to use for the certificate order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return sSL certificate purchase order along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String certificateOrderName,
+ AppServiceCertificateOrderPatchResource certificateDistinguishedName, Context context);
+
+ /**
+ * Create or update a certificate purchase order.
+ *
+ * Description for Create or update a certificate purchase order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param certificateDistinguishedName Distinguished name to use for the certificate order.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return sSL certificate purchase order.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceCertificateOrderInner update(String resourceGroupName, String certificateOrderName,
+ AppServiceCertificateOrderPatchResource certificateDistinguishedName);
+
+ /**
+ * List all certificates associated with a certificate order.
+ *
+ * Description for List all certificates associated with a certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of certificate order certificates as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCertificates(String resourceGroupName,
+ String certificateOrderName);
+
+ /**
+ * List all certificates associated with a certificate order.
+ *
+ * Description for List all certificates associated with a certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of certificate order certificates as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCertificates(String resourceGroupName,
+ String certificateOrderName, Context context);
+
+ /**
+ * Get the certificate associated with a certificate order.
+ *
+ * Description for Get the certificate associated with a certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param name Name of the certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return key Vault container ARM resource for a certificate that is purchased through Azure along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getCertificateWithResponse(String resourceGroupName,
+ String certificateOrderName, String name, Context context);
+
+ /**
+ * Get the certificate associated with a certificate order.
+ *
+ * Description for Get the certificate associated with a certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param name Name of the certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return key Vault container ARM resource for a certificate that is purchased through Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceCertificateResourceInner getCertificate(String resourceGroupName, String certificateOrderName,
+ String name);
+
+ /**
+ * Creates or updates a certificate and associates with key vault secret.
+ *
+ * Description for Creates or updates a certificate and associates with key vault secret.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param name Name of the certificate.
+ * @param keyVaultCertificate Key vault certificate resource Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of key Vault container ARM resource for a certificate that is
+ * purchased through Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppServiceCertificateResourceInner>
+ beginCreateOrUpdateCertificate(String resourceGroupName, String certificateOrderName, String name,
+ AppServiceCertificateResourceInner keyVaultCertificate);
+
+ /**
+ * Creates or updates a certificate and associates with key vault secret.
+ *
+ * Description for Creates or updates a certificate and associates with key vault secret.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param name Name of the certificate.
+ * @param keyVaultCertificate Key vault certificate resource Id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of key Vault container ARM resource for a certificate that is
+ * purchased through Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppServiceCertificateResourceInner>
+ beginCreateOrUpdateCertificate(String resourceGroupName, String certificateOrderName, String name,
+ AppServiceCertificateResourceInner keyVaultCertificate, Context context);
+
+ /**
+ * Creates or updates a certificate and associates with key vault secret.
+ *
+ * Description for Creates or updates a certificate and associates with key vault secret.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param name Name of the certificate.
+ * @param keyVaultCertificate Key vault certificate resource Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return key Vault container ARM resource for a certificate that is purchased through Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceCertificateResourceInner createOrUpdateCertificate(String resourceGroupName, String certificateOrderName,
+ String name, AppServiceCertificateResourceInner keyVaultCertificate);
+
+ /**
+ * Creates or updates a certificate and associates with key vault secret.
+ *
+ * Description for Creates or updates a certificate and associates with key vault secret.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param name Name of the certificate.
+ * @param keyVaultCertificate Key vault certificate resource Id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return key Vault container ARM resource for a certificate that is purchased through Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceCertificateResourceInner createOrUpdateCertificate(String resourceGroupName, String certificateOrderName,
+ String name, AppServiceCertificateResourceInner keyVaultCertificate, Context context);
+
+ /**
+ * Delete the certificate associated with a certificate order.
+ *
+ * Description for Delete the certificate associated with a certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param name Name of the certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteCertificateWithResponse(String resourceGroupName, String certificateOrderName, String name,
+ Context context);
+
+ /**
+ * Delete the certificate associated with a certificate order.
+ *
+ * Description for Delete the certificate associated with a certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param name Name of the certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteCertificate(String resourceGroupName, String certificateOrderName, String name);
+
+ /**
+ * Creates or updates a certificate and associates with key vault secret.
+ *
+ * Description for Creates or updates a certificate and associates with key vault secret.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param name Name of the certificate.
+ * @param keyVaultCertificate Key vault certificate resource Id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return key Vault container ARM resource for a certificate that is purchased through Azure along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateCertificateWithResponse(String resourceGroupName,
+ String certificateOrderName, String name, AppServiceCertificatePatchResource keyVaultCertificate,
+ Context context);
+
+ /**
+ * Creates or updates a certificate and associates with key vault secret.
+ *
+ * Description for Creates or updates a certificate and associates with key vault secret.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param name Name of the certificate.
+ * @param keyVaultCertificate Key vault certificate resource Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return key Vault container ARM resource for a certificate that is purchased through Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceCertificateResourceInner updateCertificate(String resourceGroupName, String certificateOrderName,
+ String name, AppServiceCertificatePatchResource keyVaultCertificate);
+
+ /**
+ * Reissue an existing certificate order.
+ *
+ * Description for Reissue an existing certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param reissueCertificateOrderRequest Parameters for the reissue.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response reissueWithResponse(String resourceGroupName, String certificateOrderName,
+ ReissueCertificateOrderRequest reissueCertificateOrderRequest, Context context);
+
+ /**
+ * Reissue an existing certificate order.
+ *
+ * Description for Reissue an existing certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param reissueCertificateOrderRequest Parameters for the reissue.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void reissue(String resourceGroupName, String certificateOrderName,
+ ReissueCertificateOrderRequest reissueCertificateOrderRequest);
+
+ /**
+ * Renew an existing certificate order.
+ *
+ * Description for Renew an existing certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param renewCertificateOrderRequest Renew parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response renewWithResponse(String resourceGroupName, String certificateOrderName,
+ RenewCertificateOrderRequest renewCertificateOrderRequest, Context context);
+
+ /**
+ * Renew an existing certificate order.
+ *
+ * Description for Renew an existing certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param renewCertificateOrderRequest Renew parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void renew(String resourceGroupName, String certificateOrderName,
+ RenewCertificateOrderRequest renewCertificateOrderRequest);
+
+ /**
+ * Resend certificate email.
+ *
+ * Description for Resend certificate email.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response resendEmailWithResponse(String resourceGroupName, String certificateOrderName, Context context);
+
+ /**
+ * Resend certificate email.
+ *
+ * Description for Resend certificate email.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resendEmail(String resourceGroupName, String certificateOrderName);
+
+ /**
+ * Resend domain verification email to customer for this certificate order
+ *
+ * Resend domain verification ownership email containing steps on how to verify a domain for a given certificate
+ * order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param nameIdentifier Email address.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response resendRequestEmailsWithResponse(String resourceGroupName, String certificateOrderName,
+ NameIdentifierInner nameIdentifier, Context context);
+
+ /**
+ * Resend domain verification email to customer for this certificate order
+ *
+ * Resend domain verification ownership email containing steps on how to verify a domain for a given certificate
+ * order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param nameIdentifier Email address.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resendRequestEmails(String resourceGroupName, String certificateOrderName, NameIdentifierInner nameIdentifier);
+
+ /**
+ * This method is used to obtain the site seal information for an issued certificate.
+ *
+ * This method is used to obtain the site seal information for an issued certificate. A site seal is a graphic that
+ * the certificate purchaser can embed on their web site to show their visitors information about their SSL
+ * certificate. If a web site visitor clicks on the site seal image, a pop-up page is displayed that contains
+ * detailed information about the SSL certificate. The site seal token is used to link the site seal graphic image
+ * to the appropriate certificate details pop-up page display when a user clicks on the site seal. The site seal
+ * images are expected to be static images and hosted by the reseller, to minimize delays for customer page load
+ * times.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param siteSealRequest Site seal request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return site seal along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response retrieveSiteSealWithResponse(String resourceGroupName, String certificateOrderName,
+ SiteSealRequest siteSealRequest, Context context);
+
+ /**
+ * This method is used to obtain the site seal information for an issued certificate.
+ *
+ * This method is used to obtain the site seal information for an issued certificate. A site seal is a graphic that
+ * the certificate purchaser can embed on their web site to show their visitors information about their SSL
+ * certificate. If a web site visitor clicks on the site seal image, a pop-up page is displayed that contains
+ * detailed information about the SSL certificate. The site seal token is used to link the site seal graphic image
+ * to the appropriate certificate details pop-up page display when a user clicks on the site seal. The site seal
+ * images are expected to be static images and hosted by the reseller, to minimize delays for customer page load
+ * times.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param siteSealRequest Site seal request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return site seal.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SiteSealInner retrieveSiteSeal(String resourceGroupName, String certificateOrderName,
+ SiteSealRequest siteSealRequest);
+
+ /**
+ * Verify domain ownership for this certificate order.
+ *
+ * Description for Verify domain ownership for this certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response verifyDomainOwnershipWithResponse(String resourceGroupName, String certificateOrderName,
+ Context context);
+
+ /**
+ * Verify domain ownership for this certificate order.
+ *
+ * Description for Verify domain ownership for this certificate order.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param certificateOrderName Name of the certificate order.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void verifyDomainOwnership(String resourceGroupName, String certificateOrderName);
+
+ /**
+ * Retrieve the list of certificate actions.
+ *
+ * Description for Retrieve the list of certificate actions.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the certificate order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return array of CertificateOrderAction along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response> retrieveCertificateActionsWithResponse(String resourceGroupName,
+ String name, Context context);
+
+ /**
+ * Retrieve the list of certificate actions.
+ *
+ * Description for Retrieve the list of certificate actions.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the certificate order.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return array of CertificateOrderAction.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ List retrieveCertificateActions(String resourceGroupName, String name);
+
+ /**
+ * Retrieve email history.
+ *
+ * Description for Retrieve email history.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the certificate order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return array of CertificateEmail along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response> retrieveCertificateEmailHistoryWithResponse(String resourceGroupName,
+ String name, Context context);
+
+ /**
+ * Retrieve email history.
+ *
+ * Description for Retrieve email history.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the certificate order.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return array of CertificateEmail.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ List retrieveCertificateEmailHistory(String resourceGroupName, String name);
+}
diff --git a/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServiceEnvironmentsClient.java b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServiceEnvironmentsClient.java
new file mode 100644
index 0000000000000..da47008a4d6f0
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServiceEnvironmentsClient.java
@@ -0,0 +1,1963 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appservice.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appservice.generated.fluent.models.AddressResponseInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.AppServiceEnvironmentPatchResourceInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.AppServiceEnvironmentResourceInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.AppServicePlanInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.AseV3NetworkingConfigurationInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.CsmUsageQuotaInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.CustomDnsSuffixConfigurationInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.HostingEnvironmentDiagnosticsInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.InboundEnvironmentEndpointInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.OperationInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.OutboundEnvironmentEndpointInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.PrivateLinkResourcesWrapperInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.RemotePrivateEndpointConnectionArmResourceInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.ResourceMetricDefinitionInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.SiteInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.SkuInfoInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.StampCapacityInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.UsageInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.WorkerPoolResourceInner;
+import com.azure.resourcemanager.appservice.generated.models.VirtualNetworkProfile;
+import java.util.List;
+
+/**
+ * An instance of this class provides access to all the operations defined in AppServiceEnvironmentsClient.
+ */
+public interface AppServiceEnvironmentsClient {
+ /**
+ * Get all App Service Environments for a subscription.
+ *
+ * Description for Get all App Service Environments for a subscription.
+ *
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of App Service Environments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get all App Service Environments for a subscription.
+ *
+ * Description for Get all App Service Environments for a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of App Service Environments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Get all App Service Environments in a resource group.
+ *
+ * Description for Get all App Service Environments in a resource group.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of App Service Environments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get all App Service Environments in a resource group.
+ *
+ * Description for Get all App Service Environments in a resource group.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of App Service Environments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get the properties of an App Service Environment.
+ *
+ * Description for Get the properties of an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app Service Environment ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String name,
+ Context context);
+
+ /**
+ * Get the properties of an App Service Environment.
+ *
+ * Description for Get the properties of an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceEnvironmentResourceInner getByResourceGroup(String resourceGroupName, String name);
+
+ /**
+ * Create or update an App Service Environment.
+ *
+ * Description for Create or update an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of app Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppServiceEnvironmentResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String name, AppServiceEnvironmentResourceInner hostingEnvironmentEnvelope);
+
+ /**
+ * Create or update an App Service Environment.
+ *
+ * Description for Create or update an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of app Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppServiceEnvironmentResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String name, AppServiceEnvironmentResourceInner hostingEnvironmentEnvelope,
+ Context context);
+
+ /**
+ * Create or update an App Service Environment.
+ *
+ * Description for Create or update an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceEnvironmentResourceInner createOrUpdate(String resourceGroupName, String name,
+ AppServiceEnvironmentResourceInner hostingEnvironmentEnvelope);
+
+ /**
+ * Create or update an App Service Environment.
+ *
+ * Description for Create or update an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceEnvironmentResourceInner createOrUpdate(String resourceGroupName, String name,
+ AppServiceEnvironmentResourceInner hostingEnvironmentEnvelope, Context context);
+
+ /**
+ * Delete an App Service Environment.
+ *
+ * Description for Delete an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String name);
+
+ /**
+ * Delete an App Service Environment.
+ *
+ * Description for Delete an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param forceDelete Specify <code>true</code> to force the deletion even if the App Service
+ * Environment contains resources. The default is <code>false</code>.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String name, Boolean forceDelete,
+ Context context);
+
+ /**
+ * Delete an App Service Environment.
+ *
+ * Description for Delete an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name);
+
+ /**
+ * Delete an App Service Environment.
+ *
+ * Description for Delete an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param forceDelete Specify <code>true</code> to force the deletion even if the App Service
+ * Environment contains resources. The default is <code>false</code>.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name, Boolean forceDelete, Context context);
+
+ /**
+ * Create or update an App Service Environment.
+ *
+ * Description for Create or update an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app Service Environment ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String name,
+ AppServiceEnvironmentPatchResourceInner hostingEnvironmentEnvelope, Context context);
+
+ /**
+ * Create or update an App Service Environment.
+ *
+ * Description for Create or update an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return app Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServiceEnvironmentResourceInner update(String resourceGroupName, String name,
+ AppServiceEnvironmentPatchResourceInner hostingEnvironmentEnvelope);
+
+ /**
+ * Get the used, available, and total worker capacity an App Service Environment.
+ *
+ * Description for Get the used, available, and total worker capacity an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of stamp capacities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCapacities(String resourceGroupName, String name);
+
+ /**
+ * Get the used, available, and total worker capacity an App Service Environment.
+ *
+ * Description for Get the used, available, and total worker capacity an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of stamp capacities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCapacities(String resourceGroupName, String name, Context context);
+
+ /**
+ * Get IP addresses assigned to an App Service Environment.
+ *
+ * Description for Get IP addresses assigned to an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes main public IP address and any extra virtual IPs along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getVipInfoWithResponse(String resourceGroupName, String name, Context context);
+
+ /**
+ * Get IP addresses assigned to an App Service Environment.
+ *
+ * Description for Get IP addresses assigned to an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes main public IP address and any extra virtual IPs.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AddressResponseInner getVipInfo(String resourceGroupName, String name);
+
+ /**
+ * Move an App Service Environment to a different VNET.
+ *
+ * Description for Move an App Service Environment to a different VNET.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param vnetInfo Details for the new virtual network.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of App Service apps as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable changeVnet(String resourceGroupName, String name, VirtualNetworkProfile vnetInfo);
+
+ /**
+ * Move an App Service Environment to a different VNET.
+ *
+ * Description for Move an App Service Environment to a different VNET.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param vnetInfo Details for the new virtual network.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of App Service apps as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable changeVnet(String resourceGroupName, String name, VirtualNetworkProfile vnetInfo,
+ Context context);
+
+ /**
+ * Get Custom Dns Suffix configuration of an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom Dns Suffix configuration of an App Service Environment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAseCustomDnsSuffixConfigurationWithResponse(String resourceGroupName,
+ String name, Context context);
+
+ /**
+ * Get Custom Dns Suffix configuration of an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom Dns Suffix configuration of an App Service Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomDnsSuffixConfigurationInner getAseCustomDnsSuffixConfiguration(String resourceGroupName, String name);
+
+ /**
+ * Update Custom Dns Suffix configuration of an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param customDnsSuffixConfiguration Full view of the custom domain suffix configuration for ASEv3.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return full view of the custom domain suffix configuration for ASEv3 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateAseCustomDnsSuffixConfigurationWithResponse(
+ String resourceGroupName, String name, CustomDnsSuffixConfigurationInner customDnsSuffixConfiguration,
+ Context context);
+
+ /**
+ * Update Custom Dns Suffix configuration of an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param customDnsSuffixConfiguration Full view of the custom domain suffix configuration for ASEv3.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return full view of the custom domain suffix configuration for ASEv3.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomDnsSuffixConfigurationInner updateAseCustomDnsSuffixConfiguration(String resourceGroupName, String name,
+ CustomDnsSuffixConfigurationInner customDnsSuffixConfiguration);
+
+ /**
+ * Delete Custom Dns Suffix configuration of an App Service Environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return any object along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response