diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index bd305662a3c5d..8f1fd49359266 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -331,6 +331,7 @@ com.azure.resourcemanager:azure-resourcemanager-desktopvirtualization;1.0.0-beta
com.azure.resourcemanager:azure-resourcemanager-loadtestservice;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-automanage;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-edgeorder;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
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
diff --git a/pom.xml b/pom.xml
index aab77f33ebeb9..81a5e454b2bc4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -719,6 +719,7 @@
sdk/apimanagementsdk/appconfigurationsdk/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 0000000000000..ff138083e2bbf
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-01-04)
+
+- Azure Resource Manager AppService client library for Java. This package contains Microsoft Azure SDK for AppService Management SDK. WebSite Management Client. Package tag package-2021-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 0000000000000..adacadc3f8f86
--- /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-2021-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 0000000000000..eb35d54f33a1c
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/SAMPLE.md
@@ -0,0 +1,4807 @@
+# Code snippets and samples
+
+
+## AppServiceEnvironments
+
+- [GetInboundNetworkDependenciesEndpoints](#appserviceenvironments_getinboundnetworkdependenciesendpoints)
+- [GetOutboundNetworkDependenciesEndpoints](#appserviceenvironments_getoutboundnetworkdependenciesendpoints)
+
+## 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
+
+- [Renew](#domains_renew)
+- [TransferOut](#domains_transferout)
+
+## 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)
+- [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)
+- [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)
+- [UpdateStaticSite](#staticsites_updatestaticsite)
+- [UpdateStaticSiteUser](#staticsites_updatestaticsiteuser)
+- [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)
+- [GetScmAllowed](#webapps_getscmallowed)
+- [GetScmAllowedSlot](#webapps_getscmallowedslot)
+- [ListBasicPublishingCredentialsPolicies](#webapps_listbasicpublishingcredentialspolicies)
+- [ListBasicPublishingCredentialsPoliciesSlot](#webapps_listbasicpublishingcredentialspoliciesslot)
+- [ListSiteBackups](#webapps_listsitebackups)
+- [ListSiteBackupsSlot](#webapps_listsitebackupsslot)
+- [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)
+### 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/2021-03-01/examples/GetInboundNetworkDependenciesEndpoints.json
+ */
+ /**
+ * Sample code: Get Inbound Network Dependencies Endpoints.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getInboundNetworkDependenciesEndpoints(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager
+ .appServiceEnvironments()
+ .getInboundNetworkDependenciesEndpoints("Sample-WestUSResourceGroup", "SampleAse", 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/2021-03-01/examples/GetOutboundNetworkDependenciesEndpoints.json
+ */
+ /**
+ * Sample code: Get Outbound Network Dependencies Endpoints.
+ *
+ * @param manager Entry point to AppServiceManager.
+ */
+ public static void getOutboundNetworkDependenciesEndpoints(
+ com.azure.resourcemanager.appservice.generated.AppServiceManager manager) {
+ manager
+ .appServiceEnvironments()
+ .getOutboundNetworkDependenciesEndpoints("Sample-WestUSResourceGroup", "SampleAse", Context.NONE);
+ }
+}
+```
+
+### AppServicePlans_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.appservice.generated.models.SkuDescription;
+
+/** Samples for AppServicePlans CreateOrUpdate. */
+public final class AppServicePlansCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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_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/2021-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/2021-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);
+ }
+}
+```
+
+### 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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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(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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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_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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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_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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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_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/2021-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/2021-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_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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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_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/2021-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/2021-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_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/2021-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/2021-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_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/2021-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/2021-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_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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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/2021-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 0000000000000..66a8f0e61a225
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/pom.xml
@@ -0,0 +1,81 @@
+
+ 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-2021-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
+ false
+
+
+
+
+
+ com.azure
+ azure-core
+ 1.23.1
+
+
+ com.azure
+ azure-core-management
+ 1.4.4
+
+
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+
+ java.method.addedToInterface
+
+
+ true
+ .*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
+
diff --git a/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/AppServiceManager.java b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/AppServiceManager.java
new file mode 100644
index 0000000000000..89005e3b37c46
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/AppServiceManager.java
@@ -0,0 +1,489 @@
+// 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.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.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);
+ }
+
+ /**
+ * 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 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 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 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, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' 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) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ 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);
+ }
+ }
+
+ /** @return Resource collection API of AppServiceCertificateOrders. */
+ public AppServiceCertificateOrders appServiceCertificateOrders() {
+ if (this.appServiceCertificateOrders == null) {
+ this.appServiceCertificateOrders =
+ new AppServiceCertificateOrdersImpl(clientObject.getAppServiceCertificateOrders(), this);
+ }
+ return appServiceCertificateOrders;
+ }
+
+ /** @return Resource collection API of CertificateOrdersDiagnostics. */
+ public CertificateOrdersDiagnostics certificateOrdersDiagnostics() {
+ if (this.certificateOrdersDiagnostics == null) {
+ this.certificateOrdersDiagnostics =
+ new CertificateOrdersDiagnosticsImpl(clientObject.getCertificateOrdersDiagnostics(), this);
+ }
+ return certificateOrdersDiagnostics;
+ }
+
+ /** @return Resource collection API of CertificateRegistrationProviders. */
+ public CertificateRegistrationProviders certificateRegistrationProviders() {
+ if (this.certificateRegistrationProviders == null) {
+ this.certificateRegistrationProviders =
+ new CertificateRegistrationProvidersImpl(clientObject.getCertificateRegistrationProviders(), this);
+ }
+ return certificateRegistrationProviders;
+ }
+
+ /** @return Resource collection API of Domains. */
+ public Domains domains() {
+ if (this.domains == null) {
+ this.domains = new DomainsImpl(clientObject.getDomains(), this);
+ }
+ return domains;
+ }
+
+ /** @return Resource collection API of TopLevelDomains. */
+ public TopLevelDomains topLevelDomains() {
+ if (this.topLevelDomains == null) {
+ this.topLevelDomains = new TopLevelDomainsImpl(clientObject.getTopLevelDomains(), this);
+ }
+ return topLevelDomains;
+ }
+
+ /** @return Resource collection API of DomainRegistrationProviders. */
+ public DomainRegistrationProviders domainRegistrationProviders() {
+ if (this.domainRegistrationProviders == null) {
+ this.domainRegistrationProviders =
+ new DomainRegistrationProvidersImpl(clientObject.getDomainRegistrationProviders(), this);
+ }
+ return domainRegistrationProviders;
+ }
+
+ /** @return Resource collection API of AppServiceEnvironments. */
+ public AppServiceEnvironments appServiceEnvironments() {
+ if (this.appServiceEnvironments == null) {
+ this.appServiceEnvironments =
+ new AppServiceEnvironmentsImpl(clientObject.getAppServiceEnvironments(), this);
+ }
+ return appServiceEnvironments;
+ }
+
+ /** @return Resource collection API of AppServicePlans. */
+ public AppServicePlans appServicePlans() {
+ if (this.appServicePlans == null) {
+ this.appServicePlans = new AppServicePlansImpl(clientObject.getAppServicePlans(), this);
+ }
+ return appServicePlans;
+ }
+
+ /** @return Resource collection API of Certificates. */
+ public Certificates certificates() {
+ if (this.certificates == null) {
+ this.certificates = new CertificatesImpl(clientObject.getCertificates(), this);
+ }
+ return certificates;
+ }
+
+ /** @return Resource collection API of ContainerApps. */
+ public ContainerApps containerApps() {
+ if (this.containerApps == null) {
+ this.containerApps = new ContainerAppsImpl(clientObject.getContainerApps(), this);
+ }
+ return containerApps;
+ }
+
+ /** @return Resource collection API of ContainerAppsRevisions. */
+ public ContainerAppsRevisions containerAppsRevisions() {
+ if (this.containerAppsRevisions == null) {
+ this.containerAppsRevisions =
+ new ContainerAppsRevisionsImpl(clientObject.getContainerAppsRevisions(), this);
+ }
+ return containerAppsRevisions;
+ }
+
+ /** @return Resource collection API of DeletedWebApps. */
+ public DeletedWebApps deletedWebApps() {
+ if (this.deletedWebApps == null) {
+ this.deletedWebApps = new DeletedWebAppsImpl(clientObject.getDeletedWebApps(), this);
+ }
+ return deletedWebApps;
+ }
+
+ /** @return Resource collection API of Diagnostics. */
+ public Diagnostics diagnostics() {
+ if (this.diagnostics == null) {
+ this.diagnostics = new DiagnosticsImpl(clientObject.getDiagnostics(), this);
+ }
+ return diagnostics;
+ }
+
+ /** @return Resource collection API of Globals. */
+ public Globals globals() {
+ if (this.globals == null) {
+ this.globals = new GlobalsImpl(clientObject.getGlobals(), this);
+ }
+ return globals;
+ }
+
+ /** @return Resource collection API of KubeEnvironments. */
+ public KubeEnvironments kubeEnvironments() {
+ if (this.kubeEnvironments == null) {
+ this.kubeEnvironments = new KubeEnvironmentsImpl(clientObject.getKubeEnvironments(), this);
+ }
+ return kubeEnvironments;
+ }
+
+ /** @return Resource collection API of Providers. */
+ public Providers providers() {
+ if (this.providers == null) {
+ this.providers = new ProvidersImpl(clientObject.getProviders(), this);
+ }
+ return providers;
+ }
+
+ /** @return Resource collection API of Recommendations. */
+ public Recommendations recommendations() {
+ if (this.recommendations == null) {
+ this.recommendations = new RecommendationsImpl(clientObject.getRecommendations(), this);
+ }
+ return recommendations;
+ }
+
+ /** @return Resource collection API of ResourceHealthMetadatas. */
+ public ResourceHealthMetadatas resourceHealthMetadatas() {
+ if (this.resourceHealthMetadatas == null) {
+ this.resourceHealthMetadatas =
+ new ResourceHealthMetadatasImpl(clientObject.getResourceHealthMetadatas(), this);
+ }
+ return resourceHealthMetadatas;
+ }
+
+ /** @return Resource collection API of ResourceProviders. */
+ public ResourceProviders resourceProviders() {
+ if (this.resourceProviders == null) {
+ this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
+ }
+ return resourceProviders;
+ }
+
+ /** @return Resource collection API of StaticSites. */
+ public StaticSites staticSites() {
+ if (this.staticSites == null) {
+ this.staticSites = new StaticSitesImpl(clientObject.getStaticSites(), this);
+ }
+ return staticSites;
+ }
+
+ /** @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 0000000000000..8fecc1af5939f
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServiceCertificateOrdersClient.java
@@ -0,0 +1,770 @@
+// 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.
+ */
+ @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.
+ */
+ @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 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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 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 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 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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 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 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 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.
+ */
+ @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 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 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 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 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.
+ */
+ @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 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.
+ */
+ @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.
+ */
+ @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 0000000000000..98849286d9631
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServiceEnvironmentsClient.java
@@ -0,0 +1,1632 @@
+// 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.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.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.AppServiceEnvironmentPatchResource;
+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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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 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 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 completion.
+ */
+ @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 completion.
+ */
+ @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, AppServiceEnvironmentPatchResource 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)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String name,
+ AppServiceEnvironmentPatchResource 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable changeVnet(
+ String resourceGroupName, String name, VirtualNetworkProfile vnetInfo, Context context);
+
+ /**
+ * Description for Get networking 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 full view of networking configuration for an ASE.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AseV3NetworkingConfigurationInner getAseV3NetworkingConfiguration(String resourceGroupName, String name);
+
+ /**
+ * Description for Get networking 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 full view of networking configuration for an ASE.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAseV3NetworkingConfigurationWithResponse(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Update networking 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 aseNetworkingConfiguration Full view of networking configuration for an ASE.
+ * @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 networking configuration for an ASE.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AseV3NetworkingConfigurationInner updateAseNetworkingConfiguration(
+ String resourceGroupName, String name, AseV3NetworkingConfigurationInner aseNetworkingConfiguration);
+
+ /**
+ * Description for Update networking 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 aseNetworkingConfiguration Full view of networking configuration for an ASE.
+ * @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 networking configuration for an ASE.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateAseNetworkingConfigurationWithResponse(
+ String resourceGroupName,
+ String name,
+ AseV3NetworkingConfigurationInner aseNetworkingConfiguration,
+ Context context);
+
+ /**
+ * Description for Get diagnostic information for 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 array of HostingEnvironmentDiagnostics.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ List listDiagnostics(String resourceGroupName, String name);
+
+ /**
+ * Description for Get diagnostic information for 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 array of HostingEnvironmentDiagnostics.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response> listDiagnosticsWithResponse(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Get a diagnostics item for 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 diagnosticsName Name of the diagnostics item.
+ * @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 diagnostics for an App Service Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HostingEnvironmentDiagnosticsInner getDiagnosticsItem(
+ String resourceGroupName, String name, String diagnosticsName);
+
+ /**
+ * Description for Get a diagnostics item for 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 diagnosticsName Name of the diagnostics item.
+ * @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 diagnostics for an App Service Environment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDiagnosticsItemWithResponse(
+ String resourceGroupName, String name, String diagnosticsName, Context context);
+
+ /**
+ * Description for Get the network endpoints of all inbound dependencies 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 collection of Inbound Environment Endpoints.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getInboundNetworkDependenciesEndpoints(
+ String resourceGroupName, String name);
+
+ /**
+ * Description for Get the network endpoints of all inbound dependencies 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 collection of Inbound Environment Endpoints.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getInboundNetworkDependenciesEndpoints(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Get all multi-role pools.
+ *
+ * @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 worker pools.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMultiRolePools(String resourceGroupName, String name);
+
+ /**
+ * Description for Get all multi-role pools.
+ *
+ * @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 worker pools.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMultiRolePools(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Get properties of a multi-role pool.
+ *
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkerPoolResourceInner getMultiRolePool(String resourceGroupName, String name);
+
+ /**
+ * Description for Get properties of a multi-role pool.
+ *
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getMultiRolePoolWithResponse(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Create or update a multi-role pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param multiRolePoolEnvelope Properties of the multi-role pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkerPoolResourceInner> beginCreateOrUpdateMultiRolePool(
+ String resourceGroupName, String name, WorkerPoolResourceInner multiRolePoolEnvelope);
+
+ /**
+ * Description for Create or update a multi-role pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param multiRolePoolEnvelope Properties of the multi-role pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkerPoolResourceInner> beginCreateOrUpdateMultiRolePool(
+ String resourceGroupName, String name, WorkerPoolResourceInner multiRolePoolEnvelope, Context context);
+
+ /**
+ * Description for Create or update a multi-role pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param multiRolePoolEnvelope Properties of the multi-role pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkerPoolResourceInner createOrUpdateMultiRolePool(
+ String resourceGroupName, String name, WorkerPoolResourceInner multiRolePoolEnvelope);
+
+ /**
+ * Description for Create or update a multi-role pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param multiRolePoolEnvelope Properties of the multi-role pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkerPoolResourceInner createOrUpdateMultiRolePool(
+ String resourceGroupName, String name, WorkerPoolResourceInner multiRolePoolEnvelope, Context context);
+
+ /**
+ * Description for Create or update a multi-role pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param multiRolePoolEnvelope Properties of the multi-role pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkerPoolResourceInner updateMultiRolePool(
+ String resourceGroupName, String name, WorkerPoolResourceInner multiRolePoolEnvelope);
+
+ /**
+ * Description for Create or update a multi-role pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param multiRolePoolEnvelope Properties of the multi-role pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateMultiRolePoolWithResponse(
+ String resourceGroupName, String name, WorkerPoolResourceInner multiRolePoolEnvelope, Context context);
+
+ /**
+ * Description for Get metric definitions for a specific instance of a multi-role pool 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 instance Name of the instance in the multi-role pool.
+ * @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 metric definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMultiRolePoolInstanceMetricDefinitions(
+ String resourceGroupName, String name, String instance);
+
+ /**
+ * Description for Get metric definitions for a specific instance of a multi-role pool 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 instance Name of the instance in the multi-role pool.
+ * @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 metric definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMultiRolePoolInstanceMetricDefinitions(
+ String resourceGroupName, String name, String instance, Context context);
+
+ /**
+ * Description for Get metric definitions for a multi-role pool 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 collection of metric definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMultiRoleMetricDefinitions(String resourceGroupName, String name);
+
+ /**
+ * Description for Get metric definitions for a multi-role pool 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 collection of metric definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMultiRoleMetricDefinitions(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Get available SKUs for scaling a multi-role pool.
+ *
+ * @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 SKU information.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMultiRolePoolSkus(String resourceGroupName, String name);
+
+ /**
+ * Description for Get available SKUs for scaling a multi-role pool.
+ *
+ * @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 SKU information.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMultiRolePoolSkus(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Get usage metrics for a multi-role pool 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 collection of usages.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMultiRoleUsages(String resourceGroupName, String name);
+
+ /**
+ * Description for Get usage metrics for a multi-role pool 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 collection of usages.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMultiRoleUsages(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for List all currently running operations on the 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 array of Operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ List listOperations(String resourceGroupName, String name);
+
+ /**
+ * Description for List all currently running operations on the 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 array of Operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response> listOperationsWithResponse(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Get the network endpoints of all outbound dependencies 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 collection of Outbound Environment Endpoints.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getOutboundNetworkDependenciesEndpoints(
+ String resourceGroupName, String name);
+
+ /**
+ * Description for Get the network endpoints of all outbound dependencies 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 collection of Outbound Environment Endpoints.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getOutboundNetworkDependenciesEndpoints(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Gets the list of private endpoints associated with a hosting environment.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.appservice.generated.models.DefaultErrorResponseErrorException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getPrivateEndpointConnectionList(
+ String resourceGroupName, String name);
+
+ /**
+ * Description for Gets the list of private endpoints associated with a hosting 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 the response.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getPrivateEndpointConnectionList(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Gets a private endpoint connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
+ * @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 remote Private Endpoint Connection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RemotePrivateEndpointConnectionArmResourceInner getPrivateEndpointConnection(
+ String resourceGroupName, String name, String privateEndpointConnectionName);
+
+ /**
+ * Description for Gets a private endpoint connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param privateEndpointConnectionName Name of the private endpoint connection.
+ * @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 remote Private Endpoint Connection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getPrivateEndpointConnectionWithResponse(
+ String resourceGroupName, String name, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Description for Approves or rejects a private endpoint connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource.
+ * @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 remote Private Endpoint Connection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller<
+ PollResult,
+ RemotePrivateEndpointConnectionArmResourceInner>
+ beginApproveOrRejectPrivateEndpointConnection(
+ String resourceGroupName,
+ String name,
+ String privateEndpointConnectionName,
+ PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper);
+
+ /**
+ * Description for Approves or rejects a private endpoint connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource.
+ * @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 remote Private Endpoint Connection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller<
+ PollResult,
+ RemotePrivateEndpointConnectionArmResourceInner>
+ beginApproveOrRejectPrivateEndpointConnection(
+ String resourceGroupName,
+ String name,
+ String privateEndpointConnectionName,
+ PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper,
+ Context context);
+
+ /**
+ * Description for Approves or rejects a private endpoint connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource.
+ * @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 remote Private Endpoint Connection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RemotePrivateEndpointConnectionArmResourceInner approveOrRejectPrivateEndpointConnection(
+ String resourceGroupName,
+ String name,
+ String privateEndpointConnectionName,
+ PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper);
+
+ /**
+ * Description for Approves or rejects a private endpoint connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @param privateEndpointWrapper Private Endpoint Connection Approval ARM resource.
+ * @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 remote Private Endpoint Connection ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RemotePrivateEndpointConnectionArmResourceInner approveOrRejectPrivateEndpointConnection(
+ String resourceGroupName,
+ String name,
+ String privateEndpointConnectionName,
+ PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper,
+ Context context);
+
+ /**
+ * Description for Deletes a private endpoint connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @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.LONG_RUNNING_OPERATION)
+ SyncPoller, Object> beginDeletePrivateEndpointConnection(
+ String resourceGroupName, String name, String privateEndpointConnectionName);
+
+ /**
+ * Description for Deletes a private endpoint connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Object> beginDeletePrivateEndpointConnection(
+ String resourceGroupName, String name, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Description for Deletes a private endpoint connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @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 deletePrivateEndpointConnection(String resourceGroupName, String name, String privateEndpointConnectionName);
+
+ /**
+ * Description for Deletes a private endpoint connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Object deletePrivateEndpointConnection(
+ String resourceGroupName, String name, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Description for Gets the private link resources.
+ *
+ * @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 wrapper for a collection of private link resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourcesWrapperInner getPrivateLinkResources(String resourceGroupName, String name);
+
+ /**
+ * Description for Gets the private link resources.
+ *
+ * @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 wrapper for a collection of private link resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getPrivateLinkResourcesWithResponse(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Reboot all machines in 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 reboot(String resourceGroupName, String name);
+
+ /**
+ * Description for Reboot all machines in 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 the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response rebootWithResponse(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Resume 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 App Service apps.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable resume(String resourceGroupName, String name);
+
+ /**
+ * Description for Resume 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 App Service apps.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable resume(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Get all App Service plans in 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 App Service plans.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAppServicePlans(String resourceGroupName, String name);
+
+ /**
+ * Description for Get all App Service plans in 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 App Service plans.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAppServicePlans(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Get all apps in 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 App Service apps.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWebApps(String resourceGroupName, String name);
+
+ /**
+ * Description for Get all apps in 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 propertiesToInclude Comma separated list of app properties to include.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWebApps(
+ String resourceGroupName, String name, String propertiesToInclude, Context context);
+
+ /**
+ * Description for Suspend 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 App Service apps.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable suspend(String resourceGroupName, String name);
+
+ /**
+ * Description for Suspend 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 App Service apps.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable suspend(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Get global usage metrics 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 collection of CSM usage quotas.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsages(String resourceGroupName, String name);
+
+ /**
+ * Description for Get global usage metrics 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 filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example:
+ * $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and
+ * endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
+ * @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 CSM usage quotas.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsages(String resourceGroupName, String name, String filter, Context context);
+
+ /**
+ * Description for Get all worker pools 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 collection of worker pools.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWorkerPools(String resourceGroupName, String name);
+
+ /**
+ * Description for Get all worker pools 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 collection of worker pools.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWorkerPools(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Get properties of a worker pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param workerPoolName Name of the worker pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkerPoolResourceInner getWorkerPool(String resourceGroupName, String name, String workerPoolName);
+
+ /**
+ * Description for Get properties of a worker pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param workerPoolName Name of the worker pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWorkerPoolWithResponse(
+ String resourceGroupName, String name, String workerPoolName, Context context);
+
+ /**
+ * Description for Create or update a worker pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param workerPoolName Name of the worker pool.
+ * @param workerPoolEnvelope Properties of the worker pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkerPoolResourceInner> beginCreateOrUpdateWorkerPool(
+ String resourceGroupName, String name, String workerPoolName, WorkerPoolResourceInner workerPoolEnvelope);
+
+ /**
+ * Description for Create or update a worker pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param workerPoolName Name of the worker pool.
+ * @param workerPoolEnvelope Properties of the worker pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkerPoolResourceInner> beginCreateOrUpdateWorkerPool(
+ String resourceGroupName,
+ String name,
+ String workerPoolName,
+ WorkerPoolResourceInner workerPoolEnvelope,
+ Context context);
+
+ /**
+ * Description for Create or update a worker pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param workerPoolName Name of the worker pool.
+ * @param workerPoolEnvelope Properties of the worker pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkerPoolResourceInner createOrUpdateWorkerPool(
+ String resourceGroupName, String name, String workerPoolName, WorkerPoolResourceInner workerPoolEnvelope);
+
+ /**
+ * Description for Create or update a worker pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param workerPoolName Name of the worker pool.
+ * @param workerPoolEnvelope Properties of the worker pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkerPoolResourceInner createOrUpdateWorkerPool(
+ String resourceGroupName,
+ String name,
+ String workerPoolName,
+ WorkerPoolResourceInner workerPoolEnvelope,
+ Context context);
+
+ /**
+ * Description for Create or update a worker pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param workerPoolName Name of the worker pool.
+ * @param workerPoolEnvelope Properties of the worker pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkerPoolResourceInner updateWorkerPool(
+ String resourceGroupName, String name, String workerPoolName, WorkerPoolResourceInner workerPoolEnvelope);
+
+ /**
+ * Description for Create or update a worker pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param workerPoolName Name of the worker pool.
+ * @param workerPoolEnvelope Properties of the worker pool.
+ * @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 worker pool of an App Service Environment ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWorkerPoolWithResponse(
+ String resourceGroupName,
+ String name,
+ String workerPoolName,
+ WorkerPoolResourceInner workerPoolEnvelope,
+ Context context);
+
+ /**
+ * Description for Get metric definitions for a specific instance of a worker pool 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 workerPoolName Name of the worker pool.
+ * @param instance Name of the instance in the worker pool.
+ * @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 metric definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWorkerPoolInstanceMetricDefinitions(
+ String resourceGroupName, String name, String workerPoolName, String instance);
+
+ /**
+ * Description for Get metric definitions for a specific instance of a worker pool 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 workerPoolName Name of the worker pool.
+ * @param instance Name of the instance in the worker pool.
+ * @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 metric definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWorkerPoolInstanceMetricDefinitions(
+ String resourceGroupName, String name, String workerPoolName, String instance, Context context);
+
+ /**
+ * Description for Get metric definitions for a worker pool 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 workerPoolName Name of the worker pool.
+ * @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 metric definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWebWorkerMetricDefinitions(
+ String resourceGroupName, String name, String workerPoolName);
+
+ /**
+ * Description for Get metric definitions for a worker pool 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 workerPoolName Name of the worker pool.
+ * @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 metric definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWebWorkerMetricDefinitions(
+ String resourceGroupName, String name, String workerPoolName, Context context);
+
+ /**
+ * Description for Get available SKUs for scaling a worker pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param workerPoolName Name of the worker pool.
+ * @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 SKU information.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWorkerPoolSkus(String resourceGroupName, String name, String workerPoolName);
+
+ /**
+ * Description for Get available SKUs for scaling a worker pool.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service Environment.
+ * @param workerPoolName Name of the worker pool.
+ * @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 SKU information.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWorkerPoolSkus(
+ String resourceGroupName, String name, String workerPoolName, Context context);
+
+ /**
+ * Description for Get usage metrics for a worker pool 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 workerPoolName Name of the worker pool.
+ * @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 usages.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWebWorkerUsages(String resourceGroupName, String name, String workerPoolName);
+
+ /**
+ * Description for Get usage metrics for a worker pool 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 workerPoolName Name of the worker pool.
+ * @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 usages.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWebWorkerUsages(
+ String resourceGroupName, String name, String workerPoolName, Context context);
+}
diff --git a/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServicePlansClient.java b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServicePlansClient.java
new file mode 100644
index 0000000000000..e0795c6bd8ae9
--- /dev/null
+++ b/sdk/appservice/azure-resourcemanager-appservice-generated/src/main/java/com/azure/resourcemanager/appservice/generated/fluent/AppServicePlansClient.java
@@ -0,0 +1,933 @@
+// 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.AppServicePlanInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.CapabilityInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.CsmUsageQuotaInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.HybridConnectionInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.HybridConnectionKeyInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.HybridConnectionLimitsInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.SiteInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.VnetGatewayInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.VnetInfoResourceInner;
+import com.azure.resourcemanager.appservice.generated.fluent.models.VnetRouteInner;
+import com.azure.resourcemanager.appservice.generated.models.AppServicePlanPatchResource;
+import java.util.List;
+
+/** An instance of this class provides access to all the operations defined in AppServicePlansClient. */
+public interface AppServicePlansClient {
+ /**
+ * Description for Get all App Service plans 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 plans.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Description for Get all App Service plans for a subscription.
+ *
+ * @param detailed Specify <code>true</code> to return all App Service plan properties. The default is
+ * <code>false</code>, which returns a subset of the properties. Retrieval of all properties may
+ * increase the API latency.
+ * @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 plans.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Boolean detailed, Context context);
+
+ /**
+ * Description for Get all App Service plans 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 plans.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Description for Get all App Service plans 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 plans.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Description for Get an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServicePlanInner getByResourceGroup(String resourceGroupName, String name);
+
+ /**
+ * Description for Get an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Creates or updates an App Service Plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param appServicePlan Details of the App Service plan.
+ * @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 plan.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppServicePlanInner> beginCreateOrUpdate(
+ String resourceGroupName, String name, AppServicePlanInner appServicePlan);
+
+ /**
+ * Description for Creates or updates an App Service Plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param appServicePlan Details of the App Service plan.
+ * @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 plan.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppServicePlanInner> beginCreateOrUpdate(
+ String resourceGroupName, String name, AppServicePlanInner appServicePlan, Context context);
+
+ /**
+ * Description for Creates or updates an App Service Plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param appServicePlan Details of the App Service plan.
+ * @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 plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServicePlanInner createOrUpdate(String resourceGroupName, String name, AppServicePlanInner appServicePlan);
+
+ /**
+ * Description for Creates or updates an App Service Plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param appServicePlan Details of the App Service plan.
+ * @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 plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServicePlanInner createOrUpdate(
+ String resourceGroupName, String name, AppServicePlanInner appServicePlan, Context context);
+
+ /**
+ * Description for Delete an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @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 plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Creates or updates an App Service Plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param appServicePlan Details of the App Service plan.
+ * @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 plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppServicePlanInner update(String resourceGroupName, String name, AppServicePlanPatchResource appServicePlan);
+
+ /**
+ * Description for Creates or updates an App Service Plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param appServicePlan Details of the App Service plan.
+ * @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 plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String name, AppServicePlanPatchResource appServicePlan, Context context);
+
+ /**
+ * Description for List all capabilities of an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @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 Capability.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ List listCapabilities(String resourceGroupName, String name);
+
+ /**
+ * Description for List all capabilities of an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @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 Capability.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response> listCapabilitiesWithResponse(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Retrieve a Hybrid Connection in use in an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param namespaceName Name of the Service Bus namespace.
+ * @param relayName Name of the Service Bus relay.
+ * @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 hybrid Connection contract.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HybridConnectionInner getHybridConnection(
+ String resourceGroupName, String name, String namespaceName, String relayName);
+
+ /**
+ * Description for Retrieve a Hybrid Connection in use in an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param namespaceName Name of the Service Bus namespace.
+ * @param relayName Name of the Service Bus relay.
+ * @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 hybrid Connection contract.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getHybridConnectionWithResponse(
+ String resourceGroupName, String name, String namespaceName, String relayName, Context context);
+
+ /**
+ * Description for Delete a Hybrid Connection in use in an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param namespaceName Name of the Service Bus namespace.
+ * @param relayName Name of the Service Bus relay.
+ * @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 deleteHybridConnection(String resourceGroupName, String name, String namespaceName, String relayName);
+
+ /**
+ * Description for Delete a Hybrid Connection in use in an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param namespaceName Name of the Service Bus namespace.
+ * @param relayName Name of the Service Bus relay.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteHybridConnectionWithResponse(
+ String resourceGroupName, String name, String namespaceName, String relayName, Context context);
+
+ /**
+ * Description for Get the send key name and value of a Hybrid Connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param namespaceName The name of the Service Bus namespace.
+ * @param relayName The name of the Service Bus relay.
+ * @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 hybrid Connection key contract.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HybridConnectionKeyInner listHybridConnectionKeys(
+ String resourceGroupName, String name, String namespaceName, String relayName);
+
+ /**
+ * Description for Get the send key name and value of a Hybrid Connection.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param namespaceName The name of the Service Bus namespace.
+ * @param relayName The name of the Service Bus relay.
+ * @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 hybrid Connection key contract.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listHybridConnectionKeysWithResponse(
+ String resourceGroupName, String name, String namespaceName, String relayName, Context context);
+
+ /**
+ * Description for Get all apps that use a Hybrid Connection in an App Service Plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param namespaceName Name of the Hybrid Connection namespace.
+ * @param relayName Name of the Hybrid Connection relay.
+ * @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 resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWebAppsByHybridConnection(
+ String resourceGroupName, String name, String namespaceName, String relayName);
+
+ /**
+ * Description for Get all apps that use a Hybrid Connection in an App Service Plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param namespaceName Name of the Hybrid Connection namespace.
+ * @param relayName Name of the Hybrid Connection relay.
+ * @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 resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWebAppsByHybridConnection(
+ String resourceGroupName, String name, String namespaceName, String relayName, Context context);
+
+ /**
+ * Description for Get the maximum number of Hybrid Connections allowed in an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @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 hybrid Connection limits contract.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HybridConnectionLimitsInner getHybridConnectionPlanLimit(String resourceGroupName, String name);
+
+ /**
+ * Description for Get the maximum number of Hybrid Connections allowed in an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @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 hybrid Connection limits contract.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getHybridConnectionPlanLimitWithResponse(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Retrieve all Hybrid Connections in use in an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @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 hostname bindings.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listHybridConnections(String resourceGroupName, String name);
+
+ /**
+ * Description for Retrieve all Hybrid Connections in use in an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @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 hostname bindings.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listHybridConnections(String resourceGroupName, String name, Context context);
+
+ /**
+ * Description for Restart all apps in an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @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 restartWebApps(String resourceGroupName, String name);
+
+ /**
+ * Description for Restart all apps in an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param softRestart Specify <code>true</code> to perform a soft restart, applies the configuration
+ * settings and restarts the apps if necessary. The default is <code>false</code>, which always
+ * restarts and reprovisions the apps.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response restartWebAppsWithResponse(
+ String resourceGroupName, String name, Boolean softRestart, Context context);
+
+ /**
+ * Description for Get all apps associated with an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWebApps(String resourceGroupName, String name);
+
+ /**
+ * Description for Get all apps associated with an App Service plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of the App Service plan.
+ * @param skipToken Skip to a web app in the list of webapps associated with app service plan. If specified, the
+ * resulting list will contain web apps starting from (including) the skipToken. Otherwise, the resulting list
+ * contains web apps from the start of the list.
+ * @param filter Supported filter: $filter=state eq running. Returns only web apps that are currently running.
+ * @param top List page size. If specified, results are paged.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listWebApps(
+ String resourceGroupName, String name, String skipToken, String filter, String top, Context context);
+
+ /**
+ * Description for Gets all selectable SKUs for a given App Service Plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of App Service Plan.
+ * @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 getServerFarmSkus(String resourceGroupName, String name);
+
+ /**
+ * Description for Gets all selectable SKUs for a given App Service Plan.
+ *
+ * @param resourceGroupName Name of the resource group to which the resource belongs.
+ * @param name Name of App Service Plan.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response