diff --git a/sdk/appplatform/mgmt/.gitignore b/sdk/appplatform/mgmt/.gitignore
new file mode 100644
index 000000000000..f537a954e09a
--- /dev/null
+++ b/sdk/appplatform/mgmt/.gitignore
@@ -0,0 +1,2 @@
+/piggymetrics
+# folder created in unit test
diff --git a/sdk/appplatform/mgmt/pom.xml b/sdk/appplatform/mgmt/pom.xml
new file mode 100644
index 000000000000..6b323b92c0cf
--- /dev/null
+++ b/sdk/appplatform/mgmt/pom.xml
@@ -0,0 +1,139 @@
+
+
+ 4.0.0
+
+ com.azure.resourcemanager
+ azure-resourcemanager-parent
+ 2.0.0-SNAPSHOT
+ ../../management/pom.xml
+
+
+ azure-resourcemanager-appplatform
+ jar
+
+ Microsoft Azure SDK for App Platform Management
+ This package contains Microsoft Azure App Platform Management SDK.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ scm:git:https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ UTF-8
+
+
+
+
+
+ microsoft
+ Microsoft
+
+
+
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-resources
+ 2.0.0-SNAPSHOT
+
+
+ com.azure
+ azure-storage-file-share
+ 12.5.0
+
+
+ org.apache.commons
+ commons-compress
+ 1.20
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+ com.azure
+ azure-core-http-netty
+ test
+
+
+ com.azure
+ azure-identity
+ test
+
+
+
+
+ azure-mgmt-sdk-test-jar
+
+
+ !maven.test.skip
+
+
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-resources
+ 2.0.0-SNAPSHOT
+ test-jar
+ test
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ true
+ true
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.1
+
+ 1.8
+ 1.8
+ true
+ true
+
+ true
+ true
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+
+
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClient.java
new file mode 100644
index 000000000000..4954f555b43b
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClient.java
@@ -0,0 +1,196 @@
+// 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;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.AzureServiceClient;
+import com.azure.resourcemanager.appplatform.fluent.AppsClient;
+import com.azure.resourcemanager.appplatform.fluent.BindingsClient;
+import com.azure.resourcemanager.appplatform.fluent.CertificatesClient;
+import com.azure.resourcemanager.appplatform.fluent.CustomDomainsClient;
+import com.azure.resourcemanager.appplatform.fluent.DeploymentsClient;
+import com.azure.resourcemanager.appplatform.fluent.OperationsClient;
+import com.azure.resourcemanager.appplatform.fluent.ServicesClient;
+import com.azure.resourcemanager.appplatform.fluent.SkusClient;
+
+/** Initializes a new instance of the AppPlatformManagementClient type. */
+@ServiceClient(builder = AppPlatformManagementClientBuilder.class)
+public final class AppPlatformManagementClient extends AzureServiceClient {
+ private final ClientLogger logger = new ClientLogger(AppPlatformManagementClient.class);
+
+ /**
+ * Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of
+ * the URI for every service call.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The ServicesClient object to access its operations. */
+ private final ServicesClient services;
+
+ /**
+ * Gets the ServicesClient object to access its operations.
+ *
+ * @return the ServicesClient object.
+ */
+ public ServicesClient getServices() {
+ return this.services;
+ }
+
+ /** The AppsClient object to access its operations. */
+ private final AppsClient apps;
+
+ /**
+ * Gets the AppsClient object to access its operations.
+ *
+ * @return the AppsClient object.
+ */
+ public AppsClient getApps() {
+ return this.apps;
+ }
+
+ /** The BindingsClient object to access its operations. */
+ private final BindingsClient bindings;
+
+ /**
+ * Gets the BindingsClient object to access its operations.
+ *
+ * @return the BindingsClient object.
+ */
+ public BindingsClient getBindings() {
+ return this.bindings;
+ }
+
+ /** The CertificatesClient object to access its operations. */
+ private final CertificatesClient certificates;
+
+ /**
+ * Gets the CertificatesClient object to access its operations.
+ *
+ * @return the CertificatesClient object.
+ */
+ public CertificatesClient getCertificates() {
+ return this.certificates;
+ }
+
+ /** The CustomDomainsClient object to access its operations. */
+ private final CustomDomainsClient customDomains;
+
+ /**
+ * Gets the CustomDomainsClient object to access its operations.
+ *
+ * @return the CustomDomainsClient object.
+ */
+ public CustomDomainsClient getCustomDomains() {
+ return this.customDomains;
+ }
+
+ /** The DeploymentsClient object to access its operations. */
+ private final DeploymentsClient deployments;
+
+ /**
+ * Gets the DeploymentsClient object to access its operations.
+ *
+ * @return the DeploymentsClient object.
+ */
+ public DeploymentsClient getDeployments() {
+ return this.deployments;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The SkusClient object to access its operations. */
+ private final SkusClient skus;
+
+ /**
+ * Gets the SkusClient object to access its operations.
+ *
+ * @return the SkusClient object.
+ */
+ public SkusClient getSkus() {
+ return this.skus;
+ }
+
+ /**
+ * Initializes an instance of AppPlatformManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param environment The Azure environment.
+ */
+ AppPlatformManagementClient(
+ HttpPipeline httpPipeline, AzureEnvironment environment, String subscriptionId, String endpoint) {
+ super(httpPipeline, environment);
+ this.httpPipeline = httpPipeline;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2019-05-01-preview";
+ this.services = new ServicesClient(this);
+ this.apps = new AppsClient(this);
+ this.bindings = new BindingsClient(this);
+ this.certificates = new CertificatesClient(this);
+ this.customDomains = new CustomDomainsClient(this);
+ this.deployments = new DeploymentsClient(this);
+ this.operations = new OperationsClient(this);
+ this.skus = new SkusClient(this);
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClientBuilder.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClientBuilder.java
new file mode 100644
index 000000000000..fe7fcab4df6b
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManagementClientBuilder.java
@@ -0,0 +1,107 @@
+// 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;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.CookiePolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+
+/** A builder for creating a new instance of the AppPlatformManagementClient type. */
+@ServiceClientBuilder(serviceClients = {AppPlatformManagementClient.class})
+public final class AppPlatformManagementClientBuilder {
+ /*
+ * Gets subscription ID which uniquely identify the Microsoft Azure
+ * subscription. The subscription ID forms part of the URI for every
+ * service call.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the AppPlatformManagementClientBuilder.
+ */
+ public AppPlatformManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the AppPlatformManagementClientBuilder.
+ */
+ public AppPlatformManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the AppPlatformManagementClientBuilder.
+ */
+ public AppPlatformManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the AppPlatformManagementClientBuilder.
+ */
+ public AppPlatformManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /**
+ * Builds an instance of AppPlatformManagementClient with the provided parameters.
+ *
+ * @return an instance of AppPlatformManagementClient.
+ */
+ public AppPlatformManagementClient buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ AppPlatformManagementClient client =
+ new AppPlatformManagementClient(pipeline, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManager.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManager.java
new file mode 100644
index 000000000000..02426a2949cd
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManager.java
@@ -0,0 +1,104 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+package com.azure.resourcemanager.appplatform;
+
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpPipeline;
+import com.azure.resourcemanager.appplatform.implementation.SpringServicesImpl;
+import com.azure.resourcemanager.appplatform.models.SpringServices;
+import com.azure.resourcemanager.resources.fluentcore.arm.AzureConfigurable;
+import com.azure.resourcemanager.resources.fluentcore.arm.implementation.AzureConfigurableImpl;
+import com.azure.resourcemanager.resources.fluentcore.arm.implementation.Manager;
+import com.azure.resourcemanager.resources.fluentcore.profile.AzureProfile;
+import com.azure.resourcemanager.resources.fluentcore.utils.HttpPipelineProvider;
+import com.azure.resourcemanager.resources.fluentcore.utils.SdkContext;
+
+/** Entry point to Azure App Platform management. */
+public final class AppPlatformManager extends Manager {
+ // Collections
+ private SpringServices springServices;
+ /**
+ * Get a Configurable instance that can be used to create AppPlatformManager with optional configuration.
+ *
+ * @return the instance allowing configurations
+ */
+ public static Configurable configure() {
+ return new AppPlatformManager.ConfigurableImpl();
+ }
+
+ /**
+ * Creates an instance of AppPlatformManager that exposes app platform resource management API entry points.
+ *
+ * @param credential the credential to use
+ * @param profile the profile to use
+ * @return the AppPlatformManager
+ */
+ public static AppPlatformManager authenticate(TokenCredential credential, AzureProfile profile) {
+ return authenticate(HttpPipelineProvider.buildHttpPipeline(credential, profile), profile);
+ }
+
+ /**
+ * Creates an instance of AppPlatformManager that exposes app platform resource management API entry points.
+ *
+ * @param httpPipeline the HttpPipeline to be used for API calls.
+ * @param profile the profile to use
+ * @return the AppPlatformManager
+ */
+ public static AppPlatformManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ return authenticate(httpPipeline, profile, new SdkContext());
+ }
+
+ /**
+ * Creates an instance of AppPlatformManager that exposes app platform resource management API entry points.
+ *
+ * @param httpPipeline the HttpPipeline to be used for API calls.
+ * @param profile the profile to use
+ * @param sdkContext the sdk context
+ * @return the AppPlatformManager
+ */
+ public static AppPlatformManager authenticate(
+ HttpPipeline httpPipeline, AzureProfile profile, SdkContext sdkContext) {
+ return new AppPlatformManager(httpPipeline, profile, sdkContext);
+ }
+
+ /** The interface allowing configurations to be set. */
+ public interface Configurable extends AzureConfigurable {
+ /**
+ * Creates an instance of AppPlatformManager that exposes app platform resource management API entry points.
+ *
+ * @param credential the credential to use
+ * @param profile the profile to use
+ * @return the interface exposing AppPlatform management API entry points that work across subscriptions
+ */
+ AppPlatformManager authenticate(TokenCredential credential, AzureProfile profile);
+ }
+
+ /** The implementation for Configurable interface. */
+ private static final class ConfigurableImpl extends AzureConfigurableImpl implements Configurable {
+ public AppPlatformManager authenticate(TokenCredential credential, AzureProfile profile) {
+ return AppPlatformManager.authenticate(buildHttpPipeline(credential, profile), profile);
+ }
+ }
+
+ private AppPlatformManager(HttpPipeline httpPipeline, AzureProfile profile, SdkContext sdkContext) {
+ super(
+ httpPipeline,
+ profile,
+ new AppPlatformManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.environment().getResourceManagerEndpoint())
+ .subscriptionId(profile.subscriptionId())
+ .buildClient(),
+ sdkContext);
+ }
+
+ /** @return Entry point for Spring Service management API. */
+ public SpringServices springServices() {
+ if (springServices == null) {
+ springServices = new SpringServicesImpl(this);
+ }
+ return springServices;
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/AppsClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/AppsClient.java
new file mode 100644
index 000000000000..7e392b21bc22
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/AppsClient.java
@@ -0,0 +1,1577 @@
+// 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.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+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.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appplatform.AppPlatformManagementClient;
+import com.azure.resourcemanager.appplatform.fluent.inner.AppResourceCollectionInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.AppResourceInner;
+import com.azure.resourcemanager.appplatform.models.ResourceUploadDefinition;
+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 Apps. */
+public final class AppsClient {
+ private final ClientLogger logger = new ClientLogger(AppsClient.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final AppsService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClient client;
+
+ /**
+ * Initializes an instance of AppsClient.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ public AppsClient(AppPlatformManagementClient client) {
+ this.service = RestProxy.create(AppsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientApps to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface AppsService {
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}")
+ @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("appName") String appName,
+ @QueryParam("syncStatus") String syncStatus,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}")
+ @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("appName") String appName,
+ @BodyParam("application/json") AppResourceInner appResource,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}")
+ @ExpectedResponses({200, 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("appName") String appName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(
+ @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,
+ @BodyParam("application/json") AppResourceInner appResource,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps")
+ @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,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/getResourceUploadUrl")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getResourceUploadUrl(
+ @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,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+ }
+
+ /**
+ * Get an App 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 appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @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 an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String syncStatus) {
+ 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."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ syncStatus,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get an App 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 appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @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 an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String syncStatus, 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."));
+ }
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ syncStatus,
+ context);
+ }
+
+ /**
+ * Get an App 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 appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @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 an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String syncStatus) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, syncStatus)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an App 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 appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @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 an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String syncStatus, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, syncStatus, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an App 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 appName The name of the App 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 an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(String resourceGroupName, String serviceName, String appName) {
+ final String syncStatus = null;
+ final Context context = null;
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, syncStatus)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an App 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 appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @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 an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner get(String resourceGroupName, String serviceName, String appName, String syncStatus) {
+ return getAsync(resourceGroupName, serviceName, appName, syncStatus).block();
+ }
+
+ /**
+ * Get an App 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 appName The name of the App resource.
+ * @param syncStatus Indicates whether sync status.
+ * @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 an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String syncStatus, Context context) {
+ return getAsync(resourceGroupName, serviceName, appName, syncStatus, context).block();
+ }
+
+ /**
+ * Get an App 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 appName The name of the App 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 an App and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner get(String resourceGroupName, String serviceName, String appName) {
+ final String syncStatus = null;
+ final Context context = null;
+ return getAsync(resourceGroupName, serviceName, appName, syncStatus).block();
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ 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 (appResource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appResource is required and cannot be null."));
+ } else {
+ appResource.validate();
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ appResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, 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 (appResource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appResource is required and cannot be null."));
+ } else {
+ appResource.validate();
+ }
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ appResource,
+ context);
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, AppResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, appResource);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class);
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, AppResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, appResource, context);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class);
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AppResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, appResource).getSyncPoller();
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AppResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, appResource, context).getSyncPoller();
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, appResource)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, appResource, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner createOrUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, appResource).block();
+ }
+
+ /**
+ * Create a new App or update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner createOrUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, appResource, context).block();
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(String resourceGroupName, String serviceName, String appName) {
+ 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."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, 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."));
+ }
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context);
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String appName) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String appName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, context)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 appName) {
+ deleteAsync(resourceGroupName, serviceName, appName).block();
+ }
+
+ /**
+ * Operation to delete an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 appName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, appName, context).block();
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> updateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ 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 (appResource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appResource is required and cannot be null."));
+ } else {
+ appResource.validate();
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ appResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> updateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, 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 (appResource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appResource is required and cannot be null."));
+ } else {
+ appResource.validate();
+ }
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ appResource,
+ context);
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, AppResourceInner> beginUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, serviceName, appName, appResource);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class);
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, AppResourceInner> beginUpdateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, serviceName, appName, appResource, context);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class);
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AppResourceInner> beginUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, appResource).getSyncPoller();
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, AppResourceInner> beginUpdate(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, appResource, context).getSyncPoller();
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, appResource)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, appResource, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner update(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource) {
+ return updateAsync(resourceGroupName, serviceName, appName, appResource).block();
+ }
+
+ /**
+ * Operation to update an exiting App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 appResource App resource payload.
+ * @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 app resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppResourceInner update(
+ String resourceGroupName, String serviceName, String appName, AppResourceInner appResource, Context context) {
+ return updateAsync(resourceGroupName, serviceName, appName, appResource, 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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public 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."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * 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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public 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."));
+ }
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ 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 App resources and a possible link for next set.
+ */
+ @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(String resourceGroupName, String serviceName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, context),
+ 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.
+ * @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 App resources and a possible link for next set.
+ */
+ @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, context));
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getResourceUploadUrlWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName) {
+ 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."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getResourceUploadUrl(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getResourceUploadUrlWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, 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."));
+ }
+ return service
+ .getResourceUploadUrl(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context);
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getResourceUploadUrlAsync(
+ String resourceGroupName, String serviceName, String appName) {
+ return getResourceUploadUrlWithResponseAsync(resourceGroupName, serviceName, appName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getResourceUploadUrlAsync(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return getResourceUploadUrlWithResponseAsync(resourceGroupName, serviceName, appName, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResourceUploadDefinition getResourceUploadUrl(String resourceGroupName, String serviceName, String appName) {
+ return getResourceUploadUrlAsync(resourceGroupName, serviceName, appName).block();
+ }
+
+ /**
+ * Get an resource upload URL for an App, which may be artifacts or source archive.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 an resource upload URL for an App, which may be artifacts or source archive.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResourceUploadDefinition getResourceUploadUrl(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return getResourceUploadUrlAsync(resourceGroupName, serviceName, appName, 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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * 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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return service
+ .listNext(nextLink, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/BindingsClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/BindingsClient.java
new file mode 100644
index 000000000000..9a10fb6f6cdf
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/BindingsClient.java
@@ -0,0 +1,1296 @@
+// 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.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+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.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appplatform.AppPlatformManagementClient;
+import com.azure.resourcemanager.appplatform.fluent.inner.BindingResourceCollectionInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.BindingResourceInner;
+import com.azure.resourcemanager.appplatform.models.BindingResourceProperties;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in Bindings. */
+public final class BindingsClient {
+ private final ClientLogger logger = new ClientLogger(BindingsClient.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final BindingsService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClient client;
+
+ /**
+ * Initializes an instance of BindingsClient.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ public BindingsClient(AppPlatformManagementClient client) {
+ this.service = RestProxy.create(BindingsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientBindings to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface BindingsService {
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/bindings/{bindingName}")
+ @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("appName") String appName,
+ @PathParam("bindingName") String bindingName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/bindings/{bindingName}")
+ @ExpectedResponses({200})
+ @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("appName") String appName,
+ @PathParam("bindingName") String bindingName,
+ @BodyParam("application/json") BindingResourceInner bindingResource,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/bindings/{bindingName}")
+ @ExpectedResponses({200, 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("appName") String appName,
+ @PathParam("bindingName") String bindingName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/bindings/{bindingName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(
+ @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("bindingName") String bindingName,
+ @BodyParam("application/json") BindingResourceInner bindingResource,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/bindings")
+ @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("appName") String appName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+ }
+
+ /**
+ * Get a Binding 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 appName The name of the App resource.
+ * @param bindingName The name of the Binding 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 Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName) {
+ 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 (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get a Binding 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 appName The name of the App resource.
+ * @param bindingName The name of the Binding 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 Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName, 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 (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ context);
+ }
+
+ /**
+ * Get a Binding 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 appName The name of the App resource.
+ * @param bindingName The name of the Binding 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 Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, bindingName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get a Binding 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 appName The name of the App resource.
+ * @param bindingName The name of the Binding 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 Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, bindingName, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get a Binding 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 appName The name of the App resource.
+ * @param bindingName The name of the Binding 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 Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner get(String resourceGroupName, String serviceName, String appName, String bindingName) {
+ return getAsync(resourceGroupName, serviceName, appName, bindingName).block();
+ }
+
+ /**
+ * Get a Binding 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 appName The name of the App resource.
+ * @param bindingName The name of the Binding 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 Binding and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String bindingName, Context context) {
+ return getAsync(resourceGroupName, serviceName, appName, bindingName, context).block();
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ 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 (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ BindingResourceInner bindingResource = new BindingResourceInner();
+ bindingResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ bindingResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ 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 (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ BindingResourceInner bindingResource = new BindingResourceInner();
+ bindingResource.withProperties(properties);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ bindingResource,
+ context);
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, bindingName, properties)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ Context context) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, serviceName, appName, bindingName, properties, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, bindingName, properties).block();
+ }
+
+ /**
+ * Create a new Binding or update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, bindingName, properties, context).block();
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName) {
+ 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 (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding 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 the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName, 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 (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ context);
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String appName, String bindingName) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, bindingName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding 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 the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(
+ String resourceGroupName, String serviceName, String appName, String bindingName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, bindingName, context)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String appName, String bindingName) {
+ deleteAsync(resourceGroupName, serviceName, appName, bindingName).block();
+ }
+
+ /**
+ * Operation to delete a Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName, String serviceName, String appName, String bindingName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, appName, bindingName, context).block();
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ 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 (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ BindingResourceInner bindingResource = new BindingResourceInner();
+ bindingResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ bindingResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ 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 (bindingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bindingName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ BindingResourceInner bindingResource = new BindingResourceInner();
+ bindingResource.withProperties(properties);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ bindingName,
+ bindingResource,
+ context);
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ return updateWithResponseAsync(resourceGroupName, serviceName, appName, bindingName, properties)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ Context context) {
+ return updateWithResponseAsync(resourceGroupName, serviceName, appName, bindingName, properties, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner update(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties) {
+ return updateAsync(resourceGroupName, serviceName, appName, bindingName, properties).block();
+ }
+
+ /**
+ * Operation to update an exiting Binding.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 bindingName The name of the Binding resource.
+ * @param properties Binding resource properties payload.
+ * @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 binding resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BindingResourceInner update(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String bindingName,
+ BindingResourceProperties properties,
+ Context context) {
+ return updateAsync(resourceGroupName, serviceName, appName, bindingName, properties, context).block();
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName) {
+ 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."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName, 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."));
+ }
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ 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 an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(String resourceGroupName, String serviceName, String appName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName, context),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName, String appName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName, 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 Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * 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 Binding resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return service
+ .listNext(nextLink, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CertificatesClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CertificatesClient.java
new file mode 100644
index 000000000000..5a1853b7f415
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CertificatesClient.java
@@ -0,0 +1,956 @@
+// 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.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+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.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appplatform.AppPlatformManagementClient;
+import com.azure.resourcemanager.appplatform.fluent.inner.CertificateResourceCollectionInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.CertificateResourceInner;
+import com.azure.resourcemanager.appplatform.models.CertificateProperties;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in Certificates. */
+public final class CertificatesClient {
+ private final ClientLogger logger = new ClientLogger(CertificatesClient.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final CertificatesService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClient client;
+
+ /**
+ * Initializes an instance of CertificatesClient.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ public CertificatesClient(AppPlatformManagementClient client) {
+ this.service =
+ RestProxy.create(CertificatesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientCertificates to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface CertificatesService {
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/certificates/{certificateName}")
+ @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("certificateName") String certificateName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/certificates/{certificateName}")
+ @ExpectedResponses({200})
+ @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("certificateName") String certificateName,
+ @BodyParam("application/json") CertificateResourceInner certificateResource,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/certificates/{certificateName}")
+ @ExpectedResponses({200, 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("certificateName") String certificateName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/certificates")
+ @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,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+ }
+
+ /**
+ * Get the certificate 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 certificateName The name of the certificate 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 certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String certificateName) {
+ 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 (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the certificate 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 certificateName The name of the certificate 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 the certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String certificateName, 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 (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ context);
+ }
+
+ /**
+ * Get the certificate 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 certificateName The name of the certificate 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 certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String certificateName) {
+ return getWithResponseAsync(resourceGroupName, serviceName, certificateName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the certificate 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 certificateName The name of the certificate 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 the certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String certificateName, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, certificateName, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the certificate 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 certificateName The name of the certificate 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 certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateResourceInner get(String resourceGroupName, String serviceName, String certificateName) {
+ return getAsync(resourceGroupName, serviceName, certificateName).block();
+ }
+
+ /**
+ * Get the certificate 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 certificateName The name of the certificate 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 the certificate resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateResourceInner get(
+ String resourceGroupName, String serviceName, String certificateName, Context context) {
+ return getAsync(resourceGroupName, serviceName, certificateName, context).block();
+ }
+
+ /**
+ * Create or update certificate 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 certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @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 certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String serviceName, String certificateName, CertificateProperties properties) {
+ 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 (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CertificateResourceInner certificateResource = new CertificateResourceInner();
+ certificateResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ certificateResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create or update certificate 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 certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @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 certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String certificateName,
+ CertificateProperties properties,
+ 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 (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CertificateResourceInner certificateResource = new CertificateResourceInner();
+ certificateResource.withProperties(properties);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ certificateResource,
+ context);
+ }
+
+ /**
+ * Create or update certificate 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 certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @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 certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName, String serviceName, String certificateName, CertificateProperties properties) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, serviceName, certificateName, properties)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or update certificate 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 certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @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 certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String certificateName,
+ CertificateProperties properties,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, serviceName, certificateName, properties, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or update certificate 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 certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @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 certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateResourceInner createOrUpdate(
+ String resourceGroupName, String serviceName, String certificateName, CertificateProperties properties) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, certificateName, properties).block();
+ }
+
+ /**
+ * Create or update certificate 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 certificateName The name of the certificate resource.
+ * @param properties Certificate resource payload.
+ * @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 certificate resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CertificateResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String certificateName,
+ CertificateProperties properties,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, certificateName, properties, context).block();
+ }
+
+ /**
+ * Delete the certificate 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 certificateName The name of the certificate 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String certificateName) {
+ 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 (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Delete the certificate 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 certificateName The name of the certificate 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 the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String certificateName, 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 (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ certificateName,
+ context);
+ }
+
+ /**
+ * Delete the certificate 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 certificateName The name of the certificate 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String certificateName) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, certificateName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Delete the certificate 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 certificateName The name of the certificate 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 the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(
+ String resourceGroupName, String serviceName, String certificateName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, certificateName, context)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Delete the certificate 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 certificateName The name of the certificate 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String certificateName) {
+ deleteAsync(resourceGroupName, serviceName, certificateName).block();
+ }
+
+ /**
+ * Delete the certificate 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 certificateName The name of the certificate 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String certificateName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, certificateName, context).block();
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public 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."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public 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."));
+ }
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(String resourceGroupName, String serviceName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, context),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName));
+ }
+
+ /**
+ * List all the certificates of one user.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, 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 collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * 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 collection compose of certificate resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return service
+ .listNext(nextLink, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CustomDomainsClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CustomDomainsClient.java
new file mode 100644
index 000000000000..bf62bebbb1a7
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/CustomDomainsClient.java
@@ -0,0 +1,1526 @@
+// 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.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+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.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.appplatform.AppPlatformManagementClient;
+import com.azure.resourcemanager.appplatform.fluent.inner.CustomDomainResourceCollectionInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.CustomDomainResourceInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.CustomDomainValidateResultInner;
+import com.azure.resourcemanager.appplatform.models.CustomDomainProperties;
+import com.azure.resourcemanager.appplatform.models.CustomDomainValidatePayload;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in CustomDomains. */
+public final class CustomDomainsClient {
+ private final ClientLogger logger = new ClientLogger(CustomDomainsClient.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final CustomDomainsService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClient client;
+
+ /**
+ * Initializes an instance of CustomDomainsClient.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ public CustomDomainsClient(AppPlatformManagementClient client) {
+ this.service =
+ RestProxy.create(CustomDomainsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientCustomDomains to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface CustomDomainsService {
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/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("appName") String appName,
+ @PathParam("domainName") String domainName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/domains/{domainName}")
+ @ExpectedResponses({200})
+ @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("appName") String appName,
+ @PathParam("domainName") String domainName,
+ @BodyParam("application/json") CustomDomainResourceInner domainResource,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/domains/{domainName}")
+ @ExpectedResponses({200, 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("appName") String appName,
+ @PathParam("domainName") String domainName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/domains/{domainName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> patch(
+ @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("domainName") String domainName,
+ @BodyParam("application/json") CustomDomainResourceInner domainResource,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/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("appName") String appName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/domains/validate")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> validate(
+ @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,
+ @BodyParam("application/json") CustomDomainValidatePayload validatePayload,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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 custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, 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 (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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 the custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, 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 (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ context);
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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 custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String domainName) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, domainName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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 the custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String domainName, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, domainName, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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 custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String domainName) {
+ return getAsync(resourceGroupName, serviceName, appName, domainName).block();
+ }
+
+ /**
+ * Get the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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 the custom domain of one lifecycle application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String domainName, Context context) {
+ return getAsync(resourceGroupName, serviceName, appName, domainName, context).block();
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ 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 (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CustomDomainResourceInner domainResource = new CustomDomainResourceInner();
+ domainResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ domainResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ 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 (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CustomDomainResourceInner domainResource = new CustomDomainResourceInner();
+ domainResource.withProperties(properties);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ domainResource,
+ context);
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, domainName, properties)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, domainName, properties, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, domainName, properties).block();
+ }
+
+ /**
+ * Create or update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, domainName, properties, context).block();
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, 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 (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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 the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, 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 (appName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter appName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ context);
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String appName, String domainName) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, domainName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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 the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(
+ String resourceGroupName, String serviceName, String appName, String domainName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, domainName, context)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String appName, String domainName) {
+ deleteAsync(resourceGroupName, serviceName, appName, domainName).block();
+ }
+
+ /**
+ * Delete the custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName, String serviceName, String appName, String domainName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, appName, domainName, context).block();
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> patchWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ 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 (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CustomDomainResourceInner domainResource = new CustomDomainResourceInner();
+ domainResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .patch(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ domainResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> patchWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ 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 (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (properties != null) {
+ properties.validate();
+ }
+ CustomDomainResourceInner domainResource = new CustomDomainResourceInner();
+ domainResource.withProperties(properties);
+ return service
+ .patch(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ domainName,
+ domainResource,
+ context);
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono patchAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ return patchWithResponseAsync(resourceGroupName, serviceName, appName, domainName, properties)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono patchAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ Context context) {
+ return patchWithResponseAsync(resourceGroupName, serviceName, appName, domainName, properties, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner patch(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties) {
+ return patchAsync(resourceGroupName, serviceName, appName, domainName, properties).block();
+ }
+
+ /**
+ * Update custom domain of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 domainName The name of the custom domain resource.
+ * @param properties Custom domain of app resource payload.
+ * @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 resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainResourceInner patch(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String domainName,
+ CustomDomainProperties properties,
+ Context context) {
+ return patchAsync(resourceGroupName, serviceName, appName, domainName, properties, context).block();
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName) {
+ 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."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName, 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."));
+ }
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String appName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName, context),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName, String appName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName));
+ }
+
+ /**
+ * List the custom domains of one lifecycle application.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 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 collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String serviceName, String appName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName, context));
+ }
+
+ /**
+ * Check the resource name is 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 appName The name of the App resource.
+ * @param name Name 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 Mono> validateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String name) {
+ 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ CustomDomainValidatePayload validatePayload = new CustomDomainValidatePayload();
+ validatePayload.withName(name);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .validate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ validatePayload,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Check the resource name is 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 appName The name of the App resource.
+ * @param name Name 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> validateWithResponseAsync(
+ String resourceGroupName, String serviceName, String appName, String name, 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ CustomDomainValidatePayload validatePayload = new CustomDomainValidatePayload();
+ validatePayload.withName(name);
+ return service
+ .validate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ validatePayload,
+ context);
+ }
+
+ /**
+ * Check the resource name is 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 appName The name of the App resource.
+ * @param name Name 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 Mono validateAsync(
+ String resourceGroupName, String serviceName, String appName, String name) {
+ return validateWithResponseAsync(resourceGroupName, serviceName, appName, name)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Check the resource name is 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 appName The name of the App resource.
+ * @param name Name 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono validateAsync(
+ String resourceGroupName, String serviceName, String appName, String name, Context context) {
+ return validateWithResponseAsync(resourceGroupName, serviceName, appName, name, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Check the resource name is 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 appName The name of the App resource.
+ * @param name Name 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 CustomDomainValidateResultInner validate(
+ String resourceGroupName, String serviceName, String appName, String name) {
+ return validateAsync(resourceGroupName, serviceName, appName, name).block();
+ }
+
+ /**
+ * Check the resource name is 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 appName The name of the App resource.
+ * @param name Name 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainValidateResultInner validate(
+ String resourceGroupName, String serviceName, String appName, String name, Context context) {
+ return validateAsync(resourceGroupName, serviceName, appName, name, 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 collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * 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 collection compose of a custom domain resources list and a possible link for next page.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ return service
+ .listNext(nextLink, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/DeploymentsClient.java b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/DeploymentsClient.java
new file mode 100644
index 000000000000..47fed40a9026
--- /dev/null
+++ b/sdk/appplatform/mgmt/src/main/java/com/azure/resourcemanager/appplatform/fluent/DeploymentsClient.java
@@ -0,0 +1,2960 @@
+// 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.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+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.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.core.util.serializer.CollectionFormat;
+import com.azure.core.util.serializer.JacksonAdapter;
+import com.azure.resourcemanager.appplatform.AppPlatformManagementClient;
+import com.azure.resourcemanager.appplatform.fluent.inner.DeploymentResourceCollectionInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.DeploymentResourceInner;
+import com.azure.resourcemanager.appplatform.fluent.inner.LogFileUrlResponseInner;
+import com.azure.resourcemanager.appplatform.models.DeploymentResourceProperties;
+import java.nio.ByteBuffer;
+import java.util.List;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in Deployments. */
+public final class DeploymentsClient {
+ private final ClientLogger logger = new ClientLogger(DeploymentsClient.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final DeploymentsService service;
+
+ /** The service client containing this operation class. */
+ private final AppPlatformManagementClient client;
+
+ /**
+ * Initializes an instance of DeploymentsClient.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ public DeploymentsClient(AppPlatformManagementClient client) {
+ this.service =
+ RestProxy.create(DeploymentsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AppPlatformManagementClientDeployments to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AppPlatformManagemen")
+ private interface DeploymentsService {
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}")
+ @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("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}")
+ @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("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ @BodyParam("application/json") DeploymentResourceInner deploymentResource,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}")
+ @ExpectedResponses({200, 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("appName") String appName,
+ @PathParam("deploymentName") String deploymentName,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(
+ @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") DeploymentResourceInner deploymentResource,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments")
+ @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("appName") String appName,
+ @QueryParam("version") String version,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/deployments")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listClusterAllDeployments(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serviceName") String serviceName,
+ @QueryParam("version") String version,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}/start")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> start(
+ @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,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> stop(
+ @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,
+ Context context);
+
+ @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> restart(
+ @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,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring"
+ + "/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getLogFileUrl(
+ @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,
+ Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+
+ @Headers({"Accept: application/json", "Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listClusterAllDeploymentsNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, Context context);
+ }
+
+ /**
+ * Get a Deployment 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 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 a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ 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."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get a Deployment 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 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 a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(
+ 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."));
+ }
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ context);
+ }
+
+ /**
+ * Get a Deployment 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 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 a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get a Deployment 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 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 a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context) {
+ return getWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName, context)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get a Deployment 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 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 a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ return getAsync(resourceGroupName, serviceName, appName, deploymentName).block();
+ }
+
+ /**
+ * Get a Deployment 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 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 a Deployment and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner get(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context) {
+ return getAsync(resourceGroupName, serviceName, appName, deploymentName, context).block();
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ 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 (properties != null) {
+ properties.validate();
+ }
+ DeploymentResourceInner deploymentResource = new DeploymentResourceInner();
+ deploymentResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ deploymentResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ 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 (properties != null) {
+ properties.validate();
+ }
+ DeploymentResourceInner deploymentResource = new DeploymentResourceInner();
+ deploymentResource.withProperties(properties);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ deploymentResource,
+ context);
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, DeploymentResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName, properties);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), DeploymentResourceInner.class, DeploymentResourceInner.class);
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, DeploymentResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(
+ resourceGroupName, serviceName, appName, deploymentName, properties, context);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), DeploymentResourceInner.class, DeploymentResourceInner.class);
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DeploymentResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DeploymentResourceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties).block();
+ }
+
+ /**
+ * Create a new Deployment or update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner createOrUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context)
+ .block();
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ 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."));
+ }
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> deleteWithResponseAsync(
+ 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."));
+ }
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ context);
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName, context)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String serviceName, String appName, String deploymentName) {
+ deleteAsync(resourceGroupName, serviceName, appName, deploymentName).block();
+ }
+
+ /**
+ * Operation to delete a Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName, String serviceName, String appName, String deploymentName, Context context) {
+ deleteAsync(resourceGroupName, serviceName, appName, deploymentName, context).block();
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ 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 (properties != null) {
+ properties.validate();
+ }
+ DeploymentResourceInner deploymentResource = new DeploymentResourceInner();
+ deploymentResource.withProperties(properties);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ deploymentResource,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ 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 (properties != null) {
+ properties.validate();
+ }
+ DeploymentResourceInner deploymentResource = new DeploymentResourceInner();
+ deploymentResource.withProperties(properties);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ deploymentName,
+ deploymentResource,
+ context);
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, DeploymentResourceInner> beginUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName, properties);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), DeploymentResourceInner.class, DeploymentResourceInner.class);
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PollerFlux, DeploymentResourceInner> beginUpdateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context);
+ return this
+ .client
+ .getLroResultAsync(
+ mono, this.client.getHttpPipeline(), DeploymentResourceInner.class, DeploymentResourceInner.class);
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DeploymentResourceInner> beginUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties).getSyncPoller();
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DeploymentResourceInner> beginUpdate(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner update(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties) {
+ return updateAsync(resourceGroupName, serviceName, appName, deploymentName, properties).block();
+ }
+
+ /**
+ * Operation to update an exiting Deployment.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 properties Deployment resource properties payload.
+ * @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 deployment resource payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeploymentResourceInner update(
+ String resourceGroupName,
+ String serviceName,
+ String appName,
+ String deploymentName,
+ DeploymentResourceProperties properties,
+ Context context) {
+ return updateAsync(resourceGroupName, serviceName, appName, deploymentName, properties, context).block();
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 version Array of Get5ItemsItem.
+ * @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName, List version) {
+ 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."));
+ }
+ String versionConverted =
+ JacksonAdapter.createDefaultSerializerAdapter().serializeList(version, CollectionFormat.CSV);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ versionConverted,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 version Array of Get5ItemsItem.
+ * @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listSinglePageAsync(
+ String resourceGroupName, String serviceName, String appName, List version, 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."));
+ }
+ String versionConverted =
+ JacksonAdapter.createDefaultSerializerAdapter().serializeList(version, CollectionFormat.CSV);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ appName,
+ versionConverted,
+ 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 an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 version Array of Get5ItemsItem.
+ * @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String appName, List version) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName, version),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 version Array of Get5ItemsItem.
+ * @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(
+ String resourceGroupName, String serviceName, String appName, List version, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName, version, context),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync(String resourceGroupName, String serviceName, String appName) {
+ final List version = null;
+ final Context context = null;
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, serviceName, appName, version),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 version Array of Get5ItemsItem.
+ * @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String serviceName, String appName, List version) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName, version));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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 version Array of Get5ItemsItem.
+ * @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String serviceName, String appName, List version, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName, version, context));
+ }
+
+ /**
+ * Handles requests to list all resources in an App.
+ *
+ * @param resourceGroupName The name of the resource group that contains 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.
+ * @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String serviceName, String appName) {
+ final List version = null;
+ final Context context = null;
+ return new PagedIterable<>(listAsync(resourceGroupName, serviceName, appName, version));
+ }
+
+ /**
+ * List deployments for a certain 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 version Array of Get4ItemsItem.
+ * @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listClusterAllDeploymentsSinglePageAsync(
+ String resourceGroupName, String serviceName, List version) {
+ 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."));
+ }
+ String versionConverted =
+ JacksonAdapter.createDefaultSerializerAdapter().serializeList(version, CollectionFormat.CSV);
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listClusterAllDeployments(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ versionConverted,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * List deployments for a certain 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 version Array of Get4ItemsItem.
+ * @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> listClusterAllDeploymentsSinglePageAsync(
+ String resourceGroupName, String serviceName, List version, 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."));
+ }
+ String versionConverted =
+ JacksonAdapter.createDefaultSerializerAdapter().serializeList(version, CollectionFormat.CSV);
+ return service
+ .listClusterAllDeployments(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serviceName,
+ versionConverted,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List deployments for a certain 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 version Array of Get4ItemsItem.
+ * @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 App resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux