diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 33e93d0ff3a9..78550d876ac0 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -348,6 +348,7 @@ com.azure.resourcemanager:azure-resourcemanager-dynatrace;1.0.0-beta.1;1.0.0-bet
com.azure.resourcemanager:azure-resourcemanager-deviceupdate;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-machinelearning;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-education;1.0.0-beta.1;1.0.0-beta.2
+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.0.0
com.azure.tools:azure-sdk-build-tool;1.0.0-beta.1;1.0.0-beta.2
diff --git a/pom.xml b/pom.xml
index 28f19ed8c5ca..163a522a7092 100644
--- a/pom.xml
+++ b/pom.xml
@@ -850,6 +850,7 @@
sdk/appconfigurationsdk/appcontainerssdk/applicationinsights
+ sdk/appservicesdk/attestationsdk/automanagesdk/automation
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 000000000000..ab7be1907ed7
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-06-07)
+
+- Azure Resource Manager AppService client library for Java. This package contains Microsoft Azure SDK for AppService Management SDK. WebSite Management Client. Package tag package-2022-03. 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 000000000000..a2a110b55198
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/README.md
@@ -0,0 +1,102 @@
+# 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-2022-03. 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] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of 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 environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by 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](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[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
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 000000000000..876cd86fb471
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/SAMPLE.md
@@ -0,0 +1,7387 @@
+# 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)
+- [Update](#appserviceenvironments_update)
+- [UpdateAseCustomDnsSuffixConfiguration](#appserviceenvironments_updateasecustomdnssuffixconfiguration)
+- [UpdateAseNetworkingConfiguration](#appserviceenvironments_updateasenetworkingconfiguration)
+- [UpdateMultiRolePool](#appserviceenvironments_updatemultirolepool)
+- [UpdateWorkerPool](#appserviceenvironments_updateworkerpool)
+
+## 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)
+
+## 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
+
+- [ListCustomHostnameSites](#resourceprovider_listcustomhostnamesites)
+- [VerifyHostingEnvironmentVnet](#resourceprovider_verifyhostingenvironmentvnet)
+
+## StaticSites
+
+- [ApproveOrRejectPrivateEndpointConnection](#staticsites_approveorrejectprivateendpointconnection)
+- [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)
+- [DeletePrivateEndpointConnection](#staticsites_deleteprivateendpointconnection)
+- [DeleteStaticSiteBuild](#staticsites_deletestaticsitebuild)
+- [DeleteStaticSiteCustomDomain](#staticsites_deletestaticsitecustomdomain)
+- [DeleteStaticSiteUser](#staticsites_deletestaticsiteuser)
+- [DetachStaticSite](#staticsites_detachstaticsite)
+- [DetachUserProvidedFunctionAppFromStaticSite](#staticsites_detachuserprovidedfunctionappfromstaticsite)
+- [DetachUserProvidedFunctionAppFromStaticSiteBuild](#staticsites_detachuserprovidedfunctionappfromstaticsitebuild)
+- [GetByResourceGroup](#staticsites_getbyresourcegroup)
+- [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)
+- [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)
+- [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
+
+- [ApproveOrRejectPrivateEndpointConnection](#webapps_approveorrejectprivateendpointconnection)
+- [ApproveOrRejectPrivateEndpointConnectionSlot](#webapps_approveorrejectprivateendpointconnectionslot)
+- [DeletePrivateEndpointConnection](#webapps_deleteprivateendpointconnection)
+- [DeletePrivateEndpointConnectionSlot](#webapps_deleteprivateendpointconnectionslot)
+- [GetAppSettingKeyVaultReference](#webapps_getappsettingkeyvaultreference)
+- [GetAppSettingKeyVaultReferenceSlot](#webapps_getappsettingkeyvaultreferenceslot)
+- [GetAppSettingsKeyVaultReferences](#webapps_getappsettingskeyvaultreferences)
+- [GetAppSettingsKeyVaultReferencesSlot](#webapps_getappsettingskeyvaultreferencesslot)
+- [GetFtpAllowed](#webapps_getftpallowed)
+- [GetFtpAllowedSlot](#webapps_getftpallowedslot)
+- [GetInstanceInfo](#webapps_getinstanceinfo)
+- [GetInstanceInfoSlot](#webapps_getinstanceinfoslot)
+- [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)
+- [GetSlotSiteDeploymentStatusSlot](#webapps_getslotsitedeploymentstatusslot)
+- [ListBasicPublishingCredentialsPolicies](#webapps_listbasicpublishingcredentialspolicies)
+- [ListBasicPublishingCredentialsPoliciesSlot](#webapps_listbasicpublishingcredentialspoliciesslot)
+- [ListProductionSiteDeploymentStatuses](#webapps_listproductionsitedeploymentstatuses)
+- [ListSiteBackups](#webapps_listsitebackups)
+- [ListSiteBackupsSlot](#webapps_listsitebackupsslot)
+- [ListSlotSiteDeploymentStatusesSlot](#webapps_listslotsitedeploymentstatusesslot)
+- [StartNetworkTrace](#webapps_startnetworktrace)
+- [StartNetworkTraceSlot](#webapps_startnetworktraceslot)
+- [StartWebSiteNetworkTraceOperation](#webapps_startwebsitenetworktraceoperation)
+- [StartWebSiteNetworkTraceOperationSlot](#webapps_startwebsitenetworktraceoperationslot)
+- [StopNetworkTrace](#webapps_stopnetworktrace)
+- [StopNetworkTraceSlot](#webapps_stopnetworktraceslot)
+- [StopWebSiteNetworkTrace](#webapps_stopwebsitenetworktrace)
+- [StopWebSiteNetworkTraceSlot](#webapps_stopwebsitenetworktraceslot)
+- [UpdateFtpAllowed](#webapps_updateftpallowed)
+- [UpdateFtpAllowedSlot](#webapps_updateftpallowedslot)
+- [UpdateScmAllowed](#webapps_updatescmallowed)
+- [UpdateScmAllowedSlot](#webapps_updatescmallowedslot)
+### 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/2022-03-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(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName")
+ .withKeyVaultSecretName("SampleSecretName1"),
+ "SampleCertName2",
+ new AppServiceCertificate()
+ .withKeyVaultId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName")
+ .withKeyVaultSecretName("SampleSecretName2")))
+ .withDistinguishedName("CN=SampleCustomDomain.com")
+ .withValidityInYears(2)
+ .withKeySize(2048)
+ .withProductType(CertificateProductType.STANDARD_DOMAIN_VALIDATED_SSL)
+ .withAutoRenew(true)
+ .create();
+ }
+
+ @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/2022-03-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
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceCertificateOrders Delete. */
+public final class AppServiceCertificateOrdersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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()
+ .deleteWithResponse("testrg123", "SampleCertificateOrderName", Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_DeleteCertificate
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceCertificateOrders DeleteCertificate. */
+public final class AppServiceCertificateOrdersDeleteCertificateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceCertificateOrders GetByResourceGroup. */
+public final class AppServiceCertificateOrdersGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_GetCertificate
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceCertificateOrders GetCertificate. */
+public final class AppServiceCertificateOrdersGetCertificateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceCertificateOrders List. */
+public final class AppServiceCertificateOrdersListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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(Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceCertificateOrders ListByResourceGroup. */
+public final class AppServiceCertificateOrdersListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_ListCertificates
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceCertificateOrders ListCertificates. */
+public final class AppServiceCertificateOrdersListCertificatesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_Reissue
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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),
+ Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_Renew
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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),
+ Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_ResendEmail
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceCertificateOrders ResendEmail. */
+public final class AppServiceCertificateOrdersResendEmailSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_ResendRequestEmails
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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"),
+ Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_RetrieveCertificateActions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceCertificateOrders RetrieveCertificateActions. */
+public final class AppServiceCertificateOrdersRetrieveCertificateActionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_RetrieveCertificateEmailHistory
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceCertificateOrders RetrieveCertificateEmailHistory. */
+public final class AppServiceCertificateOrdersRetrieveCertificateEmailHistorySamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_RetrieveSiteSeal
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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"),
+ Context.NONE);
+ }
+}
+```
+
+### AppServiceCertificateOrders_Update
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withCertificates(
+ mapOf(
+ "SampleCertName1",
+ new AppServiceCertificate()
+ .withKeyVaultId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName")
+ .withKeyVaultSecretName("SampleSecretName1"),
+ "SampleCertName2",
+ new AppServiceCertificate()
+ .withKeyVaultId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName")
+ .withKeyVaultSecretName("SampleSecretName2")))
+ .withAutoRenew(true)
+ .apply();
+ }
+
+ @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.core.util.Context;
+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/2022-03-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", 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.core.util.Context;
+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/2022-03-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(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName")
+ .withKeyVaultSecretName("SampleSecretName1"),
+ "SampleCertName2",
+ new AppServiceCertificate()
+ .withKeyVaultId(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName")
+ .withKeyVaultSecretName("SampleSecretName2")))
+ .withDistinguishedName("CN=SampleCustomDomain.com")
+ .withValidityInYears(2)
+ .withKeySize(2048)
+ .withProductType(CertificateProductType.STANDARD_DOMAIN_VALIDATED_SSL)
+ .withAutoRenew(true),
+ Context.NONE);
+ }
+
+ @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
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceCertificateOrders VerifyDomainOwnership. */
+public final class AppServiceCertificateOrdersVerifyDomainOwnershipSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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", 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/2022-03-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.core.util.Context;
+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/2022-03-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"),
+ 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/2022-03-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.core.util.Context;
+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/2022-03-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),
+ Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_CreateOrUpdateWorkerPool
+
+```java
+/** Samples for AppServiceEnvironments CreateOrUpdateWorkerPool. */
+public final class AppServiceEnvironmentsCreateOrUpdateWorkerPoolSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments Delete. */
+public final class AppServiceEnvironmentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_DeleteAseCustomDnsSuffixConfiguration
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments DeleteAseCustomDnsSuffixConfiguration. */
+public final class AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_DeletePrivateEndpointConnection
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments DeletePrivateEndpointConnection. */
+public final class AppServiceEnvironmentsDeletePrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetAseCustomDnsSuffixConfiguration
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetAseCustomDnsSuffixConfiguration. */
+public final class AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetAseV3NetworkingConfiguration
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetAseV3NetworkingConfiguration. */
+public final class AppServiceEnvironmentsGetAseV3NetworkingConfigurationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetByResourceGroup. */
+public final class AppServiceEnvironmentsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetDiagnosticsItem
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetDiagnosticsItem. */
+public final class AppServiceEnvironmentsGetDiagnosticsItemSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetInboundNetworkDependenciesEndpoints
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetInboundNetworkDependenciesEndpoints. */
+public final class AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetMultiRolePool
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetMultiRolePool. */
+public final class AppServiceEnvironmentsGetMultiRolePoolSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetOutboundNetworkDependenciesEndpoints
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetOutboundNetworkDependenciesEndpoints. */
+public final class AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetPrivateEndpointConnection
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetPrivateEndpointConnection. */
+public final class AppServiceEnvironmentsGetPrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetPrivateEndpointConnectionList
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetPrivateEndpointConnectionList. */
+public final class AppServiceEnvironmentsGetPrivateEndpointConnectionListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetPrivateLinkResources
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetPrivateLinkResources. */
+public final class AppServiceEnvironmentsGetPrivateLinkResourcesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetVipInfo
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetVipInfo. */
+public final class AppServiceEnvironmentsGetVipInfoSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_GetWorkerPool
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments GetWorkerPool. */
+public final class AppServiceEnvironmentsGetWorkerPoolSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments List. */
+public final class AppServiceEnvironmentsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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(Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListAppServicePlans
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListAppServicePlans. */
+public final class AppServiceEnvironmentsListAppServicePlansSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListByResourceGroup. */
+public final class AppServiceEnvironmentsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListCapacities
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListCapacities. */
+public final class AppServiceEnvironmentsListCapacitiesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListDiagnostics
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListDiagnostics. */
+public final class AppServiceEnvironmentsListDiagnosticsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListMultiRoleMetricDefinitions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListMultiRoleMetricDefinitions. */
+public final class AppServiceEnvironmentsListMultiRoleMetricDefinitionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListMultiRolePoolInstanceMetricDefinitions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListMultiRolePoolInstanceMetricDefinitions. */
+public final class AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListMultiRolePoolSkus
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListMultiRolePoolSkus. */
+public final class AppServiceEnvironmentsListMultiRolePoolSkusSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListMultiRolePools
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListMultiRolePools. */
+public final class AppServiceEnvironmentsListMultiRolePoolsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListMultiRoleUsages
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListMultiRoleUsages. */
+public final class AppServiceEnvironmentsListMultiRoleUsagesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListOperations
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListOperations. */
+public final class AppServiceEnvironmentsListOperationsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListUsages
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListUsages. */
+public final class AppServiceEnvironmentsListUsagesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWebApps
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListWebApps. */
+public final class AppServiceEnvironmentsListWebAppsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWebWorkerMetricDefinitions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListWebWorkerMetricDefinitions. */
+public final class AppServiceEnvironmentsListWebWorkerMetricDefinitionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWebWorkerUsages
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListWebWorkerUsages. */
+public final class AppServiceEnvironmentsListWebWorkerUsagesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWorkerPoolInstanceMetricDefinitions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListWorkerPoolInstanceMetricDefinitions. */
+public final class AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWorkerPoolSkus
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListWorkerPoolSkus. */
+public final class AppServiceEnvironmentsListWorkerPoolSkusSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_ListWorkerPools
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments ListWorkerPools. */
+public final class AppServiceEnvironmentsListWorkerPoolsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_Reboot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments Reboot. */
+public final class AppServiceEnvironmentsRebootSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_Resume
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments Resume. */
+public final class AppServiceEnvironmentsResumeSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_Suspend
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServiceEnvironments Suspend. */
+public final class AppServiceEnvironmentsSuspendSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_Update
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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", 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.core.util.Context;
+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/2022-03-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(
+ "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/test-rg/providers/microsoft.managedidentity/userassignedidentities/test-user-mi"),
+ Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_UpdateAseNetworkingConfiguration
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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),
+ Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_UpdateMultiRolePool
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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),
+ Context.NONE);
+ }
+}
+```
+
+### AppServiceEnvironments_UpdateWorkerPool
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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", Context.NONE)
+ .getValue();
+ resource.update().withWorkerSize("Small").withWorkerCount(3).apply();
+ }
+}
+```
+
+### 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/2022-03-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
+import com.azure.core.util.Context;
+
+/** Samples for AppServicePlans Delete. */
+public final class AppServicePlansDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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().deleteWithResponse("testrg123", "testsf6141", Context.NONE);
+ }
+}
+```
+
+### AppServicePlans_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServicePlans GetByResourceGroup. */
+public final class AppServicePlansGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServicePlans_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServicePlans List. */
+public final class AppServicePlansListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### AppServicePlans_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AppServicePlans ListByResourceGroup. */
+public final class AppServicePlansListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### AppServicePlans_Update
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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", Context.NONE)
+ .getValue();
+ resource.update().withKind("app").apply();
+ }
+}
+```
+
+### CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CertificateOrdersDiagnostics GetAppServiceCertificateOrderDetectorResponse. */
+public final class CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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,
+ Context.NONE);
+ }
+}
+```
+
+### CertificateOrdersDiagnostics_ListAppServiceCertificateOrderDetectorResponse
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CertificateOrdersDiagnostics ListAppServiceCertificateOrderDetectorResponse. */
+public final class CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### CertificateRegistrationProvider_ListOperations
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CertificateRegistrationProvider ListOperations. */
+public final class CertificateRegistrationProviderListOperationsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-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(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/2022-03-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
+import com.azure.core.util.Context;
+
+/** Samples for Certificates Delete. */
+public final class CertificatesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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().deleteWithResponse("testrg123", "testc6282", Context.NONE);
+ }
+}
+```
+
+### Certificates_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Certificates GetByResourceGroup. */
+public final class CertificatesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Certificates_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Certificates List. */
+public final class CertificatesListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### Certificates_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Certificates ListByResourceGroup. */
+public final class CertificatesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Certificates_Update
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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", 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/2022-03-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();
+ }
+
+ @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
+import com.azure.core.util.Context;
+
+/** Samples for ContainerApps Delete. */
+public final class ContainerAppsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ContainerApps_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerApps GetByResourceGroup. */
+public final class ContainerAppsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ContainerApps_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerApps List. */
+public final class ContainerAppsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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(Context.NONE);
+ }
+}
+```
+
+### ContainerApps_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerApps ListByResourceGroup. */
+public final class ContainerAppsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ContainerApps_ListSecrets
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerApps ListSecrets. */
+public final class ContainerAppsListSecretsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_ActivateRevision
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisions ActivateRevision. */
+public final class ContainerAppsRevisionsActivateRevisionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_DeactivateRevision
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisions DeactivateRevision. */
+public final class ContainerAppsRevisionsDeactivateRevisionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_GetRevision
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisions GetRevision. */
+public final class ContainerAppsRevisionsGetRevisionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_ListRevisions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisions ListRevisions. */
+public final class ContainerAppsRevisionsListRevisionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ContainerAppsRevisions_RestartRevision
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContainerAppsRevisions RestartRevision. */
+public final class ContainerAppsRevisionsRestartRevisionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### DeletedWebApps_GetDeletedWebAppByLocation
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DeletedWebApps GetDeletedWebAppByLocation. */
+public final class DeletedWebAppsGetDeletedWebAppByLocationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### DeletedWebApps_ListByLocation
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DeletedWebApps ListByLocation. */
+public final class DeletedWebAppsListByLocationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ExecuteSiteAnalysis
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ExecuteSiteAnalysis. */
+public final class DiagnosticsExecuteSiteAnalysisSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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,
+ Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ExecuteSiteAnalysisSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ExecuteSiteAnalysisSlot. */
+public final class DiagnosticsExecuteSiteAnalysisSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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,
+ Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ExecuteSiteDetector
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ExecuteSiteDetector. */
+public final class DiagnosticsExecuteSiteDetectorSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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,
+ Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ExecuteSiteDetectorSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ExecuteSiteDetectorSlot. */
+public final class DiagnosticsExecuteSiteDetectorSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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,
+ Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetHostingEnvironmentDetectorResponse
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics GetHostingEnvironmentDetectorResponse. */
+public final class DiagnosticsGetHostingEnvironmentDetectorResponseSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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,
+ Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteAnalysis
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics GetSiteAnalysis. */
+public final class DiagnosticsGetSiteAnalysisSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteAnalysisSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics GetSiteAnalysisSlot. */
+public final class DiagnosticsGetSiteAnalysisSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDetector
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics GetSiteDetector. */
+public final class DiagnosticsGetSiteDetectorSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDetectorResponse
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics GetSiteDetectorResponse. */
+public final class DiagnosticsGetSiteDetectorResponseSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDetectorResponseSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics GetSiteDetectorResponseSlot. */
+public final class DiagnosticsGetSiteDetectorResponseSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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,
+ Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDetectorSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics GetSiteDetectorSlot. */
+public final class DiagnosticsGetSiteDetectorSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDiagnosticCategory
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics GetSiteDiagnosticCategory. */
+public final class DiagnosticsGetSiteDiagnosticCategorySamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_GetSiteDiagnosticCategorySlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics GetSiteDiagnosticCategorySlot. */
+public final class DiagnosticsGetSiteDiagnosticCategorySlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListHostingEnvironmentDetectorResponses
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ListHostingEnvironmentDetectorResponses. */
+public final class DiagnosticsListHostingEnvironmentDetectorResponsesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteAnalyses
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ListSiteAnalyses. */
+public final class DiagnosticsListSiteAnalysesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteAnalysesSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ListSiteAnalysesSlot. */
+public final class DiagnosticsListSiteAnalysesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDetectorResponses
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ListSiteDetectorResponses. */
+public final class DiagnosticsListSiteDetectorResponsesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDetectorResponsesSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ListSiteDetectorResponsesSlot. */
+public final class DiagnosticsListSiteDetectorResponsesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDetectors
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ListSiteDetectors. */
+public final class DiagnosticsListSiteDetectorsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDetectorsSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ListSiteDetectorsSlot. */
+public final class DiagnosticsListSiteDetectorsSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDiagnosticCategories
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ListSiteDiagnosticCategories. */
+public final class DiagnosticsListSiteDiagnosticCategoriesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Diagnostics_ListSiteDiagnosticCategoriesSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Diagnostics ListSiteDiagnosticCategoriesSlot. */
+public final class DiagnosticsListSiteDiagnosticCategoriesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### DomainRegistrationProvider_ListOperations
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DomainRegistrationProvider ListOperations. */
+public final class DomainRegistrationProviderListOperationsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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(Context.NONE);
+ }
+}
+```
+
+### Domains_CheckAvailability
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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"), 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/2022-03-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("67098")
+ .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("67098")
+ .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("67098")
+ .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("67098")
+ .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();
+ }
+
+ @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/2022-03-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
+import com.azure.core.util.Context;
+
+/** Samples for Domains Delete. */
+public final class DomainsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### Domains_DeleteOwnershipIdentifier
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Domains DeleteOwnershipIdentifier. */
+public final class DomainsDeleteOwnershipIdentifierSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Domains_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Domains GetByResourceGroup. */
+public final class DomainsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Domains_GetControlCenterSsoRequest
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Domains GetControlCenterSsoRequest. */
+public final class DomainsGetControlCenterSsoRequestSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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(Context.NONE);
+ }
+}
+```
+
+### Domains_GetOwnershipIdentifier
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Domains GetOwnershipIdentifier. */
+public final class DomainsGetOwnershipIdentifierSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Domains_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Domains List. */
+public final class DomainsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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(Context.NONE);
+ }
+}
+```
+
+### Domains_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Domains ListByResourceGroup. */
+public final class DomainsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Domains_ListOwnershipIdentifiers
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Domains ListOwnershipIdentifiers. */
+public final class DomainsListOwnershipIdentifiersSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Domains_ListRecommendations
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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("example1").withMaxDomainRecommendations(10),
+ Context.NONE);
+ }
+}
+```
+
+### Domains_Renew
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Domains Renew. */
+public final class DomainsRenewSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Domains_TransferOut
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Domains TransferOut. */
+public final class DomainsTransferOutSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Domains_Update
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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", Context.NONE).getValue();
+ resource
+ .update()
+ .withPrivacy(false)
+ .withAutoRenew(true)
+ .withDnsType(DnsType.DEFAULT_DOMAIN_REGISTRAR_DNS)
+ .apply();
+ }
+}
+```
+
+### Domains_UpdateOwnershipIdentifier
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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", Context.NONE)
+ .getValue();
+ resource.update().withOwnershipId("SampleOwnershipId").apply();
+ }
+}
+```
+
+### Global_GetDeletedWebApp
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Global GetDeletedWebApp. */
+public final class GlobalGetDeletedWebAppSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Global_GetDeletedWebAppSnapshots
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Global GetDeletedWebAppSnapshots. */
+public final class GlobalGetDeletedWebAppSnapshotsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### Global_GetSubscriptionOperationWithAsyncResponse
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Global GetSubscriptionOperationWithAsyncResponse. */
+public final class GlobalGetSubscriptionOperationWithAsyncResponseSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### KubeEnvironments_CreateOrUpdate
+
+```java
+/** Samples for KubeEnvironments CreateOrUpdate. */
+public final class KubeEnvironmentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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
+import com.azure.core.util.Context;
+
+/** Samples for KubeEnvironments Delete. */
+public final class KubeEnvironmentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### KubeEnvironments_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for KubeEnvironments GetByResourceGroup. */
+public final class KubeEnvironmentsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### KubeEnvironments_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for KubeEnvironments List. */
+public final class KubeEnvironmentsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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(Context.NONE);
+ }
+}
+```
+
+### KubeEnvironments_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for KubeEnvironments ListByResourceGroup. */
+public final class KubeEnvironmentsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### KubeEnvironments_Update
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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", Context.NONE)
+ .getValue();
+ resource.update().apply();
+ }
+}
+```
+
+### Provider_GetFunctionAppStacks
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Provider GetFunctionAppStacks. */
+public final class ProviderGetFunctionAppStacksSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### Provider_GetFunctionAppStacksForLocation
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Provider GetFunctionAppStacksForLocation. */
+public final class ProviderGetFunctionAppStacksForLocationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### Provider_GetWebAppStacks
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Provider GetWebAppStacks. */
+public final class ProviderGetWebAppStacksSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### Provider_GetWebAppStacksForLocation
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Provider GetWebAppStacksForLocation. */
+public final class ProviderGetWebAppStacksForLocationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### Provider_ListOperations
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Provider ListOperations. */
+public final class ProviderListOperationsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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(Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_GetBySite
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ResourceHealthMetadata GetBySite. */
+public final class ResourceHealthMetadataGetBySiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_GetBySiteSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ResourceHealthMetadata GetBySiteSlot. */
+public final class ResourceHealthMetadataGetBySiteSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ResourceHealthMetadata List. */
+public final class ResourceHealthMetadataListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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(Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ResourceHealthMetadata ListByResourceGroup. */
+public final class ResourceHealthMetadataListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_ListBySite
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ResourceHealthMetadata ListBySite. */
+public final class ResourceHealthMetadataListBySiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ResourceHealthMetadata_ListBySiteSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ResourceHealthMetadata ListBySiteSlot. */
+public final class ResourceHealthMetadataListBySiteSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### ResourceProvider_ListCustomHostnameSites
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ResourceProvider ListCustomHostnameSites. */
+public final class ResourceProviderListCustomHostnameSitesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### ResourceProvider_VerifyHostingEnvironmentVnet
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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"),
+ Context.NONE);
+ }
+}
+```
+
+### StaticSites_ApproveOrRejectPrivateEndpointConnection
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appservice.generated.models.PrivateLinkConnectionApprovalRequestResource;
+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/2022-03-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 PrivateLinkConnectionApprovalRequestResource()
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkConnectionState()
+ .withStatus("Approved")
+ .withDescription("Approved by admin.")
+ .withActionsRequired("")),
+ 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/2022-03-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.core.util.Context;
+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/2022-03-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")),
+ Context.NONE);
+ }
+
+ @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.core.util.Context;
+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/2022-03-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")),
+ Context.NONE);
+ }
+
+ @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.core.util.Context;
+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/2022-03-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")),
+ Context.NONE);
+ }
+
+ @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/2022-03-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.core.util.Context;
+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/2022-03-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")),
+ Context.NONE);
+ }
+
+ @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.core.util.Context;
+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/2022-03-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),
+ Context.NONE);
+ }
+}
+```
+
+### StaticSites_CreateZipDeploymentForStaticSite
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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"),
+ Context.NONE);
+ }
+}
+```
+
+### StaticSites_CreateZipDeploymentForStaticSiteBuild
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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"),
+ Context.NONE);
+ }
+}
+```
+
+### StaticSites_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites Delete. */
+public final class StaticSitesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_DeletePrivateEndpointConnection
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites DeletePrivateEndpointConnection. */
+public final class StaticSitesDeletePrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_DeleteStaticSiteBuild
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites DeleteStaticSiteBuild. */
+public final class StaticSitesDeleteStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_DeleteStaticSiteCustomDomain
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites DeleteStaticSiteCustomDomain. */
+public final class StaticSitesDeleteStaticSiteCustomDomainSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_DeleteStaticSiteUser
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites DeleteStaticSiteUser. */
+public final class StaticSitesDeleteStaticSiteUserSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_DetachStaticSite
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites DetachStaticSite. */
+public final class StaticSitesDetachStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_DetachUserProvidedFunctionAppFromStaticSite
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites DetachUserProvidedFunctionAppFromStaticSite. */
+public final class StaticSitesDetachUserProvidedFunctionAppFromStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_DetachUserProvidedFunctionAppFromStaticSiteBuild
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites DetachUserProvidedFunctionAppFromStaticSiteBuild. */
+public final class StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetByResourceGroup. */
+public final class StaticSitesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetLinkedBackend
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetLinkedBackend. */
+public final class StaticSitesGetLinkedBackendSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetLinkedBackendForBuild
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetLinkedBackendForBuild. */
+public final class StaticSitesGetLinkedBackendForBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetLinkedBackends
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetLinkedBackends. */
+public final class StaticSitesGetLinkedBackendsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetLinkedBackendsForBuild
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetLinkedBackendsForBuild. */
+public final class StaticSitesGetLinkedBackendsForBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetPrivateEndpointConnection
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetPrivateEndpointConnection. */
+public final class StaticSitesGetPrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetPrivateEndpointConnectionList
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetPrivateEndpointConnectionList. */
+public final class StaticSitesGetPrivateEndpointConnectionListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetPrivateLinkResources
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetPrivateLinkResources. */
+public final class StaticSitesGetPrivateLinkResourcesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetStaticSiteBuild
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetStaticSiteBuild. */
+public final class StaticSitesGetStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetStaticSiteBuilds
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetStaticSiteBuilds. */
+public final class StaticSitesGetStaticSiteBuildsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetStaticSiteCustomDomain
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetStaticSiteCustomDomain. */
+public final class StaticSitesGetStaticSiteCustomDomainSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetUserProvidedFunctionAppForStaticSite
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetUserProvidedFunctionAppForStaticSite. */
+public final class StaticSitesGetUserProvidedFunctionAppForStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetUserProvidedFunctionAppForStaticSiteBuild
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetUserProvidedFunctionAppForStaticSiteBuild. */
+public final class StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetUserProvidedFunctionAppsForStaticSite
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetUserProvidedFunctionAppsForStaticSite. */
+public final class StaticSitesGetUserProvidedFunctionAppsForStaticSiteSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_GetUserProvidedFunctionAppsForStaticSiteBuild
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites GetUserProvidedFunctionAppsForStaticSiteBuild. */
+public final class StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_LinkBackend
+
+```java
+/** Samples for StaticSites LinkBackend. */
+public final class StaticSitesLinkBackendSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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.core.util.Context;
+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/2022-03-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"),
+ Context.NONE);
+ }
+}
+```
+
+### StaticSites_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites List. */
+public final class StaticSitesListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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(Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites ListByResourceGroup. */
+public final class StaticSitesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteAppSettings
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites ListStaticSiteAppSettings. */
+public final class StaticSitesListStaticSiteAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteBuildAppSettings
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites ListStaticSiteBuildAppSettings. */
+public final class StaticSitesListStaticSiteBuildAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteBuildFunctionAppSettings
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites ListStaticSiteBuildFunctionAppSettings. */
+public final class StaticSitesListStaticSiteBuildFunctionAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteBuildFunctions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites ListStaticSiteBuildFunctions. */
+public final class StaticSitesListStaticSiteBuildFunctionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteConfiguredRoles
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites ListStaticSiteConfiguredRoles. */
+public final class StaticSitesListStaticSiteConfiguredRolesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteCustomDomains
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites ListStaticSiteCustomDomains. */
+public final class StaticSitesListStaticSiteCustomDomainsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteFunctionAppSettings
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites ListStaticSiteFunctionAppSettings. */
+public final class StaticSitesListStaticSiteFunctionAppSettingsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteFunctions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites ListStaticSiteFunctions. */
+public final class StaticSitesListStaticSiteFunctionsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteSecrets
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites ListStaticSiteSecrets. */
+public final class StaticSitesListStaticSiteSecretsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_ListStaticSiteUsers
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites ListStaticSiteUsers. */
+public final class StaticSitesListStaticSiteUsersSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### StaticSites_PreviewWorkflow
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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")),
+ Context.NONE);
+ }
+}
+```
+
+### StaticSites_RegisterUserProvidedFunctionAppWithStaticSite
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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,
+ Context.NONE);
+ }
+}
+```
+
+### StaticSites_RegisterUserProvidedFunctionAppWithStaticSiteBuild
+
+```java
+/** Samples for StaticSites RegisterUserProvidedFunctionAppWithStaticSiteBuild. */
+public final class StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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.core.util.Context;
+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/2022-03-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("repoToken123")
+ .withShouldUpdateRepository(true),
+ Context.NONE);
+ }
+}
+```
+
+### StaticSites_UnlinkBackend
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites UnlinkBackend. */
+public final class StaticSitesUnlinkBackendSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### StaticSites_UnlinkBackendFromBuild
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StaticSites UnlinkBackendFromBuild. */
+public final class StaticSitesUnlinkBackendFromBuildSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### StaticSites_UpdateStaticSite
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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", Context.NONE).getValue();
+ resource.update().apply();
+ }
+}
+```
+
+### StaticSites_UpdateStaticSiteUser
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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"),
+ Context.NONE);
+ }
+}
+```
+
+### StaticSites_ValidateBackend
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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"),
+ Context.NONE);
+ }
+}
+```
+
+### StaticSites_ValidateBackendForBuild
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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"),
+ Context.NONE);
+ }
+}
+```
+
+### StaticSites_ValidateCustomDomainCanBeAddedToStaticSite
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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(),
+ Context.NONE);
+ }
+}
+```
+
+### TopLevelDomains_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for TopLevelDomains Get. */
+public final class TopLevelDomainsGetSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### TopLevelDomains_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for TopLevelDomains List. */
+public final class TopLevelDomainsListSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-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(Context.NONE);
+ }
+}
+```
+
+### TopLevelDomains_ListAgreements
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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),
+ Context.NONE);
+ }
+}
+```
+
+### WebApps_ApproveOrRejectPrivateEndpointConnection
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appservice.generated.models.PrivateLinkConnectionApprovalRequestResource;
+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/2022-03-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 PrivateLinkConnectionApprovalRequestResource()
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkConnectionState()
+ .withStatus("Approved")
+ .withDescription("Approved by admin.")
+ .withActionsRequired("")),
+ Context.NONE);
+ }
+}
+```
+
+### WebApps_ApproveOrRejectPrivateEndpointConnectionSlot
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.appservice.generated.models.PrivateLinkConnectionApprovalRequestResource;
+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/2022-03-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 PrivateLinkConnectionApprovalRequestResource()
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkConnectionState()
+ .withStatus("Approved")
+ .withDescription("Approved by admin.")
+ .withActionsRequired("")),
+ Context.NONE);
+ }
+}
+```
+
+### WebApps_DeletePrivateEndpointConnection
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps DeletePrivateEndpointConnection. */
+public final class WebAppsDeletePrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_DeletePrivateEndpointConnectionSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps DeletePrivateEndpointConnectionSlot. */
+public final class WebAppsDeletePrivateEndpointConnectionSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetAppSettingKeyVaultReference
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetAppSettingKeyVaultReference. */
+public final class WebAppsGetAppSettingKeyVaultReferenceSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetAppSettingKeyVaultReferenceSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetAppSettingKeyVaultReferenceSlot. */
+public final class WebAppsGetAppSettingKeyVaultReferenceSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetAppSettingsKeyVaultReferences
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetAppSettingsKeyVaultReferences. */
+public final class WebAppsGetAppSettingsKeyVaultReferencesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetAppSettingsKeyVaultReferencesSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetAppSettingsKeyVaultReferencesSlot. */
+public final class WebAppsGetAppSettingsKeyVaultReferencesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetFtpAllowed
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetFtpAllowed. */
+public final class WebAppsGetFtpAllowedSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetFtpAllowedSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetFtpAllowedSlot. */
+public final class WebAppsGetFtpAllowedSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetInstanceInfo
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetInstanceInfo. */
+public final class WebAppsGetInstanceInfoSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetInstanceInfoSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetInstanceInfoSlot. */
+public final class WebAppsGetInstanceInfoSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTraceOperation
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetNetworkTraceOperation. */
+public final class WebAppsGetNetworkTraceOperationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTraceOperationSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetNetworkTraceOperationSlot. */
+public final class WebAppsGetNetworkTraceOperationSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTraceOperationSlotV2
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetNetworkTraceOperationSlotV2. */
+public final class WebAppsGetNetworkTraceOperationSlotV2Samples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTraceOperationV2
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetNetworkTraceOperationV2. */
+public final class WebAppsGetNetworkTraceOperationV2Samples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTraces
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetNetworkTraces. */
+public final class WebAppsGetNetworkTracesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTracesSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetNetworkTracesSlot. */
+public final class WebAppsGetNetworkTracesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTracesSlotV2
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetNetworkTracesSlotV2. */
+public final class WebAppsGetNetworkTracesSlotV2Samples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetNetworkTracesV2
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetNetworkTracesV2. */
+public final class WebAppsGetNetworkTracesV2Samples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetPrivateEndpointConnection
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetPrivateEndpointConnection. */
+public final class WebAppsGetPrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetPrivateEndpointConnectionSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetPrivateEndpointConnectionSlot. */
+public final class WebAppsGetPrivateEndpointConnectionSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetPrivateLinkResources
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetPrivateLinkResources. */
+public final class WebAppsGetPrivateLinkResourcesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetPrivateLinkResourcesSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetPrivateLinkResourcesSlot. */
+public final class WebAppsGetPrivateLinkResourcesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetProductionSiteDeploymentStatus
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetProductionSiteDeploymentStatus. */
+public final class WebAppsGetProductionSiteDeploymentStatusSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetScmAllowed
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetScmAllowed. */
+public final class WebAppsGetScmAllowedSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetScmAllowedSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetScmAllowedSlot. */
+public final class WebAppsGetScmAllowedSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_GetSlotSiteDeploymentStatusSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps GetSlotSiteDeploymentStatusSlot. */
+public final class WebAppsGetSlotSiteDeploymentStatusSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_ListBasicPublishingCredentialsPolicies
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps ListBasicPublishingCredentialsPolicies. */
+public final class WebAppsListBasicPublishingCredentialsPoliciesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_ListBasicPublishingCredentialsPoliciesSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps ListBasicPublishingCredentialsPoliciesSlot. */
+public final class WebAppsListBasicPublishingCredentialsPoliciesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_ListProductionSiteDeploymentStatuses
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps ListProductionSiteDeploymentStatuses. */
+public final class WebAppsListProductionSiteDeploymentStatusesSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_ListSiteBackups
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps ListSiteBackups. */
+public final class WebAppsListSiteBackupsSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_ListSiteBackupsSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps ListSiteBackupsSlot. */
+public final class WebAppsListSiteBackupsSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_ListSlotSiteDeploymentStatusesSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps ListSlotSiteDeploymentStatusesSlot. */
+public final class WebAppsListSlotSiteDeploymentStatusesSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_StartNetworkTrace
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps StartNetworkTrace. */
+public final class WebAppsStartNetworkTraceSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### WebApps_StartNetworkTraceSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps StartNetworkTraceSlot. */
+public final class WebAppsStartNetworkTraceSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### WebApps_StartWebSiteNetworkTraceOperation
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps StartWebSiteNetworkTraceOperation. */
+public final class WebAppsStartWebSiteNetworkTraceOperationSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### WebApps_StartWebSiteNetworkTraceOperationSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps StartWebSiteNetworkTraceOperationSlot. */
+public final class WebAppsStartWebSiteNetworkTraceOperationSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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, Context.NONE);
+ }
+}
+```
+
+### WebApps_StopNetworkTrace
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps StopNetworkTrace. */
+public final class WebAppsStopNetworkTraceSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_StopNetworkTraceSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps StopNetworkTraceSlot. */
+public final class WebAppsStopNetworkTraceSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_StopWebSiteNetworkTrace
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps StopWebSiteNetworkTrace. */
+public final class WebAppsStopWebSiteNetworkTraceSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_StopWebSiteNetworkTraceSlot
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for WebApps StopWebSiteNetworkTraceSlot. */
+public final class WebAppsStopWebSiteNetworkTraceSlotSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2022-03-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", Context.NONE);
+ }
+}
+```
+
+### WebApps_UpdateFtpAllowed
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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), Context.NONE);
+ }
+}
+```
+
+### WebApps_UpdateFtpAllowedSlot
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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),
+ Context.NONE);
+ }
+}
+```
+
+### WebApps_UpdateScmAllowed
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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), Context.NONE);
+ }
+}
+```
+
+### WebApps_UpdateScmAllowedSlot
+
+```java
+import com.azure.core.util.Context;
+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/2022-03-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),
+ 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 000000000000..317d3093a9ca
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/pom.xml
@@ -0,0 +1,55 @@
+
+ 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-2022-03.
+ 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
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.29.1
+
+
+ com.azure
+ azure-core-management
+ 1.6.2
+
+
+
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 000000000000..6d629ab6aa5f
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/AppServiceManager.java
@@ -0,0 +1,615 @@
+// 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.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+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.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.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.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 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 StaticSites staticSites;
+
+ private WebApps webApps;
+
+ 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 StaticSites. It manages StaticSiteArmResource,
+ * StaticSiteUserProvidedFunctionAppArmResource, 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,
+ * VnetInfoResource, VnetGateway.
+ *
+ * @return Resource collection API of WebApps.
+ */
+ public WebApps webApps() {
+ if (this.webApps == null) {
+ this.webApps = new WebAppsImpl(clientObject.getWebApps(), this);
+ }
+ return webApps;
+ }
+
+ /**
+ * @return Wrapped service client WebSiteManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ */
+ 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 000000000000..6cd4ebafd888
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServiceCertificateOrdersClient.java
@@ -0,0 +1,774 @@
+// 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 {
+ /**
+ * 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();
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+}
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 000000000000..15e04ebe41ba
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServiceEnvironmentsClient.java
@@ -0,0 +1,1729 @@
+// 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.PrivateLinkConnectionApprovalRequestResource;
+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 {
+ /**
+ * 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();
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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>.
+ * @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);
+
+ /**
+ * 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);
+
+ /**
+ * 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>.
+ * @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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ * @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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Object deleteAseCustomDnsSuffixConfiguration(String resourceGroupName, String name);
+
+ /**
+ * 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