diff --git a/sdk/resourcemanager/api-specs.json b/sdk/resourcemanager/api-specs.json
index 1b840280627c..9be402e55519 100644
--- a/sdk/resourcemanager/api-specs.json
+++ b/sdk/resourcemanager/api-specs.json
@@ -3,7 +3,7 @@
"dir": "azure-resourcemanager-appplatform",
"source": "specification/appplatform/resource-manager/readme.md",
"package": "com.azure.resourcemanager.appplatform",
- "args": "--tag=package-2022-04 --remove-inner=TestKeys,ResourceSku,ResourceUploadDefinition,CustomDomainValidateResult,NameAvailability"
+ "args": "--tag=package-2022-12 --remove-inner=TestKeys,ResourceSku,ResourceUploadDefinition,CustomDomainValidateResult,NameAvailability"
},
"appservice": {
"dir": "azure-resourcemanager-appservice",
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-appplatform/CHANGELOG.md
index daf071347f5f..2ae332d75f81 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/CHANGELOG.md
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/CHANGELOG.md
@@ -10,6 +10,10 @@
### Other Changes
+#### Dependency Updates
+
+- Updated `api-version` to `2022-12-01`.
+
## 2.27.0 (2023-05-25)
### Other Changes
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml b/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml
index 42d643bf6b1e..d596c30dee49 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml
@@ -47,7 +47,9 @@
--add-exports com.azure.resourcemanager.resources/com.azure.resourcemanager.resources.fluentcore.model.implementation=ALL-UNNAMED
--add-opens com.azure.resourcemanager.appplatform/com.azure.resourcemanager.appplatform=ALL-UNNAMED
+ --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
+ true
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/ApiPortalCustomDomainsClient.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/ApiPortalCustomDomainsClient.java
new file mode 100644
index 000000000000..b6f821cb8857
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/ApiPortalCustomDomainsClient.java
@@ -0,0 +1,418 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+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.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appplatform.fluent.models.ApiPortalCustomDomainResourceInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ApiPortalCustomDomainsClient. */
+public interface ApiPortalCustomDomainsClient {
+ /**
+ * Get the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @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 the API portal custom domain along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName);
+
+ /**
+ * Get the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @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 the API portal custom domain on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName);
+
+ /**
+ * Get the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @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 the API portal custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiPortalCustomDomainResourceInner get(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName);
+
+ /**
+ * Get the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @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 the API portal custom domain along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName, Context context);
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update 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 custom domain of the API portal along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource);
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update 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 the {@link PollerFlux} for polling of custom domain of the API portal.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, ApiPortalCustomDomainResourceInner>
+ beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource);
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update 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 the {@link SyncPoller} for polling of custom domain of the API portal.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ApiPortalCustomDomainResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource);
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @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 the {@link SyncPoller} for polling of custom domain of the API portal.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ApiPortalCustomDomainResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource,
+ Context context);
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update 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 custom domain of the API portal on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource);
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update 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 custom domain of the API portal.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiPortalCustomDomainResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource);
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @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 custom domain of the API portal.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiPortalCustomDomainResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource,
+ Context context);
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName);
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @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 the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName);
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName);
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName, Context context);
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String serviceName, String apiPortalName, String domainName);
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serviceName, String apiPortalName, String domainName);
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serviceName, String apiPortalName, String domainName, Context context);
+
+ /**
+ * Handle requests to list all API portal custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 object that includes an array of API portal custom domain resources and a possible link for next set as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String apiPortalName);
+
+ /**
+ * Handle requests to list all API portal custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 object that includes an array of API portal custom domain resources and a possible link for next set as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String serviceName, String apiPortalName);
+
+ /**
+ * Handle requests to list all API portal custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 object that includes an array of API portal custom domain resources and a possible link for next set as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context);
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/ApiPortalsClient.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/ApiPortalsClient.java
new file mode 100644
index 000000000000..660cfb5da137
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/ApiPortalsClient.java
@@ -0,0 +1,452 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+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.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appplatform.fluent.models.ApiPortalResourceInner;
+import com.azure.resourcemanager.appplatform.models.CustomDomainValidatePayload;
+import com.azure.resourcemanager.appplatform.models.CustomDomainValidateResult;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ApiPortalsClient. */
+public interface ApiPortalsClient {
+ /**
+ * Get the API portal and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 the API portal and its properties along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName);
+
+ /**
+ * Get the API portal and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 the API portal and its properties on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serviceName, String apiPortalName);
+
+ /**
+ * Get the API portal and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 the API portal and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiPortalResourceInner get(String resourceGroupName, String serviceName, String apiPortalName);
+
+ /**
+ * Get the API portal and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 the API portal and its properties along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context);
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update 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 aPI portal resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, ApiPortalResourceInner apiPortalResource);
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update 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 the {@link PollerFlux} for polling of aPI portal resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, ApiPortalResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, ApiPortalResourceInner apiPortalResource);
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update 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 the {@link SyncPoller} for polling of aPI portal resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ApiPortalResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String serviceName, String apiPortalName, ApiPortalResourceInner apiPortalResource);
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @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 the {@link SyncPoller} for polling of aPI portal resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ApiPortalResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ ApiPortalResourceInner apiPortalResource,
+ Context context);
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update 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 aPI portal resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, ApiPortalResourceInner apiPortalResource);
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update 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 aPI portal resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiPortalResourceInner createOrUpdate(
+ String resourceGroupName, String serviceName, String apiPortalName, ApiPortalResourceInner apiPortalResource);
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @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 aPI portal resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiPortalResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ ApiPortalResourceInner apiPortalResource,
+ Context context);
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName);
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String serviceName, String apiPortalName);
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String serviceName, String apiPortalName);
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context);
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String serviceName, String apiPortalName);
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serviceName, String apiPortalName);
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serviceName, String apiPortalName, Context context);
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 object that includes an array of API portal resources and a possible link for next set as paginated
+ * response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String resourceGroupName, String serviceName);
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 object that includes an array of API portal resources and a possible link for next set as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String serviceName);
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 object that includes an array of API portal resources and a possible link for next set as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String serviceName, Context context);
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param validatePayload Custom domain payload to be validated.
+ * @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 validation result for custom domain along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> validateDomainWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ CustomDomainValidatePayload validatePayload);
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param validatePayload Custom domain payload to be validated.
+ * @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 validation result for custom domain on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono validateDomainAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ CustomDomainValidatePayload validatePayload);
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param validatePayload Custom domain payload to be validated.
+ * @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 validation result for custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomDomainValidateResult validateDomain(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ CustomDomainValidatePayload validatePayload);
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param validatePayload Custom domain payload to be validated.
+ * @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 validation result for custom domain along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response validateDomainWithResponse(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ CustomDomainValidatePayload validatePayload,
+ Context context);
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/AppPlatformManagementClient.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/AppPlatformManagementClient.java
index 59f307413137..643dfd2714c3 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/AppPlatformManagementClient.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/AppPlatformManagementClient.java
@@ -122,6 +122,13 @@ public interface AppPlatformManagementClient {
*/
BindingsClient getBindings();
+ /**
+ * Gets the StoragesClient object to access its operations.
+ *
+ * @return the StoragesClient object.
+ */
+ StoragesClient getStorages();
+
/**
* Gets the CertificatesClient object to access its operations.
*
@@ -163,4 +170,39 @@ public interface AppPlatformManagementClient {
* @return the SkusClient object.
*/
SkusClient getSkus();
+
+ /**
+ * Gets the GatewaysClient object to access its operations.
+ *
+ * @return the GatewaysClient object.
+ */
+ GatewaysClient getGateways();
+
+ /**
+ * Gets the GatewayRouteConfigsClient object to access its operations.
+ *
+ * @return the GatewayRouteConfigsClient object.
+ */
+ GatewayRouteConfigsClient getGatewayRouteConfigs();
+
+ /**
+ * Gets the GatewayCustomDomainsClient object to access its operations.
+ *
+ * @return the GatewayCustomDomainsClient object.
+ */
+ GatewayCustomDomainsClient getGatewayCustomDomains();
+
+ /**
+ * Gets the ApiPortalsClient object to access its operations.
+ *
+ * @return the ApiPortalsClient object.
+ */
+ ApiPortalsClient getApiPortals();
+
+ /**
+ * Gets the ApiPortalCustomDomainsClient object to access its operations.
+ *
+ * @return the ApiPortalCustomDomainsClient object.
+ */
+ ApiPortalCustomDomainsClient getApiPortalCustomDomains();
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/BuildServiceBuildersClient.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/BuildServiceBuildersClient.java
index b6e03c7fc547..cefc743a5b68 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/BuildServiceBuildersClient.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/BuildServiceBuildersClient.java
@@ -14,6 +14,7 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appplatform.fluent.models.BuilderResourceInner;
+import com.azure.resourcemanager.appplatform.fluent.models.DeploymentListInner;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -412,4 +413,73 @@ void delete(
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
String resourceGroupName, String serviceName, String buildServiceName, Context context);
+
+ /**
+ * List deployments that are using the builder.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param buildServiceName The name of the build service resource.
+ * @param builderName The name of the builder resource.
+ * @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 a list of deployments resource ids along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> listDeploymentsWithResponseAsync(
+ String resourceGroupName, String serviceName, String buildServiceName, String builderName);
+
+ /**
+ * List deployments that are using the builder.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param buildServiceName The name of the build service resource.
+ * @param builderName The name of the builder resource.
+ * @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 a list of deployments resource ids on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono listDeploymentsAsync(
+ String resourceGroupName, String serviceName, String buildServiceName, String builderName);
+
+ /**
+ * List deployments that are using the builder.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param buildServiceName The name of the build service resource.
+ * @param builderName The name of the builder resource.
+ * @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 a list of deployments resource ids.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentListInner listDeployments(
+ String resourceGroupName, String serviceName, String buildServiceName, String builderName);
+
+ /**
+ * List deployments that are using the builder.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param buildServiceName The name of the build service resource.
+ * @param builderName The name of the builder resource.
+ * @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 a list of deployments resource ids along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listDeploymentsWithResponse(
+ String resourceGroupName, String serviceName, String buildServiceName, String builderName, Context context);
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/DeploymentsClient.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/DeploymentsClient.java
index ad77560bf647..521c2a11784a 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/DeploymentsClient.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/DeploymentsClient.java
@@ -15,7 +15,9 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appplatform.fluent.models.DeploymentResourceInner;
import com.azure.resourcemanager.appplatform.fluent.models.LogFileUrlResponseInner;
+import com.azure.resourcemanager.appplatform.fluent.models.RemoteDebuggingInner;
import com.azure.resourcemanager.appplatform.models.DiagnosticParameters;
+import com.azure.resourcemanager.appplatform.models.RemoteDebuggingPayload;
import java.nio.ByteBuffer;
import java.util.List;
import reactor.core.publisher.Flux;
@@ -1005,6 +1007,388 @@ SyncPoller, Void> beginRestart(
@ServiceMethod(returns = ReturnType.SINGLE)
void restart(String resourceGroupName, String serviceName, String appName, String deploymentName, Context context);
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @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 remote debugging config along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> enableRemoteDebuggingWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload);
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @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 the {@link PollerFlux} for polling of remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, RemoteDebuggingInner> beginEnableRemoteDebuggingAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload);
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @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 the {@link SyncPoller} for polling of remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RemoteDebuggingInner> beginEnableRemoteDebugging(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload);
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @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 the {@link SyncPoller} for polling of remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RemoteDebuggingInner> beginEnableRemoteDebugging(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload,
+ Context context);
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @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 remote debugging config on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono enableRemoteDebuggingAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload);
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 remote debugging config on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono enableRemoteDebuggingAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName);
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @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 remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RemoteDebuggingInner enableRemoteDebugging(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload);
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RemoteDebuggingInner enableRemoteDebugging(
+ String resourceGroupName, String serviceName, String appName, String deploymentName);
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @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 remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RemoteDebuggingInner enableRemoteDebugging(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload,
+ Context context);
+
+ /**
+ * Disable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 remote debugging config along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> disableRemoteDebuggingWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName);
+
+ /**
+ * Disable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 the {@link PollerFlux} for polling of remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, RemoteDebuggingInner> beginDisableRemoteDebuggingAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName);
+
+ /**
+ * Disable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 the {@link SyncPoller} for polling of remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RemoteDebuggingInner> beginDisableRemoteDebugging(
+ String resourceGroupName, String serviceName, String appName, String deploymentName);
+
+ /**
+ * Disable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 the {@link SyncPoller} for polling of remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RemoteDebuggingInner> beginDisableRemoteDebugging(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context);
+
+ /**
+ * Disable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 remote debugging config on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono disableRemoteDebuggingAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName);
+
+ /**
+ * Disable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RemoteDebuggingInner disableRemoteDebugging(
+ String resourceGroupName, String serviceName, String appName, String deploymentName);
+
+ /**
+ * Disable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RemoteDebuggingInner disableRemoteDebugging(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context);
+
+ /**
+ * Get remote debugging config.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 remote debugging config along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getRemoteDebuggingConfigWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName);
+
+ /**
+ * Get remote debugging config.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 remote debugging config on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getRemoteDebuggingConfigAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName);
+
+ /**
+ * Get remote debugging config.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RemoteDebuggingInner getRemoteDebuggingConfig(
+ String resourceGroupName, String serviceName, String appName, String deploymentName);
+
+ /**
+ * Get remote debugging config.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @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 remote debugging config along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getRemoteDebuggingConfigWithResponse(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context);
+
/**
* Get deployment log file URL.
*
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/GatewayCustomDomainsClient.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/GatewayCustomDomainsClient.java
new file mode 100644
index 000000000000..bb455e3e96e4
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/GatewayCustomDomainsClient.java
@@ -0,0 +1,419 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+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.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appplatform.fluent.models.GatewayCustomDomainResourceInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in GatewayCustomDomainsClient. */
+public interface GatewayCustomDomainsClient {
+ /**
+ * Get the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @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 the Spring Cloud Gateway custom domain along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String gatewayName, String domainName);
+
+ /**
+ * Get the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @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 the Spring Cloud Gateway custom domain on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(
+ String resourceGroupName, String serviceName, String gatewayName, String domainName);
+
+ /**
+ * Get the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @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 the Spring Cloud Gateway custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GatewayCustomDomainResourceInner get(
+ String resourceGroupName, String serviceName, String gatewayName, String domainName);
+
+ /**
+ * Get the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @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 the Spring Cloud Gateway custom domain along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serviceName, String gatewayName, String domainName, Context context);
+
+ /**
+ * Create or update the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update 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 custom domain of the Spring Cloud Gateway along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String domainName,
+ GatewayCustomDomainResourceInner gatewayCustomDomainResource);
+
+ /**
+ * Create or update the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update 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 the {@link PollerFlux} for polling of custom domain of the Spring Cloud Gateway.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, GatewayCustomDomainResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String domainName,
+ GatewayCustomDomainResourceInner gatewayCustomDomainResource);
+
+ /**
+ * Create or update the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update 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 the {@link SyncPoller} for polling of custom domain of the Spring Cloud Gateway.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GatewayCustomDomainResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String domainName,
+ GatewayCustomDomainResourceInner gatewayCustomDomainResource);
+
+ /**
+ * Create or update the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update operation.
+ * @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 the {@link SyncPoller} for polling of custom domain of the Spring Cloud Gateway.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GatewayCustomDomainResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String domainName,
+ GatewayCustomDomainResourceInner gatewayCustomDomainResource,
+ Context context);
+
+ /**
+ * Create or update the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update 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 custom domain of the Spring Cloud Gateway on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String domainName,
+ GatewayCustomDomainResourceInner gatewayCustomDomainResource);
+
+ /**
+ * Create or update the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update 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 custom domain of the Spring Cloud Gateway.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GatewayCustomDomainResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String domainName,
+ GatewayCustomDomainResourceInner gatewayCustomDomainResource);
+
+ /**
+ * Create or update the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update operation.
+ * @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 custom domain of the Spring Cloud Gateway.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GatewayCustomDomainResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String domainName,
+ GatewayCustomDomainResourceInner gatewayCustomDomainResource,
+ Context context);
+
+ /**
+ * Delete the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String gatewayName, String domainName);
+
+ /**
+ * Delete the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @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 the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String serviceName, String gatewayName, String domainName);
+
+ /**
+ * Delete the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String gatewayName, String domainName);
+
+ /**
+ * Delete the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String gatewayName, String domainName, Context context);
+
+ /**
+ * Delete the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String serviceName, String gatewayName, String domainName);
+
+ /**
+ * Delete the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serviceName, String gatewayName, String domainName);
+
+ /**
+ * Delete the Spring Cloud Gateway custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param domainName The name of the Spring Cloud Gateway custom domain.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serviceName, String gatewayName, String domainName, Context context);
+
+ /**
+ * Handle requests to list all Spring Cloud Gateway custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 object that includes an array of Spring Cloud Gateway custom domain resources and a possible link for
+ * next set as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Handle requests to list all Spring Cloud Gateway custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 object that includes an array of Spring Cloud Gateway custom domain resources and a possible link for
+ * next set as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Handle requests to list all Spring Cloud Gateway custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 object that includes an array of Spring Cloud Gateway custom domain resources and a possible link for
+ * next set as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String serviceName, String gatewayName, Context context);
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/GatewayRouteConfigsClient.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/GatewayRouteConfigsClient.java
new file mode 100644
index 000000000000..53c4dcd78303
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/GatewayRouteConfigsClient.java
@@ -0,0 +1,420 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+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.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appplatform.fluent.models.GatewayRouteConfigResourceInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in GatewayRouteConfigsClient. */
+public interface GatewayRouteConfigsClient {
+ /**
+ * Get the Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @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 the Spring Cloud Gateway route configs along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String gatewayName, String routeConfigName);
+
+ /**
+ * Get the Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @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 the Spring Cloud Gateway route configs on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(
+ String resourceGroupName, String serviceName, String gatewayName, String routeConfigName);
+
+ /**
+ * Get the Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @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 the Spring Cloud Gateway route configs.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GatewayRouteConfigResourceInner get(
+ String resourceGroupName, String serviceName, String gatewayName, String routeConfigName);
+
+ /**
+ * Get the Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @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 the Spring Cloud Gateway route configs along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serviceName, String gatewayName, String routeConfigName, Context context);
+
+ /**
+ * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update 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 spring Cloud Gateway route config resource along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String routeConfigName,
+ GatewayRouteConfigResourceInner gatewayRouteConfigResource);
+
+ /**
+ * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update 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 the {@link PollerFlux} for polling of spring Cloud Gateway route config resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, GatewayRouteConfigResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String routeConfigName,
+ GatewayRouteConfigResourceInner gatewayRouteConfigResource);
+
+ /**
+ * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update 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 the {@link SyncPoller} for polling of spring Cloud Gateway route config resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GatewayRouteConfigResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String routeConfigName,
+ GatewayRouteConfigResourceInner gatewayRouteConfigResource);
+
+ /**
+ * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update operation.
+ * @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 the {@link SyncPoller} for polling of spring Cloud Gateway route config resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GatewayRouteConfigResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String routeConfigName,
+ GatewayRouteConfigResourceInner gatewayRouteConfigResource,
+ Context context);
+
+ /**
+ * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update 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 spring Cloud Gateway route config resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String routeConfigName,
+ GatewayRouteConfigResourceInner gatewayRouteConfigResource);
+
+ /**
+ * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update 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 spring Cloud Gateway route config resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GatewayRouteConfigResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String routeConfigName,
+ GatewayRouteConfigResourceInner gatewayRouteConfigResource);
+
+ /**
+ * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update operation.
+ * @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 spring Cloud Gateway route config resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GatewayRouteConfigResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ String routeConfigName,
+ GatewayRouteConfigResourceInner gatewayRouteConfigResource,
+ Context context);
+
+ /**
+ * Delete the Spring Cloud Gateway route config.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String gatewayName, String routeConfigName);
+
+ /**
+ * Delete the Spring Cloud Gateway route config.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @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 the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String serviceName, String gatewayName, String routeConfigName);
+
+ /**
+ * Delete the Spring Cloud Gateway route config.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String gatewayName, String routeConfigName);
+
+ /**
+ * Delete the Spring Cloud Gateway route config.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String gatewayName, String routeConfigName, Context context);
+
+ /**
+ * Delete the Spring Cloud Gateway route config.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String serviceName, String gatewayName, String routeConfigName);
+
+ /**
+ * Delete the Spring Cloud Gateway route config.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serviceName, String gatewayName, String routeConfigName);
+
+ /**
+ * Delete the Spring Cloud Gateway route config.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param routeConfigName The name of the Spring Cloud Gateway route config.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName, String serviceName, String gatewayName, String routeConfigName, Context context);
+
+ /**
+ * Handle requests to list all Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 object that includes an array of Spring Cloud Gateway route config resources and a possible link for next
+ * set as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Handle requests to list all Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 object that includes an array of Spring Cloud Gateway route config resources and a possible link for next
+ * set as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Handle requests to list all Spring Cloud Gateway route configs.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 object that includes an array of Spring Cloud Gateway route config resources and a possible link for next
+ * set as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String serviceName, String gatewayName, Context context);
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/GatewaysClient.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/GatewaysClient.java
new file mode 100644
index 000000000000..b9ef262144b7
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/GatewaysClient.java
@@ -0,0 +1,444 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+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.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appplatform.fluent.models.GatewayResourceInner;
+import com.azure.resourcemanager.appplatform.models.CustomDomainValidatePayload;
+import com.azure.resourcemanager.appplatform.models.CustomDomainValidateResult;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in GatewaysClient. */
+public interface GatewaysClient {
+ /**
+ * Get the Spring Cloud Gateway and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 the Spring Cloud Gateway and its properties along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Get the Spring Cloud Gateway and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 the Spring Cloud Gateway and its properties on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Get the Spring Cloud Gateway and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 the Spring Cloud Gateway and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GatewayResourceInner get(String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Get the Spring Cloud Gateway and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 the Spring Cloud Gateway and its properties along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serviceName, String gatewayName, Context context);
+
+ /**
+ * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param gatewayResource The gateway for the create or update 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 spring Cloud Gateway resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String serviceName, String gatewayName, GatewayResourceInner gatewayResource);
+
+ /**
+ * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param gatewayResource The gateway for the create or update 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 the {@link PollerFlux} for polling of spring Cloud Gateway resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, GatewayResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String serviceName, String gatewayName, GatewayResourceInner gatewayResource);
+
+ /**
+ * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param gatewayResource The gateway for the create or update 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 the {@link SyncPoller} for polling of spring Cloud Gateway resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GatewayResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String serviceName, String gatewayName, GatewayResourceInner gatewayResource);
+
+ /**
+ * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param gatewayResource The gateway for the create or update operation.
+ * @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 the {@link SyncPoller} for polling of spring Cloud Gateway resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GatewayResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ GatewayResourceInner gatewayResource,
+ Context context);
+
+ /**
+ * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param gatewayResource The gateway for the create or update 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 spring Cloud Gateway resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(
+ String resourceGroupName, String serviceName, String gatewayName, GatewayResourceInner gatewayResource);
+
+ /**
+ * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param gatewayResource The gateway for the create or update 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 spring Cloud Gateway resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GatewayResourceInner createOrUpdate(
+ String resourceGroupName, String serviceName, String gatewayName, GatewayResourceInner gatewayResource);
+
+ /**
+ * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param gatewayResource The gateway for the create or update operation.
+ * @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 spring Cloud Gateway resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GatewayResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ GatewayResourceInner gatewayResource,
+ Context context);
+
+ /**
+ * Disable the default Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Disable the default Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Disable the default Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Disable the default Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String gatewayName, Context context);
+
+ /**
+ * Disable the default Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Disable the default Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serviceName, String gatewayName);
+
+ /**
+ * Disable the default Spring Cloud Gateway.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serviceName, String gatewayName, Context context);
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 object that includes an array of gateway resources and a possible link for next set as paginated response
+ * with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String resourceGroupName, String serviceName);
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 object that includes an array of gateway resources and a possible link for next set as paginated response
+ * with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String serviceName);
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 object that includes an array of gateway resources and a possible link for next set as paginated response
+ * with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String serviceName, Context context);
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param validatePayload Custom domain payload to be validated.
+ * @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 validation result for custom domain along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> validateDomainWithResponseAsync(
+ String resourceGroupName, String serviceName, String gatewayName, CustomDomainValidatePayload validatePayload);
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param validatePayload Custom domain payload to be validated.
+ * @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 validation result for custom domain on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono validateDomainAsync(
+ String resourceGroupName, String serviceName, String gatewayName, CustomDomainValidatePayload validatePayload);
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param validatePayload Custom domain payload to be validated.
+ * @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 validation result for custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomDomainValidateResult validateDomain(
+ String resourceGroupName, String serviceName, String gatewayName, CustomDomainValidatePayload validatePayload);
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param gatewayName The name of Spring Cloud Gateway.
+ * @param validatePayload Custom domain payload to be validated.
+ * @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 validation result for custom domain along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response validateDomainWithResponse(
+ String resourceGroupName,
+ String serviceName,
+ String gatewayName,
+ CustomDomainValidatePayload validatePayload,
+ Context context);
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/ServicesClient.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/ServicesClient.java
index 23372b902230..664a58e97213 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/ServicesClient.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/ServicesClient.java
@@ -650,6 +650,202 @@ Response regenerateTestKeyWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response enableTestEndpointWithResponse(String resourceGroupName, String serviceName, Context context);
+ /**
+ * Stop a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> stopWithResponseAsync(String resourceGroupName, String serviceName);
+
+ /**
+ * Stop a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginStopAsync(String resourceGroupName, String serviceName);
+
+ /**
+ * Stop a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStop(String resourceGroupName, String serviceName);
+
+ /**
+ * Stop a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStop(String resourceGroupName, String serviceName, Context context);
+
+ /**
+ * Stop a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono stopAsync(String resourceGroupName, String serviceName);
+
+ /**
+ * Stop a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void stop(String resourceGroupName, String serviceName);
+
+ /**
+ * Stop a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void stop(String resourceGroupName, String serviceName, Context context);
+
+ /**
+ * Start a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> startWithResponseAsync(String resourceGroupName, String serviceName);
+
+ /**
+ * Start a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginStartAsync(String resourceGroupName, String serviceName);
+
+ /**
+ * Start a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStart(String resourceGroupName, String serviceName);
+
+ /**
+ * Start a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStart(String resourceGroupName, String serviceName, Context context);
+
+ /**
+ * Start a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono startAsync(String resourceGroupName, String serviceName);
+
+ /**
+ * Start a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(String resourceGroupName, String serviceName);
+
+ /**
+ * Start a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(String resourceGroupName, String serviceName, Context context);
+
/**
* Checks that the resource name is valid and is not already in use.
*
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/StoragesClient.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/StoragesClient.java
new file mode 100644
index 000000000000..523b34a4232b
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/StoragesClient.java
@@ -0,0 +1,368 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+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.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appplatform.fluent.models.StorageResourceInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in StoragesClient. */
+public interface StoragesClient {
+ /**
+ * Get the storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @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 the storage resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String storageName);
+
+ /**
+ * Get the storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @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 the storage resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serviceName, String storageName);
+
+ /**
+ * Get the storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @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 the storage resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageResourceInner get(String resourceGroupName, String serviceName, String storageName);
+
+ /**
+ * Get the storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @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 the storage resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serviceName, String storageName, Context context);
+
+ /**
+ * Create or update storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @param storageResource Parameters for the create or update 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 storage resource payload along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String serviceName, String storageName, StorageResourceInner storageResource);
+
+ /**
+ * Create or update storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @param storageResource Parameters for the create or update 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 the {@link PollerFlux} for polling of storage resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, StorageResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String serviceName, String storageName, StorageResourceInner storageResource);
+
+ /**
+ * Create or update storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @param storageResource Parameters for the create or update 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 the {@link SyncPoller} for polling of storage resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, StorageResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String serviceName, String storageName, StorageResourceInner storageResource);
+
+ /**
+ * Create or update storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @param storageResource Parameters for the create or update operation.
+ * @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 the {@link SyncPoller} for polling of storage resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, StorageResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String storageName,
+ StorageResourceInner storageResource,
+ Context context);
+
+ /**
+ * Create or update storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @param storageResource Parameters for the create or update 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 storage resource payload on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(
+ String resourceGroupName, String serviceName, String storageName, StorageResourceInner storageResource);
+
+ /**
+ * Create or update storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @param storageResource Parameters for the create or update 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 storage resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageResourceInner createOrUpdate(
+ String resourceGroupName, String serviceName, String storageName, StorageResourceInner storageResource);
+
+ /**
+ * Create or update storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @param storageResource Parameters for the create or update operation.
+ * @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 storage resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String storageName,
+ StorageResourceInner storageResource,
+ Context context);
+
+ /**
+ * Delete the storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String storageName);
+
+ /**
+ * Delete the storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @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 the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String serviceName, String storageName);
+
+ /**
+ * Delete the storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String serviceName, String storageName);
+
+ /**
+ * Delete the storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String storageName, Context context);
+
+ /**
+ * Delete the storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String serviceName, String storageName);
+
+ /**
+ * Delete the storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serviceName, String storageName);
+
+ /**
+ * Delete the storage resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param storageName The name of the storage resource.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serviceName, String storageName, Context context);
+
+ /**
+ * List all the storages of one Azure Spring Apps resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 collection compose of storage resources list and a possible link for next page as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String resourceGroupName, String serviceName);
+
+ /**
+ * List all the storages of one Azure Spring Apps resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 collection compose of storage resources list and a possible link for next page as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String serviceName);
+
+ /**
+ * List all the storages of one Azure Spring Apps resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @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 collection compose of storage resources list and a possible link for next page as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String serviceName, Context context);
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/ApiPortalCustomDomainResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/ApiPortalCustomDomainResourceInner.java
new file mode 100644
index 000000000000..0bfe5caae838
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/ApiPortalCustomDomainResourceInner.java
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appplatform.models.ApiPortalCustomDomainProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Custom domain of the API portal. */
+@Fluent
+public final class ApiPortalCustomDomainResourceInner extends ProxyResource {
+ /*
+ * The properties of custom domain for API portal
+ */
+ @JsonProperty(value = "properties")
+ private ApiPortalCustomDomainProperties properties;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: The properties of custom domain for API portal.
+ *
+ * @return the properties value.
+ */
+ public ApiPortalCustomDomainProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The properties of custom domain for API portal.
+ *
+ * @param properties the properties value to set.
+ * @return the ApiPortalCustomDomainResourceInner object itself.
+ */
+ public ApiPortalCustomDomainResourceInner withProperties(ApiPortalCustomDomainProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/ApiPortalResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/ApiPortalResourceInner.java
new file mode 100644
index 000000000000..1d5b26e8b3a4
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/ApiPortalResourceInner.java
@@ -0,0 +1,97 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appplatform.models.ApiPortalProperties;
+import com.azure.resourcemanager.appplatform.models.Sku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** API portal resource. */
+@Fluent
+public final class ApiPortalResourceInner extends ProxyResource {
+ /*
+ * API portal properties payload
+ */
+ @JsonProperty(value = "properties")
+ private ApiPortalProperties properties;
+
+ /*
+ * Sku of the API portal resource
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: API portal properties payload.
+ *
+ * @return the properties value.
+ */
+ public ApiPortalProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: API portal properties payload.
+ *
+ * @param properties the properties value to set.
+ * @return the ApiPortalResourceInner object itself.
+ */
+ public ApiPortalResourceInner withProperties(ApiPortalProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the sku property: Sku of the API portal resource.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Sku of the API portal resource.
+ *
+ * @param sku the sku value to set.
+ * @return the ApiPortalResourceInner object itself.
+ */
+ public ApiPortalResourceInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ if (sku() != null) {
+ sku().validate();
+ }
+ }
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/DeploymentListInner.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/DeploymentListInner.java
new file mode 100644
index 000000000000..a4490e6c0941
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/DeploymentListInner.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A list of deployments resource ids. */
+@Fluent
+public final class DeploymentListInner {
+ /*
+ * A list of deployment resource ids.
+ */
+ @JsonProperty(value = "deployments")
+ private List deployments;
+
+ /**
+ * Get the deployments property: A list of deployment resource ids.
+ *
+ * @return the deployments value.
+ */
+ public List deployments() {
+ return this.deployments;
+ }
+
+ /**
+ * Set the deployments property: A list of deployment resource ids.
+ *
+ * @param deployments the deployments value to set.
+ * @return the DeploymentListInner object itself.
+ */
+ public DeploymentListInner withDeployments(List deployments) {
+ this.deployments = deployments;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/GatewayCustomDomainResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/GatewayCustomDomainResourceInner.java
new file mode 100644
index 000000000000..b3b5bdfcadcc
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/GatewayCustomDomainResourceInner.java
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appplatform.models.GatewayCustomDomainProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Custom domain of the Spring Cloud Gateway. */
+@Fluent
+public final class GatewayCustomDomainResourceInner extends ProxyResource {
+ /*
+ * The properties of custom domain for Spring Cloud Gateway
+ */
+ @JsonProperty(value = "properties")
+ private GatewayCustomDomainProperties properties;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: The properties of custom domain for Spring Cloud Gateway.
+ *
+ * @return the properties value.
+ */
+ public GatewayCustomDomainProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The properties of custom domain for Spring Cloud Gateway.
+ *
+ * @param properties the properties value to set.
+ * @return the GatewayCustomDomainResourceInner object itself.
+ */
+ public GatewayCustomDomainResourceInner withProperties(GatewayCustomDomainProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/GatewayResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/GatewayResourceInner.java
new file mode 100644
index 000000000000..74a170bea462
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/GatewayResourceInner.java
@@ -0,0 +1,97 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appplatform.models.GatewayProperties;
+import com.azure.resourcemanager.appplatform.models.Sku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Spring Cloud Gateway resource. */
+@Fluent
+public final class GatewayResourceInner extends ProxyResource {
+ /*
+ * Spring Cloud Gateway properties payload
+ */
+ @JsonProperty(value = "properties")
+ private GatewayProperties properties;
+
+ /*
+ * Sku of the Spring Cloud Gateway resource
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: Spring Cloud Gateway properties payload.
+ *
+ * @return the properties value.
+ */
+ public GatewayProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Spring Cloud Gateway properties payload.
+ *
+ * @param properties the properties value to set.
+ * @return the GatewayResourceInner object itself.
+ */
+ public GatewayResourceInner withProperties(GatewayProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the sku property: Sku of the Spring Cloud Gateway resource.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Sku of the Spring Cloud Gateway resource.
+ *
+ * @param sku the sku value to set.
+ * @return the GatewayResourceInner object itself.
+ */
+ public GatewayResourceInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ if (sku() != null) {
+ sku().validate();
+ }
+ }
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/GatewayRouteConfigResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/GatewayRouteConfigResourceInner.java
new file mode 100644
index 000000000000..82953361ac67
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/GatewayRouteConfigResourceInner.java
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appplatform.models.GatewayRouteConfigProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Spring Cloud Gateway route config resource. */
+@Fluent
+public final class GatewayRouteConfigResourceInner extends ProxyResource {
+ /*
+ * API route config of the Spring Cloud Gateway
+ */
+ @JsonProperty(value = "properties")
+ private GatewayRouteConfigProperties properties;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: API route config of the Spring Cloud Gateway.
+ *
+ * @return the properties value.
+ */
+ public GatewayRouteConfigProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: API route config of the Spring Cloud Gateway.
+ *
+ * @param properties the properties value to set.
+ * @return the GatewayRouteConfigResourceInner object itself.
+ */
+ public GatewayRouteConfigResourceInner withProperties(GatewayRouteConfigProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/RemoteDebuggingInner.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/RemoteDebuggingInner.java
new file mode 100644
index 000000000000..3d7b92c4f402
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/RemoteDebuggingInner.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Remote debugging config. */
+@Fluent
+public final class RemoteDebuggingInner {
+ /*
+ * Application debugging port
+ */
+ @JsonProperty(value = "port")
+ private Integer port;
+
+ /*
+ * Indicate if remote debugging is enabled
+ */
+ @JsonProperty(value = "enabled")
+ private Boolean enabled;
+
+ /**
+ * Get the port property: Application debugging port.
+ *
+ * @return the port value.
+ */
+ public Integer port() {
+ return this.port;
+ }
+
+ /**
+ * Set the port property: Application debugging port.
+ *
+ * @param port the port value to set.
+ * @return the RemoteDebuggingInner object itself.
+ */
+ public RemoteDebuggingInner withPort(Integer port) {
+ this.port = port;
+ return this;
+ }
+
+ /**
+ * Get the enabled property: Indicate if remote debugging is enabled.
+ *
+ * @return the enabled value.
+ */
+ public Boolean enabled() {
+ return this.enabled;
+ }
+
+ /**
+ * Set the enabled property: Indicate if remote debugging is enabled.
+ *
+ * @param enabled the enabled value to set.
+ * @return the RemoteDebuggingInner object itself.
+ */
+ public RemoteDebuggingInner withEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/StorageResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/StorageResourceInner.java
new file mode 100644
index 000000000000..619d2e9c61fc
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/fluent/models/StorageResourceInner.java
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.appplatform.models.StorageProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Storage resource payload. */
+@Fluent
+public final class StorageResourceInner extends ProxyResource {
+ /*
+ * Properties of the storage resource payload.
+ */
+ @JsonProperty(value = "properties")
+ private StorageProperties properties;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: Properties of the storage resource payload.
+ *
+ * @return the properties value.
+ */
+ public StorageProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the storage resource payload.
+ *
+ * @param properties the properties value to set.
+ * @return the StorageResourceInner object itself.
+ */
+ public StorageResourceInner withProperties(StorageProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/ApiPortalCustomDomainsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/ApiPortalCustomDomainsClientImpl.java
new file mode 100644
index 000000000000..6382ac645813
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/ApiPortalCustomDomainsClientImpl.java
@@ -0,0 +1,1270 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appplatform.fluent.ApiPortalCustomDomainsClient;
+import com.azure.resourcemanager.appplatform.fluent.models.ApiPortalCustomDomainResourceInner;
+import com.azure.resourcemanager.appplatform.models.ApiPortalCustomDomainResourceCollection;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ApiPortalCustomDomainsClient. */
+public final class ApiPortalCustomDomainsClientImpl implements ApiPortalCustomDomainsClient {
+ /** The proxy service used to perform REST calls. */
+ private final ApiPortalCustomDomainsService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ApiPortalCustomDomainsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ApiPortalCustomDomainsClientImpl(AppPlatformManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(ApiPortalCustomDomainsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientApiPortalCustomDomains to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface ApiPortalCustomDomainsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("apiPortalName") String apiPortalName,
+ @PathParam("domainName") String domainName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("apiPortalName") String apiPortalName,
+ @PathParam("domainName") String domainName,
+ @BodyParam("application/json") ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("apiPortalName") String apiPortalName,
+ @PathParam("domainName") String domainName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apiPortals/{apiPortalName}/domains")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("apiPortalName") String apiPortalName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the API portal custom domain along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ domainName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the API portal custom domain along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ domainName,
+ accept,
+ context);
+ }
+
+ /**
+ * Get the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the API portal custom domain on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName) {
+ return getWithResponseAsync(resourceGroupName, serviceName, apiPortalName, domainName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the API portal custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApiPortalCustomDomainResourceInner get(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName) {
+ return getAsync(resourceGroupName, serviceName, apiPortalName, domainName).block();
+ }
+
+ /**
+ * Get the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the API portal custom domain along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, apiPortalName, domainName, context).block();
+ }
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain of the API portal along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (apiPortalCustomDomainResource == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter apiPortalCustomDomainResource is required and cannot be null."));
+ } else {
+ apiPortalCustomDomainResource.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ domainName,
+ apiPortalCustomDomainResource,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain of the API portal along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (apiPortalCustomDomainResource == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter apiPortalCustomDomainResource is required and cannot be null."));
+ } else {
+ apiPortalCustomDomainResource.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ domainName,
+ apiPortalCustomDomainResource,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of custom domain of the API portal.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, ApiPortalCustomDomainResourceInner>
+ beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(
+ resourceGroupName, serviceName, apiPortalName, domainName, apiPortalCustomDomainResource);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ApiPortalCustomDomainResourceInner.class,
+ ApiPortalCustomDomainResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of custom domain of the API portal.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ApiPortalCustomDomainResourceInner>
+ beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(
+ resourceGroupName, serviceName, apiPortalName, domainName, apiPortalCustomDomainResource, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ApiPortalCustomDomainResourceInner.class,
+ ApiPortalCustomDomainResourceInner.class,
+ context);
+ }
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of custom domain of the API portal.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ApiPortalCustomDomainResourceInner>
+ beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource) {
+ return beginCreateOrUpdateAsync(
+ resourceGroupName, serviceName, apiPortalName, domainName, apiPortalCustomDomainResource)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of custom domain of the API portal.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ApiPortalCustomDomainResourceInner>
+ beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource,
+ Context context) {
+ return beginCreateOrUpdateAsync(
+ resourceGroupName, serviceName, apiPortalName, domainName, apiPortalCustomDomainResource, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain of the API portal on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource) {
+ return beginCreateOrUpdateAsync(
+ resourceGroupName, serviceName, apiPortalName, domainName, apiPortalCustomDomainResource)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain of the API portal on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource,
+ Context context) {
+ return beginCreateOrUpdateAsync(
+ resourceGroupName, serviceName, apiPortalName, domainName, apiPortalCustomDomainResource, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain of the API portal.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApiPortalCustomDomainResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource) {
+ return createOrUpdateAsync(
+ resourceGroupName, serviceName, apiPortalName, domainName, apiPortalCustomDomainResource)
+ .block();
+ }
+
+ /**
+ * Create or update the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domain of the API portal.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApiPortalCustomDomainResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ String domainName,
+ ApiPortalCustomDomainResourceInner apiPortalCustomDomainResource,
+ Context context) {
+ return createOrUpdateAsync(
+ resourceGroupName, serviceName, apiPortalName, domainName, apiPortalCustomDomainResource, context)
+ .block();
+ }
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ domainName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ domainName,
+ accept,
+ context);
+ }
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName) {
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, serviceName, apiPortalName, domainName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, serviceName, apiPortalName, domainName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName) {
+ return beginDeleteAsync(resourceGroupName, serviceName, apiPortalName, domainName).getSyncPoller();
+ }
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName, Context context) {
+ return beginDeleteAsync(resourceGroupName, serviceName, apiPortalName, domainName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName) {
+ return beginDeleteAsync(resourceGroupName, serviceName, apiPortalName, domainName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName, Context context) {
+ return beginDeleteAsync(resourceGroupName, serviceName, apiPortalName, domainName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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)
+ public void delete(String resourceGroupName, String serviceName, String apiPortalName, String domainName) {
+ deleteAsync(resourceGroupName, serviceName, apiPortalName, domainName).block();
+ }
+
+ /**
+ * Delete the API portal custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param domainName The name of the API portal custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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)
+ public void delete(
+ String resourceGroupName, String serviceName, String apiPortalName, String domainName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, apiPortalName, domainName, context).block();
+ }
+
+ /**
+ * Handle requests to list all API portal custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal custom domain resources and a possible link for next set
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String apiPortalName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Handle requests to list all API portal custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal custom domain resources and a possible link for next set
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Handle requests to list all API portal custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal custom domain resources and a possible link for next set as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String apiPortalName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, apiPortalName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handle requests to list all API portal custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal custom domain resources and a possible link for next set as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, apiPortalName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Handle requests to list all API portal custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal custom domain resources and a possible link for next set as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String serviceName, String apiPortalName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, apiPortalName));
+ }
+
+ /**
+ * Handle requests to list all API portal custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal custom domain resources and a possible link for next set as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, apiPortalName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal custom domain resources and a possible link for next set
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal custom domain resources and a possible link for next set
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/ApiPortalsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/ApiPortalsClientImpl.java
new file mode 100644
index 000000000000..6a7d28a6452b
--- /dev/null
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/ApiPortalsClientImpl.java
@@ -0,0 +1,1367 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appplatform.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appplatform.fluent.ApiPortalsClient;
+import com.azure.resourcemanager.appplatform.fluent.models.ApiPortalResourceInner;
+import com.azure.resourcemanager.appplatform.models.ApiPortalResourceCollection;
+import com.azure.resourcemanager.appplatform.models.CustomDomainValidatePayload;
+import com.azure.resourcemanager.appplatform.models.CustomDomainValidateResult;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ApiPortalsClient. */
+public final class ApiPortalsClientImpl implements ApiPortalsClient {
+ /** The proxy service used to perform REST calls. */
+ private final ApiPortalsService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ApiPortalsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ApiPortalsClientImpl(AppPlatformManagementClientImpl client) {
+ this.service =
+ RestProxy.create(ApiPortalsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientApiPortals to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface ApiPortalsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apiPortals/{apiPortalName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("apiPortalName") String apiPortalName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apiPortals/{apiPortalName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("apiPortalName") String apiPortalName,
+ @BodyParam("application/json") ApiPortalResourceInner apiPortalResource,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apiPortals/{apiPortalName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("apiPortalName") String apiPortalName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apiPortals")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apiPortals/{apiPortalName}/validateDomain")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> validateDomain(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("apiPortalName") String apiPortalName,
+ @BodyParam("application/json") CustomDomainValidatePayload validatePayload,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get the API portal and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the API portal and its properties along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the API portal and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the API portal and its properties along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ accept,
+ context);
+ }
+
+ /**
+ * Get the API portal and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the API portal and its properties on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(String resourceGroupName, String serviceName, String apiPortalName) {
+ return getWithResponseAsync(resourceGroupName, serviceName, apiPortalName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the API portal and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the API portal and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApiPortalResourceInner get(String resourceGroupName, String serviceName, String apiPortalName) {
+ return getAsync(resourceGroupName, serviceName, apiPortalName).block();
+ }
+
+ /**
+ * Get the API portal and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the API portal and its properties along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, apiPortalName, context).block();
+ }
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI portal resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, ApiPortalResourceInner apiPortalResource) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ if (apiPortalResource == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter apiPortalResource is required and cannot be null."));
+ } else {
+ apiPortalResource.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ apiPortalResource,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI portal resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ ApiPortalResourceInner apiPortalResource,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ if (apiPortalResource == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter apiPortalResource is required and cannot be null."));
+ } else {
+ apiPortalResource.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ apiPortalResource,
+ accept,
+ context);
+ }
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of aPI portal resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, ApiPortalResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, ApiPortalResourceInner apiPortalResource) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, serviceName, apiPortalName, apiPortalResource);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ApiPortalResourceInner.class,
+ ApiPortalResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of aPI portal resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ApiPortalResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ ApiPortalResourceInner apiPortalResource,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, serviceName, apiPortalName, apiPortalResource, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ApiPortalResourceInner.class,
+ ApiPortalResourceInner.class,
+ context);
+ }
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of aPI portal resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ApiPortalResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String serviceName, String apiPortalName, ApiPortalResourceInner apiPortalResource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, apiPortalName, apiPortalResource)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of aPI portal resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ApiPortalResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ ApiPortalResourceInner apiPortalResource,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, apiPortalName, apiPortalResource, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI portal resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, ApiPortalResourceInner apiPortalResource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, apiPortalName, apiPortalResource)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI portal resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ ApiPortalResourceInner apiPortalResource,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, apiPortalName, apiPortalResource, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI portal resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApiPortalResourceInner createOrUpdate(
+ String resourceGroupName, String serviceName, String apiPortalName, ApiPortalResourceInner apiPortalResource) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, apiPortalName, apiPortalResource).block();
+ }
+
+ /**
+ * Create the default API portal or update the existing API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param apiPortalResource The API portal for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI portal resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApiPortalResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ ApiPortalResourceInner apiPortalResource,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, apiPortalName, apiPortalResource, context).block();
+ }
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ accept,
+ context);
+ }
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String serviceName, String apiPortalName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceName, apiPortalName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, serviceName, apiPortalName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String apiPortalName) {
+ return beginDeleteAsync(resourceGroupName, serviceName, apiPortalName).getSyncPoller();
+ }
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context) {
+ return beginDeleteAsync(resourceGroupName, serviceName, apiPortalName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String apiPortalName) {
+ return beginDeleteAsync(resourceGroupName, serviceName, apiPortalName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName, String serviceName, String apiPortalName, Context context) {
+ return beginDeleteAsync(resourceGroupName, serviceName, apiPortalName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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)
+ public void delete(String resourceGroupName, String serviceName, String apiPortalName) {
+ deleteAsync(resourceGroupName, serviceName, apiPortalName).block();
+ }
+
+ /**
+ * Delete the default API portal.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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)
+ public void delete(String resourceGroupName, String serviceName, String apiPortalName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, apiPortalName, context).block();
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal resources and a possible link for next set along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal resources and a possible link for next set along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal resources and a possible link for next set as paginated
+ * response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(String resourceGroupName, String serviceName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal resources and a possible link for next set as paginated
+ * response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String serviceName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal resources and a possible link for next set as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName));
+ }
+
+ /**
+ * Handles requests to list all resources in a Service.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal resources and a possible link for next set as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, context));
+ }
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param validatePayload Custom domain payload to be validated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation result for custom domain along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> validateDomainWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ CustomDomainValidatePayload validatePayload) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ if (validatePayload == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter validatePayload is required and cannot be null."));
+ } else {
+ validatePayload.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .validateDomain(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ validatePayload,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param validatePayload Custom domain payload to be validated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation result for custom domain along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> validateDomainWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ CustomDomainValidatePayload validatePayload,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (apiPortalName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiPortalName is required and cannot be null."));
+ }
+ if (validatePayload == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter validatePayload is required and cannot be null."));
+ } else {
+ validatePayload.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .validateDomain(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ apiPortalName,
+ validatePayload,
+ accept,
+ context);
+ }
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param validatePayload Custom domain payload to be validated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation result for custom domain on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono validateDomainAsync(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ CustomDomainValidatePayload validatePayload) {
+ return validateDomainWithResponseAsync(resourceGroupName, serviceName, apiPortalName, validatePayload)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param validatePayload Custom domain payload to be validated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation result for custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainValidateResult validateDomain(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ CustomDomainValidatePayload validatePayload) {
+ return validateDomainAsync(resourceGroupName, serviceName, apiPortalName, validatePayload).block();
+ }
+
+ /**
+ * Check the domains are valid as well as not in use.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param apiPortalName The name of API portal.
+ * @param validatePayload Custom domain payload to be validated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation result for custom domain along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response validateDomainWithResponse(
+ String resourceGroupName,
+ String serviceName,
+ String apiPortalName,
+ CustomDomainValidatePayload validatePayload,
+ Context context) {
+ return validateDomainWithResponseAsync(resourceGroupName, serviceName, apiPortalName, validatePayload, context)
+ .block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal resources and a possible link for next set along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of API portal resources and a possible link for next set along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/AppPlatformManagementClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/AppPlatformManagementClientImpl.java
index 016dc9b4a4b3..09cf3e5f4b12 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/AppPlatformManagementClientImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/AppPlatformManagementClientImpl.java
@@ -8,6 +8,8 @@
import com.azure.core.http.HttpPipeline;
import com.azure.core.management.AzureEnvironment;
import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.resourcemanager.appplatform.fluent.ApiPortalCustomDomainsClient;
+import com.azure.resourcemanager.appplatform.fluent.ApiPortalsClient;
import com.azure.resourcemanager.appplatform.fluent.AppPlatformManagementClient;
import com.azure.resourcemanager.appplatform.fluent.AppsClient;
import com.azure.resourcemanager.appplatform.fluent.BindingsClient;
@@ -20,12 +22,16 @@
import com.azure.resourcemanager.appplatform.fluent.ConfigurationServicesClient;
import com.azure.resourcemanager.appplatform.fluent.CustomDomainsClient;
import com.azure.resourcemanager.appplatform.fluent.DeploymentsClient;
+import com.azure.resourcemanager.appplatform.fluent.GatewayCustomDomainsClient;
+import com.azure.resourcemanager.appplatform.fluent.GatewayRouteConfigsClient;
+import com.azure.resourcemanager.appplatform.fluent.GatewaysClient;
import com.azure.resourcemanager.appplatform.fluent.MonitoringSettingsClient;
import com.azure.resourcemanager.appplatform.fluent.OperationsClient;
import com.azure.resourcemanager.appplatform.fluent.RuntimeVersionsClient;
import com.azure.resourcemanager.appplatform.fluent.ServiceRegistriesClient;
import com.azure.resourcemanager.appplatform.fluent.ServicesClient;
import com.azure.resourcemanager.appplatform.fluent.SkusClient;
+import com.azure.resourcemanager.appplatform.fluent.StoragesClient;
import com.azure.resourcemanager.resources.fluentcore.AzureServiceClient;
import java.time.Duration;
@@ -240,6 +246,18 @@ public BindingsClient getBindings() {
return this.bindings;
}
+ /** The StoragesClient object to access its operations. */
+ private final StoragesClient storages;
+
+ /**
+ * Gets the StoragesClient object to access its operations.
+ *
+ * @return the StoragesClient object.
+ */
+ public StoragesClient getStorages() {
+ return this.storages;
+ }
+
/** The CertificatesClient object to access its operations. */
private final CertificatesClient certificates;
@@ -312,6 +330,66 @@ public SkusClient getSkus() {
return this.skus;
}
+ /** The GatewaysClient object to access its operations. */
+ private final GatewaysClient gateways;
+
+ /**
+ * Gets the GatewaysClient object to access its operations.
+ *
+ * @return the GatewaysClient object.
+ */
+ public GatewaysClient getGateways() {
+ return this.gateways;
+ }
+
+ /** The GatewayRouteConfigsClient object to access its operations. */
+ private final GatewayRouteConfigsClient gatewayRouteConfigs;
+
+ /**
+ * Gets the GatewayRouteConfigsClient object to access its operations.
+ *
+ * @return the GatewayRouteConfigsClient object.
+ */
+ public GatewayRouteConfigsClient getGatewayRouteConfigs() {
+ return this.gatewayRouteConfigs;
+ }
+
+ /** The GatewayCustomDomainsClient object to access its operations. */
+ private final GatewayCustomDomainsClient gatewayCustomDomains;
+
+ /**
+ * Gets the GatewayCustomDomainsClient object to access its operations.
+ *
+ * @return the GatewayCustomDomainsClient object.
+ */
+ public GatewayCustomDomainsClient getGatewayCustomDomains() {
+ return this.gatewayCustomDomains;
+ }
+
+ /** The ApiPortalsClient object to access its operations. */
+ private final ApiPortalsClient apiPortals;
+
+ /**
+ * Gets the ApiPortalsClient object to access its operations.
+ *
+ * @return the ApiPortalsClient object.
+ */
+ public ApiPortalsClient getApiPortals() {
+ return this.apiPortals;
+ }
+
+ /** The ApiPortalCustomDomainsClient object to access its operations. */
+ private final ApiPortalCustomDomainsClient apiPortalCustomDomains;
+
+ /**
+ * Gets the ApiPortalCustomDomainsClient object to access its operations.
+ *
+ * @return the ApiPortalCustomDomainsClient object.
+ */
+ public ApiPortalCustomDomainsClient getApiPortalCustomDomains() {
+ return this.apiPortalCustomDomains;
+ }
+
/**
* Initializes an instance of AppPlatformManagementClient client.
*
@@ -336,7 +414,7 @@ public SkusClient getSkus() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-04-01";
+ this.apiVersion = "2022-12-01";
this.services = new ServicesClientImpl(this);
this.configServers = new ConfigServersClientImpl(this);
this.configurationServices = new ConfigurationServicesClientImpl(this);
@@ -348,11 +426,17 @@ public SkusClient getSkus() {
this.monitoringSettings = new MonitoringSettingsClientImpl(this);
this.apps = new AppsClientImpl(this);
this.bindings = new BindingsClientImpl(this);
+ this.storages = new StoragesClientImpl(this);
this.certificates = new CertificatesClientImpl(this);
this.customDomains = new CustomDomainsClientImpl(this);
this.deployments = new DeploymentsClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.runtimeVersions = new RuntimeVersionsClientImpl(this);
this.skus = new SkusClientImpl(this);
+ this.gateways = new GatewaysClientImpl(this);
+ this.gatewayRouteConfigs = new GatewayRouteConfigsClientImpl(this);
+ this.gatewayCustomDomains = new GatewayCustomDomainsClientImpl(this);
+ this.apiPortals = new ApiPortalsClientImpl(this);
+ this.apiPortalCustomDomains = new ApiPortalCustomDomainsClientImpl(this);
}
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/BuildServiceBuildersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/BuildServiceBuildersClientImpl.java
index d5f34f976c56..c11287c74050 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/BuildServiceBuildersClientImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/BuildServiceBuildersClientImpl.java
@@ -13,6 +13,7 @@
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
@@ -33,6 +34,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appplatform.fluent.BuildServiceBuildersClient;
import com.azure.resourcemanager.appplatform.fluent.models.BuilderResourceInner;
+import com.azure.resourcemanager.appplatform.fluent.models.DeploymentListInner;
import com.azure.resourcemanager.appplatform.models.BuilderResourceCollection;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -133,6 +135,23 @@ Mono> list(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listDeployments(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("buildServiceName") String buildServiceName,
+ @PathParam("builderName") String builderName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -1187,6 +1206,184 @@ public PagedIterable list(
return new PagedIterable<>(listAsync(resourceGroupName, serviceName, buildServiceName, context));
}
+ /**
+ * List deployments that are using the builder.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param buildServiceName The name of the build service resource.
+ * @param builderName The name of the builder resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of deployments resource ids along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listDeploymentsWithResponseAsync(
+ String resourceGroupName, String serviceName, String buildServiceName, String builderName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (buildServiceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter buildServiceName is required and cannot be null."));
+ }
+ if (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listDeployments(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ buildServiceName,
+ builderName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List deployments that are using the builder.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param buildServiceName The name of the build service resource.
+ * @param builderName The name of the builder resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of deployments resource ids along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listDeploymentsWithResponseAsync(
+ String resourceGroupName, String serviceName, String buildServiceName, String builderName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (buildServiceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter buildServiceName is required and cannot be null."));
+ }
+ if (builderName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter builderName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listDeployments(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ buildServiceName,
+ builderName,
+ accept,
+ context);
+ }
+
+ /**
+ * List deployments that are using the builder.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param buildServiceName The name of the build service resource.
+ * @param builderName The name of the builder resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of deployments resource ids on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono listDeploymentsAsync(
+ String resourceGroupName, String serviceName, String buildServiceName, String builderName) {
+ return listDeploymentsWithResponseAsync(resourceGroupName, serviceName, buildServiceName, builderName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * List deployments that are using the builder.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param buildServiceName The name of the build service resource.
+ * @param builderName The name of the builder resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of deployments resource ids.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentListInner listDeployments(
+ String resourceGroupName, String serviceName, String buildServiceName, String builderName) {
+ return listDeploymentsAsync(resourceGroupName, serviceName, buildServiceName, builderName).block();
+ }
+
+ /**
+ * List deployments that are using the builder.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param buildServiceName The name of the build service resource.
+ * @param builderName The name of the builder resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of deployments resource ids along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listDeploymentsWithResponse(
+ String resourceGroupName, String serviceName, String buildServiceName, String builderName, Context context) {
+ return listDeploymentsWithResponseAsync(resourceGroupName, serviceName, buildServiceName, builderName, context)
+ .block();
+ }
+
/**
* Get the next page of items.
*
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/DeploymentsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/DeploymentsClientImpl.java
index d48e0c905a9e..19cd0f0ae715 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/DeploymentsClientImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/DeploymentsClientImpl.java
@@ -36,8 +36,10 @@
import com.azure.resourcemanager.appplatform.fluent.DeploymentsClient;
import com.azure.resourcemanager.appplatform.fluent.models.DeploymentResourceInner;
import com.azure.resourcemanager.appplatform.fluent.models.LogFileUrlResponseInner;
+import com.azure.resourcemanager.appplatform.fluent.models.RemoteDebuggingInner;
import com.azure.resourcemanager.appplatform.models.DeploymentResourceCollection;
import com.azure.resourcemanager.appplatform.models.DiagnosticParameters;
+import com.azure.resourcemanager.appplatform.models.RemoteDebuggingPayload;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
@@ -226,6 +228,58 @@ Mono>> restart(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> enableRemoteDebugging(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ @BodyParam("application/json") RemoteDebuggingPayload remoteDebuggingPayload,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> disableRemoteDebugging(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getRemoteDebuggingConfig(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @PathParam("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Post(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
@@ -2834,6 +2888,887 @@ public void restart(
restartAsync(resourceGroupName, serviceName, appName, deploymentName, context).block();
}
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return remote debugging config along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> enableRemoteDebuggingWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (remoteDebuggingPayload != null) {
+ remoteDebuggingPayload.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .enableRemoteDebugging(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ remoteDebuggingPayload,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return remote debugging config along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> enableRemoteDebuggingWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ if (remoteDebuggingPayload != null) {
+ remoteDebuggingPayload.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .enableRemoteDebugging(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ remoteDebuggingPayload,
+ accept,
+ context);
+ }
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, RemoteDebuggingInner> beginEnableRemoteDebuggingAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload) {
+ Mono>> mono =
+ enableRemoteDebuggingWithResponseAsync(
+ resourceGroupName, serviceName, appName, deploymentName, remoteDebuggingPayload);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ RemoteDebuggingInner.class,
+ RemoteDebuggingInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, RemoteDebuggingInner> beginEnableRemoteDebuggingAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ enableRemoteDebuggingWithResponseAsync(
+ resourceGroupName, serviceName, appName, deploymentName, remoteDebuggingPayload, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), RemoteDebuggingInner.class, RemoteDebuggingInner.class, context);
+ }
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, RemoteDebuggingInner> beginEnableRemoteDebugging(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload) {
+ return beginEnableRemoteDebuggingAsync(
+ resourceGroupName, serviceName, appName, deploymentName, remoteDebuggingPayload)
+ .getSyncPoller();
+ }
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, RemoteDebuggingInner> beginEnableRemoteDebugging(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload,
+ Context context) {
+ return beginEnableRemoteDebuggingAsync(
+ resourceGroupName, serviceName, appName, deploymentName, remoteDebuggingPayload, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return remote debugging config on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono enableRemoteDebuggingAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload) {
+ return beginEnableRemoteDebuggingAsync(
+ resourceGroupName, serviceName, appName, deploymentName, remoteDebuggingPayload)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return remote debugging config on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono enableRemoteDebuggingAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ final RemoteDebuggingPayload remoteDebuggingPayload = null;
+ return beginEnableRemoteDebuggingAsync(
+ resourceGroupName, serviceName, appName, deploymentName, remoteDebuggingPayload)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return remote debugging config on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono enableRemoteDebuggingAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload,
+ Context context) {
+ return beginEnableRemoteDebuggingAsync(
+ resourceGroupName, serviceName, appName, deploymentName, remoteDebuggingPayload, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RemoteDebuggingInner enableRemoteDebugging(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload) {
+ return enableRemoteDebuggingAsync(
+ resourceGroupName, serviceName, appName, deploymentName, remoteDebuggingPayload)
+ .block();
+ }
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RemoteDebuggingInner enableRemoteDebugging(
+ String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ final RemoteDebuggingPayload remoteDebuggingPayload = null;
+ return enableRemoteDebuggingAsync(
+ resourceGroupName, serviceName, appName, deploymentName, remoteDebuggingPayload)
+ .block();
+ }
+
+ /**
+ * Enable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param remoteDebuggingPayload Parameters for enable remote debugging.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RemoteDebuggingInner enableRemoteDebugging(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ RemoteDebuggingPayload remoteDebuggingPayload,
+ Context context) {
+ return enableRemoteDebuggingAsync(
+ resourceGroupName, serviceName, appName, deploymentName, remoteDebuggingPayload, context)
+ .block();
+ }
+
+ /**
+ * Disable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return remote debugging config along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> disableRemoteDebuggingWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .disableRemoteDebugging(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Disable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return remote debugging config along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> disableRemoteDebuggingWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serviceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null."));
+ }
+ if (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (deploymentName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .disableRemoteDebugging(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ accept,
+ context);
+ }
+
+ /**
+ * Disable remote debugging.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param serviceName The name of the Service resource.
+ * @param appName The name of the App resource.
+ * @param deploymentName The name of the Deployment resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of remote debugging config.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux