scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of applink service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the applink service API instance.
+ */
+ public ApplinkManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder.append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.applink")
+ .append("/")
+ .append(clientVersion);
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder.append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new ApplinkManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of AppLinks. It manages AppLink.
+ *
+ * @return Resource collection API of AppLinks.
+ */
+ public AppLinks appLinks() {
+ if (this.appLinks == null) {
+ this.appLinks = new AppLinksImpl(clientObject.getAppLinks(), this);
+ }
+ return appLinks;
+ }
+
+ /**
+ * Gets the resource collection API of AppLinkMembers. It manages AppLinkMember.
+ *
+ * @return Resource collection API of AppLinkMembers.
+ */
+ public AppLinkMembers appLinkMembers() {
+ if (this.appLinkMembers == null) {
+ this.appLinkMembers = new AppLinkMembersImpl(clientObject.getAppLinkMembers(), this);
+ }
+ return appLinkMembers;
+ }
+
+ /**
+ * Gets the resource collection API of UpgradeHistories.
+ *
+ * @return Resource collection API of UpgradeHistories.
+ */
+ public UpgradeHistories upgradeHistories() {
+ if (this.upgradeHistories == null) {
+ this.upgradeHistories = new UpgradeHistoriesImpl(clientObject.getUpgradeHistories(), this);
+ }
+ return upgradeHistories;
+ }
+
+ /**
+ * Gets the resource collection API of AvailableVersions.
+ *
+ * @return Resource collection API of AvailableVersions.
+ */
+ public AvailableVersions availableVersions() {
+ if (this.availableVersions == null) {
+ this.availableVersions = new AvailableVersionsImpl(clientObject.getAvailableVersions(), this);
+ }
+ return availableVersions;
+ }
+
+ /**
+ * Gets wrapped service client ApplinkManagementClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client ApplinkManagementClient.
+ */
+ public ApplinkManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/AppLinkMembersClient.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/AppLinkMembersClient.java
new file mode 100644
index 000000000000..bf93d2c5bdb9
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/AppLinkMembersClient.java
@@ -0,0 +1,266 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.applink.fluent.models.AppLinkMemberInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in AppLinkMembersClient.
+ */
+public interface AppLinkMembersClient {
+ /**
+ * Get an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an AppLinkMember along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String appLinkName, String appLinkMemberName,
+ Context context);
+
+ /**
+ * Get an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an AppLinkMember.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppLinkMemberInner get(String resourceGroupName, String appLinkName, String appLinkMemberName);
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppLinkMemberInner> beginCreateOrUpdate(String resourceGroupName,
+ String appLinkName, String appLinkMemberName, AppLinkMemberInner resource);
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppLinkMemberInner> beginCreateOrUpdate(String resourceGroupName,
+ String appLinkName, String appLinkMemberName, AppLinkMemberInner resource, Context context);
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppLinkMemberInner createOrUpdate(String resourceGroupName, String appLinkName, String appLinkMemberName,
+ AppLinkMemberInner resource);
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppLinkMemberInner createOrUpdate(String resourceGroupName, String appLinkName, String appLinkMemberName,
+ AppLinkMemberInner resource, Context context);
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppLinkMemberInner> beginUpdate(String resourceGroupName,
+ String appLinkName, String appLinkMemberName, AppLinkMemberInner properties);
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppLinkMemberInner> beginUpdate(String resourceGroupName,
+ String appLinkName, String appLinkMemberName, AppLinkMemberInner properties, Context context);
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppLinkMemberInner update(String resourceGroupName, String appLinkName, String appLinkMemberName,
+ AppLinkMemberInner properties);
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppLinkMemberInner update(String resourceGroupName, String appLinkName, String appLinkMemberName,
+ AppLinkMemberInner properties, Context context);
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String appLinkName,
+ String appLinkMemberName);
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, Context context);
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String appLinkName, String appLinkMemberName);
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String appLinkName, String appLinkMemberName, Context context);
+
+ /**
+ * List AppLinkMember resources by AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AppLinkMember list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAppLink(String resourceGroupName, String appLinkName);
+
+ /**
+ * List AppLinkMember resources by AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AppLinkMember list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAppLink(String resourceGroupName, String appLinkName, Context context);
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/AppLinksClient.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/AppLinksClient.java
new file mode 100644
index 000000000000..a7d42eb5a6f7
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/AppLinksClient.java
@@ -0,0 +1,266 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.applink.fluent.models.AppLinkInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in AppLinksClient.
+ */
+public interface AppLinksClient {
+ /**
+ * Get an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an AppLink along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String appLinkName,
+ Context context);
+
+ /**
+ * Get an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an AppLink.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppLinkInner getByResourceGroup(String resourceGroupName, String appLinkName);
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppLinkInner> beginCreateOrUpdate(String resourceGroupName, String appLinkName,
+ AppLinkInner resource);
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppLinkInner> beginCreateOrUpdate(String resourceGroupName, String appLinkName,
+ AppLinkInner resource, Context context);
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppLinkInner createOrUpdate(String resourceGroupName, String appLinkName, AppLinkInner resource);
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppLinkInner createOrUpdate(String resourceGroupName, String appLinkName, AppLinkInner resource, Context context);
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppLinkInner> beginUpdate(String resourceGroupName, String appLinkName,
+ AppLinkInner properties);
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AppLinkInner> beginUpdate(String resourceGroupName, String appLinkName,
+ AppLinkInner properties, Context context);
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppLinkInner update(String resourceGroupName, String appLinkName, AppLinkInner properties);
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AppLinkInner update(String resourceGroupName, String appLinkName, AppLinkInner properties, Context context);
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String appLinkName);
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String appLinkName, Context context);
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String appLinkName);
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String appLinkName, Context context);
+
+ /**
+ * List AppLink resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AppLink list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List AppLink resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AppLink list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List AppLink resources by subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AppLink list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List AppLink resources by subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AppLink list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/ApplinkManagementClient.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/ApplinkManagementClient.java
new file mode 100644
index 000000000000..9c94a231c682
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/ApplinkManagementClient.java
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for ApplinkManagementClient class.
+ */
+public interface ApplinkManagementClient {
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the AppLinksClient object to access its operations.
+ *
+ * @return the AppLinksClient object.
+ */
+ AppLinksClient getAppLinks();
+
+ /**
+ * Gets the AppLinkMembersClient object to access its operations.
+ *
+ * @return the AppLinkMembersClient object.
+ */
+ AppLinkMembersClient getAppLinkMembers();
+
+ /**
+ * Gets the UpgradeHistoriesClient object to access its operations.
+ *
+ * @return the UpgradeHistoriesClient object.
+ */
+ UpgradeHistoriesClient getUpgradeHistories();
+
+ /**
+ * Gets the AvailableVersionsClient object to access its operations.
+ *
+ * @return the AvailableVersionsClient object.
+ */
+ AvailableVersionsClient getAvailableVersions();
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/AvailableVersionsClient.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/AvailableVersionsClient.java
new file mode 100644
index 000000000000..91179c5992c9
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/AvailableVersionsClient.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.applink.fluent.models.AvailableVersionInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in AvailableVersionsClient.
+ */
+public interface AvailableVersionsClient {
+ /**
+ * List AvailableVersion resources by location.
+ *
+ * @param location The name of the Azure region.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AvailableVersion list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByLocation(String location);
+
+ /**
+ * List AvailableVersion resources by location.
+ *
+ * @param location The name of the Azure region.
+ * @param kubernetesVersion Kubernetes version to filter profiles.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AvailableVersion list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByLocation(String location, String kubernetesVersion, Context context);
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/OperationsClient.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/OperationsClient.java
new file mode 100644
index 000000000000..8fb47e974b19
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/OperationsClient.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.applink.fluent.models.OperationInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
+public interface OperationsClient {
+ /**
+ * List the operations for the provider.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List the operations for the provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/UpgradeHistoriesClient.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/UpgradeHistoriesClient.java
new file mode 100644
index 000000000000..f49e292b25ef
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/UpgradeHistoriesClient.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.applink.fluent.models.UpgradeHistoryInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in UpgradeHistoriesClient.
+ */
+public interface UpgradeHistoriesClient {
+ /**
+ * List UpgradeHistory resources by AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a UpgradeHistory list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAppLinkMember(String resourceGroupName, String appLinkName,
+ String appLinkMemberName);
+
+ /**
+ * List UpgradeHistory resources by AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a UpgradeHistory list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAppLinkMember(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, Context context);
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/AppLinkInner.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/AppLinkInner.java
new file mode 100644
index 000000000000..a7602a510f45
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/AppLinkInner.java
@@ -0,0 +1,210 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.applink.models.AppLinkProperties;
+import com.azure.resourcemanager.applink.models.ManagedServiceIdentity;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * AppLink resource.
+ */
+@Fluent
+public final class AppLinkInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private AppLinkProperties properties;
+
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of AppLinkInner class.
+ */
+ public AppLinkInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public AppLinkProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the AppLinkInner object itself.
+ */
+ public AppLinkInner withProperties(AppLinkProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the AppLinkInner object itself.
+ */
+ public AppLinkInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AppLinkInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AppLinkInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AppLinkInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AppLinkInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the AppLinkInner.
+ */
+ public static AppLinkInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AppLinkInner deserializedAppLinkInner = new AppLinkInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedAppLinkInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedAppLinkInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedAppLinkInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedAppLinkInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAppLinkInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedAppLinkInner.properties = AppLinkProperties.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedAppLinkInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedAppLinkInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAppLinkInner;
+ });
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/AppLinkMemberInner.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/AppLinkMemberInner.java
new file mode 100644
index 000000000000..a3060451f281
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/AppLinkMemberInner.java
@@ -0,0 +1,181 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.applink.models.AppLinkMemberProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * AppLink Member resource.
+ */
+@Fluent
+public final class AppLinkMemberInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private AppLinkMemberProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of AppLinkMemberInner class.
+ */
+ public AppLinkMemberInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public AppLinkMemberProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the AppLinkMemberInner object itself.
+ */
+ public AppLinkMemberInner withProperties(AppLinkMemberProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AppLinkMemberInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AppLinkMemberInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AppLinkMemberInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AppLinkMemberInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the AppLinkMemberInner.
+ */
+ public static AppLinkMemberInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AppLinkMemberInner deserializedAppLinkMemberInner = new AppLinkMemberInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedAppLinkMemberInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedAppLinkMemberInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedAppLinkMemberInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedAppLinkMemberInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAppLinkMemberInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedAppLinkMemberInner.properties = AppLinkMemberProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedAppLinkMemberInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAppLinkMemberInner;
+ });
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/AvailableVersionInner.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/AvailableVersionInner.java
new file mode 100644
index 000000000000..e71abc70862d
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/AvailableVersionInner.java
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.applink.models.AvailableVersionProperties;
+import java.io.IOException;
+
+/**
+ * AppLink available version resource.
+ */
+@Immutable
+public final class AvailableVersionInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private AvailableVersionProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of AvailableVersionInner class.
+ */
+ private AvailableVersionInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public AvailableVersionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AvailableVersionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AvailableVersionInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the AvailableVersionInner.
+ */
+ public static AvailableVersionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AvailableVersionInner deserializedAvailableVersionInner = new AvailableVersionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedAvailableVersionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedAvailableVersionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedAvailableVersionInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedAvailableVersionInner.properties = AvailableVersionProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedAvailableVersionInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAvailableVersionInner;
+ });
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/OperationInner.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..c7e1ae0b4282
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/OperationInner.java
@@ -0,0 +1,150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.applink.models.ActionType;
+import com.azure.resourcemanager.applink.models.OperationDisplay;
+import com.azure.resourcemanager.applink.models.Origin;
+import java.io.IOException;
+
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
+@Immutable
+public final class OperationInner implements JsonSerializable {
+ /*
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
+ */
+ private String name;
+
+ /*
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
+ * Resource Manager/control-plane operations.
+ */
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
+ */
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
+ */
+ private Origin origin;
+
+ /*
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ private ActionType actionType;
+
+ /**
+ * Creates an instance of OperationInner class.
+ */
+ private OperationInner() {
+ }
+
+ /**
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for Azure Resource Manager/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
+ *
+ * @return the origin value.
+ */
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("display", this.display);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the OperationInner.
+ */
+ public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationInner deserializedOperationInner = new OperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationInner.display = OperationDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = Origin.fromString(reader.getString());
+ } else if ("actionType".equals(fieldName)) {
+ deserializedOperationInner.actionType = ActionType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationInner;
+ });
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/UpgradeHistoryInner.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/UpgradeHistoryInner.java
new file mode 100644
index 000000000000..d3244cada92e
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/UpgradeHistoryInner.java
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.applink.models.UpgradeHistoryProperties;
+import java.io.IOException;
+
+/**
+ * AppLinkMember upgrade history.
+ */
+@Immutable
+public final class UpgradeHistoryInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private UpgradeHistoryProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of UpgradeHistoryInner class.
+ */
+ private UpgradeHistoryInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public UpgradeHistoryProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of UpgradeHistoryInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of UpgradeHistoryInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the UpgradeHistoryInner.
+ */
+ public static UpgradeHistoryInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ UpgradeHistoryInner deserializedUpgradeHistoryInner = new UpgradeHistoryInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedUpgradeHistoryInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedUpgradeHistoryInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedUpgradeHistoryInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedUpgradeHistoryInner.properties = UpgradeHistoryProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedUpgradeHistoryInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedUpgradeHistoryInner;
+ });
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/package-info.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/package-info.java
new file mode 100644
index 000000000000..9c763d471023
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/models/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the inner data models for ApplinkManagementClient.
+ * Microsoft.AppLink Resource Provider management API.
+ */
+package com.azure.resourcemanager.applink.fluent.models;
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/package-info.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/package-info.java
new file mode 100644
index 000000000000..2eeb27453cd8
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/fluent/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the service clients for ApplinkManagementClient.
+ * Microsoft.AppLink Resource Provider management API.
+ */
+package com.azure.resourcemanager.applink.fluent;
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkImpl.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkImpl.java
new file mode 100644
index 000000000000..f714278f48d6
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkImpl.java
@@ -0,0 +1,173 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.applink.fluent.models.AppLinkInner;
+import com.azure.resourcemanager.applink.models.AppLink;
+import com.azure.resourcemanager.applink.models.AppLinkProperties;
+import com.azure.resourcemanager.applink.models.ManagedServiceIdentity;
+import java.util.Collections;
+import java.util.Map;
+
+public final class AppLinkImpl implements AppLink, AppLink.Definition, AppLink.Update {
+ private AppLinkInner innerObject;
+
+ private final com.azure.resourcemanager.applink.ApplinkManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public AppLinkProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public AppLinkInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.applink.ApplinkManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String appLinkName;
+
+ public AppLinkImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public AppLink create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinks()
+ .createOrUpdate(resourceGroupName, appLinkName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public AppLink create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinks()
+ .createOrUpdate(resourceGroupName, appLinkName, this.innerModel(), context);
+ return this;
+ }
+
+ AppLinkImpl(String name, com.azure.resourcemanager.applink.ApplinkManager serviceManager) {
+ this.innerObject = new AppLinkInner();
+ this.serviceManager = serviceManager;
+ this.appLinkName = name;
+ }
+
+ public AppLinkImpl update() {
+ return this;
+ }
+
+ public AppLink apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinks()
+ .update(resourceGroupName, appLinkName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public AppLink apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinks()
+ .update(resourceGroupName, appLinkName, this.innerModel(), context);
+ return this;
+ }
+
+ AppLinkImpl(AppLinkInner innerObject, com.azure.resourcemanager.applink.ApplinkManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.appLinkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "appLinks");
+ }
+
+ public AppLink refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinks()
+ .getByResourceGroupWithResponse(resourceGroupName, appLinkName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AppLink refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinks()
+ .getByResourceGroupWithResponse(resourceGroupName, appLinkName, context)
+ .getValue();
+ return this;
+ }
+
+ public AppLinkImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public AppLinkImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public AppLinkImpl withTags(Map tags) {
+ this.innerModel().withTags(tags);
+ return this;
+ }
+
+ public AppLinkImpl withProperties(AppLinkProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public AppLinkImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkMemberImpl.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkMemberImpl.java
new file mode 100644
index 000000000000..3887a6626350
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkMemberImpl.java
@@ -0,0 +1,167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.applink.fluent.models.AppLinkMemberInner;
+import com.azure.resourcemanager.applink.models.AppLinkMember;
+import com.azure.resourcemanager.applink.models.AppLinkMemberProperties;
+import java.util.Collections;
+import java.util.Map;
+
+public final class AppLinkMemberImpl implements AppLinkMember, AppLinkMember.Definition, AppLinkMember.Update {
+ private AppLinkMemberInner innerObject;
+
+ private final com.azure.resourcemanager.applink.ApplinkManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public AppLinkMemberProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public AppLinkMemberInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.applink.ApplinkManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String appLinkName;
+
+ private String appLinkMemberName;
+
+ public AppLinkMemberImpl withExistingAppLink(String resourceGroupName, String appLinkName) {
+ this.resourceGroupName = resourceGroupName;
+ this.appLinkName = appLinkName;
+ return this;
+ }
+
+ public AppLinkMember create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinkMembers()
+ .createOrUpdate(resourceGroupName, appLinkName, appLinkMemberName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public AppLinkMember create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinkMembers()
+ .createOrUpdate(resourceGroupName, appLinkName, appLinkMemberName, this.innerModel(), context);
+ return this;
+ }
+
+ AppLinkMemberImpl(String name, com.azure.resourcemanager.applink.ApplinkManager serviceManager) {
+ this.innerObject = new AppLinkMemberInner();
+ this.serviceManager = serviceManager;
+ this.appLinkMemberName = name;
+ }
+
+ public AppLinkMemberImpl update() {
+ return this;
+ }
+
+ public AppLinkMember apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinkMembers()
+ .update(resourceGroupName, appLinkName, appLinkMemberName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public AppLinkMember apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinkMembers()
+ .update(resourceGroupName, appLinkName, appLinkMemberName, this.innerModel(), context);
+ return this;
+ }
+
+ AppLinkMemberImpl(AppLinkMemberInner innerObject, com.azure.resourcemanager.applink.ApplinkManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.appLinkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "appLinks");
+ this.appLinkMemberName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "appLinkMembers");
+ }
+
+ public AppLinkMember refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinkMembers()
+ .getWithResponse(resourceGroupName, appLinkName, appLinkMemberName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AppLinkMember refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getAppLinkMembers()
+ .getWithResponse(resourceGroupName, appLinkName, appLinkMemberName, context)
+ .getValue();
+ return this;
+ }
+
+ public AppLinkMemberImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public AppLinkMemberImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public AppLinkMemberImpl withTags(Map tags) {
+ this.innerModel().withTags(tags);
+ return this;
+ }
+
+ public AppLinkMemberImpl withProperties(AppLinkMemberProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkMembersClientImpl.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkMembersClientImpl.java
new file mode 100644
index 000000000000..ecca73e63e9e
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkMembersClientImpl.java
@@ -0,0 +1,974 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.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.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.applink.fluent.AppLinkMembersClient;
+import com.azure.resourcemanager.applink.fluent.models.AppLinkMemberInner;
+import com.azure.resourcemanager.applink.implementation.models.AppLinkMemberListResult;
+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 AppLinkMembersClient.
+ */
+public final class AppLinkMembersClientImpl implements AppLinkMembersClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final AppLinkMembersService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ApplinkManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AppLinkMembersClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AppLinkMembersClientImpl(ApplinkManagementClientImpl client) {
+ this.service
+ = RestProxy.create(AppLinkMembersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ApplinkManagementClientAppLinkMembers to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ApplinkManagementClientAppLinkMembers")
+ public interface AppLinkMembersService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}/appLinkMembers/{appLinkMemberName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @PathParam("appLinkMemberName") String appLinkMemberName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}/appLinkMembers/{appLinkMemberName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @PathParam("appLinkMemberName") String appLinkMemberName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}/appLinkMembers/{appLinkMemberName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @PathParam("appLinkMemberName") String appLinkMemberName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") AppLinkMemberInner resource,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}/appLinkMembers/{appLinkMemberName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @PathParam("appLinkMemberName") String appLinkMemberName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") AppLinkMemberInner resource,
+ Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}/appLinkMembers/{appLinkMemberName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @PathParam("appLinkMemberName") String appLinkMemberName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") AppLinkMemberInner properties,
+ Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}/appLinkMembers/{appLinkMemberName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @PathParam("appLinkMemberName") String appLinkMemberName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") AppLinkMemberInner properties,
+ Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}/appLinkMembers/{appLinkMemberName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @PathParam("appLinkMemberName") String appLinkMemberName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}/appLinkMembers/{appLinkMemberName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @PathParam("appLinkMemberName") String appLinkMemberName, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}/appLinkMembers")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByAppLink(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}/appLinkMembers")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByAppLinkSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByAppLinkNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByAppLinkNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 AppLinkMember along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String appLinkName,
+ String appLinkMemberName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, appLinkMemberName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 AppLinkMember on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String appLinkName, String appLinkMemberName) {
+ return getWithResponseAsync(resourceGroupName, appLinkName, appLinkMemberName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @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 AppLinkMember along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, Context context) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, appLinkName, appLinkMemberName, accept, context);
+ }
+
+ /**
+ * Get an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 AppLinkMember.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppLinkMemberInner get(String resourceGroupName, String appLinkName, String appLinkMemberName) {
+ return getWithResponse(resourceGroupName, appLinkName, appLinkMemberName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String appLinkName, String appLinkMemberName, AppLinkMemberInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, appLinkMemberName, contentType, accept,
+ resource, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, AppLinkMemberInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, appLinkMemberName, contentType, accept,
+ resource, Context.NONE);
+ }
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @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 appLink Member resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, AppLinkMemberInner resource, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, appLinkMemberName, contentType, accept,
+ resource, context);
+ }
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, AppLinkMemberInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String appLinkName, String appLinkMemberName, AppLinkMemberInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, appLinkName, appLinkMemberName, resource);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ AppLinkMemberInner.class, AppLinkMemberInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AppLinkMemberInner> beginCreateOrUpdate(String resourceGroupName,
+ String appLinkName, String appLinkMemberName, AppLinkMemberInner resource) {
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, appLinkName, appLinkMemberName, resource);
+ return this.client.getLroResult(response, AppLinkMemberInner.class,
+ AppLinkMemberInner.class, Context.NONE);
+ }
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AppLinkMemberInner> beginCreateOrUpdate(String resourceGroupName,
+ String appLinkName, String appLinkMemberName, AppLinkMemberInner resource, Context context) {
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, appLinkName, appLinkMemberName, resource, context);
+ return this.client.getLroResult(response, AppLinkMemberInner.class,
+ AppLinkMemberInner.class, context);
+ }
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, AppLinkMemberInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, appLinkName, appLinkMemberName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppLinkMemberInner createOrUpdate(String resourceGroupName, String appLinkName, String appLinkMemberName,
+ AppLinkMemberInner resource) {
+ return beginCreateOrUpdate(resourceGroupName, appLinkName, appLinkMemberName, resource).getFinalResult();
+ }
+
+ /**
+ * Create an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param resource Resource create parameters.
+ * @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 appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppLinkMemberInner createOrUpdate(String resourceGroupName, String appLinkName, String appLinkMemberName,
+ AppLinkMemberInner resource, Context context) {
+ return beginCreateOrUpdate(resourceGroupName, appLinkName, appLinkMemberName, resource, context)
+ .getFinalResult();
+ }
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, AppLinkMemberInner properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, appLinkMemberName, contentType, accept,
+ properties, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, AppLinkMemberInner properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, appLinkMemberName, contentType, accept,
+ properties, Context.NONE);
+ }
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @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 appLink Member resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, AppLinkMemberInner properties, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, appLinkMemberName, contentType, accept,
+ properties, context);
+ }
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, AppLinkMemberInner> beginUpdateAsync(String resourceGroupName,
+ String appLinkName, String appLinkMemberName, AppLinkMemberInner properties) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, appLinkName, appLinkMemberName, properties);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ AppLinkMemberInner.class, AppLinkMemberInner.class, this.client.getContext());
+ }
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AppLinkMemberInner> beginUpdate(String resourceGroupName,
+ String appLinkName, String appLinkMemberName, AppLinkMemberInner properties) {
+ Response response
+ = updateWithResponse(resourceGroupName, appLinkName, appLinkMemberName, properties);
+ return this.client.getLroResult(response, AppLinkMemberInner.class,
+ AppLinkMemberInner.class, Context.NONE);
+ }
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AppLinkMemberInner> beginUpdate(String resourceGroupName,
+ String appLinkName, String appLinkMemberName, AppLinkMemberInner properties, Context context) {
+ Response response
+ = updateWithResponse(resourceGroupName, appLinkName, appLinkMemberName, properties, context);
+ return this.client.getLroResult(response, AppLinkMemberInner.class,
+ AppLinkMemberInner.class, context);
+ }
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String appLinkName, String appLinkMemberName,
+ AppLinkMemberInner properties) {
+ return beginUpdateAsync(resourceGroupName, appLinkName, appLinkMemberName, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppLinkMemberInner update(String resourceGroupName, String appLinkName, String appLinkMemberName,
+ AppLinkMemberInner properties) {
+ return beginUpdate(resourceGroupName, appLinkName, appLinkMemberName, properties).getFinalResult();
+ }
+
+ /**
+ * Update an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param properties The resource properties to be updated.
+ * @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 appLink Member resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppLinkMemberInner update(String resourceGroupName, String appLinkName, String appLinkMemberName,
+ AppLinkMemberInner properties, Context context) {
+ return beginUpdate(resourceGroupName, appLinkName, appLinkMemberName, properties, context).getFinalResult();
+ }
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String appLinkName,
+ String appLinkMemberName) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, appLinkMemberName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String appLinkName,
+ String appLinkMemberName) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, appLinkMemberName, Context.NONE);
+ }
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, appLinkMemberName, context);
+ }
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String appLinkName,
+ String appLinkMemberName) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, appLinkName, appLinkMemberName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String appLinkName,
+ String appLinkMemberName) {
+ Response response = deleteWithResponse(resourceGroupName, appLinkName, appLinkMemberName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, Context context) {
+ Response response = deleteWithResponse(resourceGroupName, appLinkName, appLinkMemberName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String appLinkName, String appLinkMemberName) {
+ return beginDeleteAsync(resourceGroupName, appLinkName, appLinkMemberName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @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 appLinkName, String appLinkMemberName) {
+ beginDelete(resourceGroupName, appLinkName, appLinkMemberName).getFinalResult();
+ }
+
+ /**
+ * Delete an AppLinkMember.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param appLinkMemberName The name of the AppLinkMember.
+ * @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 appLinkName, String appLinkMemberName, Context context) {
+ beginDelete(resourceGroupName, appLinkName, appLinkMemberName, context).getFinalResult();
+ }
+
+ /**
+ * List AppLinkMember resources by AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLinkMember list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByAppLinkSinglePageAsync(String resourceGroupName,
+ String appLinkName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByAppLink(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List AppLinkMember resources by AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLinkMember list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByAppLinkAsync(String resourceGroupName, String appLinkName) {
+ return new PagedFlux<>(() -> listByAppLinkSinglePageAsync(resourceGroupName, appLinkName),
+ nextLink -> listByAppLinkNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List AppLinkMember resources by AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLinkMember list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByAppLinkSinglePage(String resourceGroupName, String appLinkName) {
+ final String accept = "application/json";
+ Response res
+ = service.listByAppLinkSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List AppLinkMember resources by AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @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 response of a AppLinkMember list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByAppLinkSinglePage(String resourceGroupName, String appLinkName,
+ Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByAppLinkSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List AppLinkMember resources by AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLinkMember list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByAppLink(String resourceGroupName, String appLinkName) {
+ return new PagedIterable<>(() -> listByAppLinkSinglePage(resourceGroupName, appLinkName),
+ nextLink -> listByAppLinkNextSinglePage(nextLink));
+ }
+
+ /**
+ * List AppLinkMember resources by AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @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 response of a AppLinkMember list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByAppLink(String resourceGroupName, String appLinkName,
+ Context context) {
+ return new PagedIterable<>(() -> listByAppLinkSinglePage(resourceGroupName, appLinkName, context),
+ nextLink -> listByAppLinkNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLinkMember list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByAppLinkNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByAppLinkNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLinkMember list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByAppLinkNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listByAppLinkNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 response of a AppLinkMember list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByAppLinkNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByAppLinkNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkMembersImpl.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkMembersImpl.java
new file mode 100644
index 000000000000..5fda65213409
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinkMembersImpl.java
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.applink.fluent.AppLinkMembersClient;
+import com.azure.resourcemanager.applink.fluent.models.AppLinkMemberInner;
+import com.azure.resourcemanager.applink.models.AppLinkMember;
+import com.azure.resourcemanager.applink.models.AppLinkMembers;
+
+public final class AppLinkMembersImpl implements AppLinkMembers {
+ private static final ClientLogger LOGGER = new ClientLogger(AppLinkMembersImpl.class);
+
+ private final AppLinkMembersClient innerClient;
+
+ private final com.azure.resourcemanager.applink.ApplinkManager serviceManager;
+
+ public AppLinkMembersImpl(AppLinkMembersClient innerClient,
+ com.azure.resourcemanager.applink.ApplinkManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName, String appLinkName,
+ String appLinkMemberName, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceGroupName, appLinkName, appLinkMemberName, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new AppLinkMemberImpl(inner.getValue(), this.manager()));
+ }
+
+ public AppLinkMember get(String resourceGroupName, String appLinkName, String appLinkMemberName) {
+ AppLinkMemberInner inner = this.serviceClient().get(resourceGroupName, appLinkName, appLinkMemberName);
+ if (inner != null) {
+ return new AppLinkMemberImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String appLinkName, String appLinkMemberName) {
+ this.serviceClient().delete(resourceGroupName, appLinkName, appLinkMemberName);
+ }
+
+ public void delete(String resourceGroupName, String appLinkName, String appLinkMemberName, Context context) {
+ this.serviceClient().delete(resourceGroupName, appLinkName, appLinkMemberName, context);
+ }
+
+ public PagedIterable listByAppLink(String resourceGroupName, String appLinkName) {
+ PagedIterable inner = this.serviceClient().listByAppLink(resourceGroupName, appLinkName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new AppLinkMemberImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByAppLink(String resourceGroupName, String appLinkName, Context context) {
+ PagedIterable inner
+ = this.serviceClient().listByAppLink(resourceGroupName, appLinkName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new AppLinkMemberImpl(inner1, this.manager()));
+ }
+
+ public AppLinkMember getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String appLinkName = ResourceManagerUtils.getValueFromIdByName(id, "appLinks");
+ if (appLinkName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinks'.", id)));
+ }
+ String appLinkMemberName = ResourceManagerUtils.getValueFromIdByName(id, "appLinkMembers");
+ if (appLinkMemberName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinkMembers'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, appLinkName, appLinkMemberName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String appLinkName = ResourceManagerUtils.getValueFromIdByName(id, "appLinks");
+ if (appLinkName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinks'.", id)));
+ }
+ String appLinkMemberName = ResourceManagerUtils.getValueFromIdByName(id, "appLinkMembers");
+ if (appLinkMemberName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinkMembers'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, appLinkName, appLinkMemberName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String appLinkName = ResourceManagerUtils.getValueFromIdByName(id, "appLinks");
+ if (appLinkName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinks'.", id)));
+ }
+ String appLinkMemberName = ResourceManagerUtils.getValueFromIdByName(id, "appLinkMembers");
+ if (appLinkMemberName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinkMembers'.", id)));
+ }
+ this.delete(resourceGroupName, appLinkName, appLinkMemberName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String appLinkName = ResourceManagerUtils.getValueFromIdByName(id, "appLinks");
+ if (appLinkName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinks'.", id)));
+ }
+ String appLinkMemberName = ResourceManagerUtils.getValueFromIdByName(id, "appLinkMembers");
+ if (appLinkMemberName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinkMembers'.", id)));
+ }
+ this.delete(resourceGroupName, appLinkName, appLinkMemberName, context);
+ }
+
+ private AppLinkMembersClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.applink.ApplinkManager manager() {
+ return this.serviceManager;
+ }
+
+ public AppLinkMemberImpl define(String name) {
+ return new AppLinkMemberImpl(name, this.manager());
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinksClientImpl.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinksClientImpl.java
new file mode 100644
index 000000000000..5d9d6bfc0073
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinksClientImpl.java
@@ -0,0 +1,1088 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.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.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.applink.fluent.AppLinksClient;
+import com.azure.resourcemanager.applink.fluent.models.AppLinkInner;
+import com.azure.resourcemanager.applink.implementation.models.AppLinkListResult;
+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 AppLinksClient.
+ */
+public final class AppLinksClientImpl implements AppLinksClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final AppLinksService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ApplinkManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AppLinksClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AppLinksClientImpl(ApplinkManagementClientImpl client) {
+ this.service = RestProxy.create(AppLinksService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ApplinkManagementClientAppLinks to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ApplinkManagementClientAppLinks")
+ public interface AppLinksService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AppLinkInner resource, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AppLinkInner resource, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AppLinkInner properties, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AppLinkInner properties, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks/{appLinkName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("appLinkName") String appLinkName,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/appLinks")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AppLink/appLinks")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AppLink/appLinks")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listBySubscriptionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 AppLink along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String appLinkName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 AppLink on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String appLinkName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, appLinkName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @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 AppLink along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName, String appLinkName,
+ Context context) {
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, accept, context);
+ }
+
+ /**
+ * Get an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 AppLink.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppLinkInner getByResourceGroup(String resourceGroupName, String appLinkName) {
+ return getByResourceGroupWithResponse(resourceGroupName, appLinkName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String appLinkName, AppLinkInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, contentType, accept, resource,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String appLinkName,
+ AppLinkInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, contentType, accept, resource,
+ Context.NONE);
+ }
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @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 appLink resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String appLinkName,
+ AppLinkInner resource, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, contentType, accept, resource, context);
+ }
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, AppLinkInner> beginCreateOrUpdateAsync(String resourceGroupName,
+ String appLinkName, AppLinkInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, appLinkName, resource);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ AppLinkInner.class, AppLinkInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AppLinkInner> beginCreateOrUpdate(String resourceGroupName,
+ String appLinkName, AppLinkInner resource) {
+ Response response = createOrUpdateWithResponse(resourceGroupName, appLinkName, resource);
+ return this.client.getLroResult(response, AppLinkInner.class, AppLinkInner.class,
+ Context.NONE);
+ }
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AppLinkInner> beginCreateOrUpdate(String resourceGroupName,
+ String appLinkName, AppLinkInner resource, Context context) {
+ Response response = createOrUpdateWithResponse(resourceGroupName, appLinkName, resource, context);
+ return this.client.getLroResult(response, AppLinkInner.class, AppLinkInner.class,
+ context);
+ }
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String appLinkName,
+ AppLinkInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, appLinkName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppLinkInner createOrUpdate(String resourceGroupName, String appLinkName, AppLinkInner resource) {
+ return beginCreateOrUpdate(resourceGroupName, appLinkName, resource).getFinalResult();
+ }
+
+ /**
+ * Create an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param resource Resource create parameters.
+ * @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 appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppLinkInner createOrUpdate(String resourceGroupName, String appLinkName, AppLinkInner resource,
+ Context context) {
+ return beginCreateOrUpdate(resourceGroupName, appLinkName, resource, context).getFinalResult();
+ }
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String appLinkName,
+ AppLinkInner properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, contentType, accept, properties, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String appLinkName,
+ AppLinkInner properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, contentType, accept, properties,
+ Context.NONE);
+ }
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @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 appLink resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String appLinkName,
+ AppLinkInner properties, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, contentType, accept, properties, context);
+ }
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, AppLinkInner> beginUpdateAsync(String resourceGroupName,
+ String appLinkName, AppLinkInner properties) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, appLinkName, properties);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ AppLinkInner.class, AppLinkInner.class, this.client.getContext());
+ }
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AppLinkInner> beginUpdate(String resourceGroupName, String appLinkName,
+ AppLinkInner properties) {
+ Response response = updateWithResponse(resourceGroupName, appLinkName, properties);
+ return this.client.getLroResult(response, AppLinkInner.class, AppLinkInner.class,
+ Context.NONE);
+ }
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AppLinkInner> beginUpdate(String resourceGroupName, String appLinkName,
+ AppLinkInner properties, Context context) {
+ Response response = updateWithResponse(resourceGroupName, appLinkName, properties, context);
+ return this.client.getLroResult(response, AppLinkInner.class, AppLinkInner.class,
+ context);
+ }
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String appLinkName, AppLinkInner properties) {
+ return beginUpdateAsync(resourceGroupName, appLinkName, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppLinkInner update(String resourceGroupName, String appLinkName, AppLinkInner properties) {
+ return beginUpdate(resourceGroupName, appLinkName, properties).getFinalResult();
+ }
+
+ /**
+ * Update an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param properties The resource properties to be updated.
+ * @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 appLink resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AppLinkInner update(String resourceGroupName, String appLinkName, AppLinkInner properties, Context context) {
+ return beginUpdate(resourceGroupName, appLinkName, properties, context).getFinalResult();
+ }
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String appLinkName) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String appLinkName) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, Context.NONE);
+ }
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String appLinkName, Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, appLinkName, context);
+ }
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String appLinkName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, appLinkName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String appLinkName) {
+ Response response = deleteWithResponse(resourceGroupName, appLinkName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String appLinkName,
+ Context context) {
+ Response response = deleteWithResponse(resourceGroupName, appLinkName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String appLinkName) {
+ return beginDeleteAsync(resourceGroupName, appLinkName).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @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 appLinkName) {
+ beginDelete(resourceGroupName, appLinkName).getFinalResult();
+ }
+
+ /**
+ * Delete an AppLink.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appLinkName The name of the AppLink.
+ * @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 appLinkName, Context context) {
+ beginDelete(resourceGroupName, appLinkName, context).getFinalResult();
+ }
+
+ /**
+ * List AppLink resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLink list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List AppLink resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLink list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List AppLink resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLink list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) {
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List AppLink resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 response of a AppLink list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) {
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List AppLink resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLink list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink));
+ }
+
+ /**
+ * List AppLink resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 response of a AppLink list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * List AppLink resources by subscription.
+ *
+ * @throws 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 response of a AppLink list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List AppLink resources by subscription.
+ *
+ * @throws 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 response of a AppLink list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List AppLink resources by subscription.
+ *
+ * @throws 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 response of a AppLink list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage() {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List AppLink resources by subscription.
+ *
+ * @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 response of a AppLink list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(Context context) {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List AppLink resources by subscription.
+ *
+ * @throws 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 response of a AppLink list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink));
+ }
+
+ /**
+ * List AppLink resources by subscription.
+ *
+ * @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 response of a AppLink list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(() -> listSinglePage(context),
+ nextLink -> listBySubscriptionNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLink list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLink list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 response of a AppLink list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLink list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AppLink list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 response of a AppLink list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinksImpl.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinksImpl.java
new file mode 100644
index 000000000000..bd077a74ae0f
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AppLinksImpl.java
@@ -0,0 +1,141 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.applink.fluent.AppLinksClient;
+import com.azure.resourcemanager.applink.fluent.models.AppLinkInner;
+import com.azure.resourcemanager.applink.models.AppLink;
+import com.azure.resourcemanager.applink.models.AppLinks;
+
+public final class AppLinksImpl implements AppLinks {
+ private static final ClientLogger LOGGER = new ClientLogger(AppLinksImpl.class);
+
+ private final AppLinksClient innerClient;
+
+ private final com.azure.resourcemanager.applink.ApplinkManager serviceManager;
+
+ public AppLinksImpl(AppLinksClient innerClient, com.azure.resourcemanager.applink.ApplinkManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getByResourceGroupWithResponse(String resourceGroupName, String appLinkName,
+ Context context) {
+ Response inner
+ = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, appLinkName, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new AppLinkImpl(inner.getValue(), this.manager()));
+ }
+
+ public AppLink getByResourceGroup(String resourceGroupName, String appLinkName) {
+ AppLinkInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, appLinkName);
+ if (inner != null) {
+ return new AppLinkImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String appLinkName) {
+ this.serviceClient().delete(resourceGroupName, appLinkName);
+ }
+
+ public void delete(String resourceGroupName, String appLinkName, Context context) {
+ this.serviceClient().delete(resourceGroupName, appLinkName, context);
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new AppLinkImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new AppLinkImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new AppLinkImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new AppLinkImpl(inner1, this.manager()));
+ }
+
+ public AppLink getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String appLinkName = ResourceManagerUtils.getValueFromIdByName(id, "appLinks");
+ if (appLinkName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinks'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, appLinkName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String appLinkName = ResourceManagerUtils.getValueFromIdByName(id, "appLinks");
+ if (appLinkName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinks'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, appLinkName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String appLinkName = ResourceManagerUtils.getValueFromIdByName(id, "appLinks");
+ if (appLinkName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinks'.", id)));
+ }
+ this.delete(resourceGroupName, appLinkName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String appLinkName = ResourceManagerUtils.getValueFromIdByName(id, "appLinks");
+ if (appLinkName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'appLinks'.", id)));
+ }
+ this.delete(resourceGroupName, appLinkName, context);
+ }
+
+ private AppLinksClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.applink.ApplinkManager manager() {
+ return this.serviceManager;
+ }
+
+ public AppLinkImpl define(String name) {
+ return new AppLinkImpl(name, this.manager());
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/ApplinkManagementClientBuilder.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/ApplinkManagementClientBuilder.java
new file mode 100644
index 000000000000..8e9b6baf9692
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/ApplinkManagementClientBuilder.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/**
+ * A builder for creating a new instance of the ApplinkManagementClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { ApplinkManagementClientImpl.class })
+public final class ApplinkManagementClientBuilder {
+ /*
+ * Service host
+ */
+ private String endpoint;
+
+ /**
+ * Sets Service host.
+ *
+ * @param endpoint the endpoint value.
+ * @return the ApplinkManagementClientBuilder.
+ */
+ public ApplinkManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription. The value must be an UUID.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the ApplinkManagementClientBuilder.
+ */
+ public ApplinkManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the ApplinkManagementClientBuilder.
+ */
+ public ApplinkManagementClientBuilder 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 ApplinkManagementClientBuilder.
+ */
+ public ApplinkManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the ApplinkManagementClientBuilder.
+ */
+ public ApplinkManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the ApplinkManagementClientBuilder.
+ */
+ public ApplinkManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of ApplinkManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of ApplinkManagementClientImpl.
+ */
+ public ApplinkManagementClientImpl buildClient() {
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline = (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ ApplinkManagementClientImpl client = new ApplinkManagementClientImpl(localPipeline, localSerializerAdapter,
+ localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId);
+ return client;
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/ApplinkManagementClientImpl.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/ApplinkManagementClientImpl.java
new file mode 100644
index 000000000000..b50238d0fafc
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/ApplinkManagementClientImpl.java
@@ -0,0 +1,372 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.management.polling.SyncPollerFactory;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.applink.fluent.AppLinkMembersClient;
+import com.azure.resourcemanager.applink.fluent.AppLinksClient;
+import com.azure.resourcemanager.applink.fluent.ApplinkManagementClient;
+import com.azure.resourcemanager.applink.fluent.AvailableVersionsClient;
+import com.azure.resourcemanager.applink.fluent.OperationsClient;
+import com.azure.resourcemanager.applink.fluent.UpgradeHistoriesClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * Initializes a new instance of the ApplinkManagementClientImpl type.
+ */
+@ServiceClient(builder = ApplinkManagementClientBuilder.class)
+public final class ApplinkManagementClientImpl implements ApplinkManagementClient {
+ /**
+ * Service host.
+ */
+ private final String endpoint;
+
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /**
+ * Version parameter.
+ */
+ private final String apiVersion;
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /**
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * 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 serializer to serialize an object into a string.
+ */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /**
+ * The default poll interval for long-running operation.
+ */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /**
+ * 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 AppLinksClient object to access its operations.
+ */
+ private final AppLinksClient appLinks;
+
+ /**
+ * Gets the AppLinksClient object to access its operations.
+ *
+ * @return the AppLinksClient object.
+ */
+ public AppLinksClient getAppLinks() {
+ return this.appLinks;
+ }
+
+ /**
+ * The AppLinkMembersClient object to access its operations.
+ */
+ private final AppLinkMembersClient appLinkMembers;
+
+ /**
+ * Gets the AppLinkMembersClient object to access its operations.
+ *
+ * @return the AppLinkMembersClient object.
+ */
+ public AppLinkMembersClient getAppLinkMembers() {
+ return this.appLinkMembers;
+ }
+
+ /**
+ * The UpgradeHistoriesClient object to access its operations.
+ */
+ private final UpgradeHistoriesClient upgradeHistories;
+
+ /**
+ * Gets the UpgradeHistoriesClient object to access its operations.
+ *
+ * @return the UpgradeHistoriesClient object.
+ */
+ public UpgradeHistoriesClient getUpgradeHistories() {
+ return this.upgradeHistories;
+ }
+
+ /**
+ * The AvailableVersionsClient object to access its operations.
+ */
+ private final AvailableVersionsClient availableVersions;
+
+ /**
+ * Gets the AvailableVersionsClient object to access its operations.
+ *
+ * @return the AvailableVersionsClient object.
+ */
+ public AvailableVersionsClient getAvailableVersions() {
+ return this.availableVersions;
+ }
+
+ /**
+ * Initializes an instance of ApplinkManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param endpoint Service host.
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
+ */
+ ApplinkManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.endpoint = endpoint;
+ this.subscriptionId = subscriptionId;
+ this.apiVersion = "2025-08-01-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.appLinks = new AppLinksClientImpl(this);
+ this.appLinkMembers = new AppLinkMembersClientImpl(this);
+ this.upgradeHistories = new UpgradeHistoriesClientImpl(this);
+ this.availableVersions = new AvailableVersionsClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ return CoreUtils.mergeContexts(this.getContext(), context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param httpPipeline the http pipeline.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return poller flux for poll result and final result.
+ */
+ public PollerFlux, U> getLroResult(Mono>> activationResponse,
+ HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
+ return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, activationResponse, context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return SyncPoller for poll result and final result.
+ */
+ public SyncPoller, U> getLroResult(Response activationResponse,
+ Type pollResultType, Type finalResultType, Context context) {
+ return SyncPollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, () -> activationResponse, context);
+ }
+
+ /**
+ * Gets the final result, or an error, based on last async poll response.
+ *
+ * @param response the last async poll response.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return the final result, or an error.
+ */
+ public Mono getLroFinalResultOrError(AsyncPollResponse, U> response) {
+ if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) {
+ String errorMessage;
+ ManagementError managementError = null;
+ HttpResponse errorResponse = null;
+ PollResult.Error lroError = response.getValue().getError();
+ if (lroError != null) {
+ errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
+ lroError.getResponseBody());
+
+ errorMessage = response.getValue().getError().getMessage();
+ String errorBody = response.getValue().getError().getResponseBody();
+ if (errorBody != null) {
+ // try to deserialize error body to ManagementError
+ try {
+ managementError = this.getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ if (managementError.getCode() == null || managementError.getMessage() == null) {
+ managementError = null;
+ }
+ } catch (IOException | RuntimeException ioe) {
+ LOGGER.logThrowableAsWarning(ioe);
+ }
+ }
+ } else {
+ // fallback to default error message
+ errorMessage = "Long running operation failed.";
+ }
+ if (managementError == null) {
+ // fallback to default ManagementError
+ managementError = new ManagementError(response.getStatus().toString(), errorMessage);
+ }
+ return Mono.error(new ManagementException(errorMessage, errorResponse, managementError));
+ } else {
+ return response.getFinalResult();
+ }
+ }
+
+ private static final class HttpResponseImpl extends HttpResponse {
+ private final int statusCode;
+
+ private final byte[] responseBody;
+
+ private final HttpHeaders httpHeaders;
+
+ HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) {
+ super(null);
+ this.statusCode = statusCode;
+ this.httpHeaders = httpHeaders;
+ this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8);
+ }
+
+ public int getStatusCode() {
+ return statusCode;
+ }
+
+ public String getHeaderValue(String s) {
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
+ }
+
+ public HttpHeaders getHeaders() {
+ return httpHeaders;
+ }
+
+ public Flux getBody() {
+ return Flux.just(ByteBuffer.wrap(responseBody));
+ }
+
+ public Mono getBodyAsByteArray() {
+ return Mono.just(responseBody);
+ }
+
+ public Mono getBodyAsString() {
+ return Mono.just(new String(responseBody, StandardCharsets.UTF_8));
+ }
+
+ public Mono getBodyAsString(Charset charset) {
+ return Mono.just(new String(responseBody, charset));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApplinkManagementClientImpl.class);
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AvailableVersionImpl.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AvailableVersionImpl.java
new file mode 100644
index 000000000000..84eb2d1c0fa2
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AvailableVersionImpl.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.applink.fluent.models.AvailableVersionInner;
+import com.azure.resourcemanager.applink.models.AvailableVersion;
+import com.azure.resourcemanager.applink.models.AvailableVersionProperties;
+
+public final class AvailableVersionImpl implements AvailableVersion {
+ private AvailableVersionInner innerObject;
+
+ private final com.azure.resourcemanager.applink.ApplinkManager serviceManager;
+
+ AvailableVersionImpl(AvailableVersionInner innerObject,
+ com.azure.resourcemanager.applink.ApplinkManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public AvailableVersionProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public AvailableVersionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.applink.ApplinkManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AvailableVersionsClientImpl.java b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AvailableVersionsClientImpl.java
new file mode 100644
index 000000000000..0d27f6d3952b
--- /dev/null
+++ b/sdk/applink/azure-resourcemanager-applink/src/main/java/com/azure/resourcemanager/applink/implementation/AvailableVersionsClientImpl.java
@@ -0,0 +1,286 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.applink.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.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.resourcemanager.applink.fluent.AvailableVersionsClient;
+import com.azure.resourcemanager.applink.fluent.models.AvailableVersionInner;
+import com.azure.resourcemanager.applink.implementation.models.AvailableVersionListResult;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in AvailableVersionsClient.
+ */
+public final class AvailableVersionsClientImpl implements AvailableVersionsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final AvailableVersionsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ApplinkManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AvailableVersionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AvailableVersionsClientImpl(ApplinkManagementClientImpl client) {
+ this.service
+ = RestProxy.create(AvailableVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ApplinkManagementClientAvailableVersions to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ApplinkManagementClientAvailableVersions")
+ public interface AvailableVersionsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AppLink/locations/{location}/availableVersions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByLocation(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @QueryParam("kubernetesVersion") String kubernetesVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AppLink/locations/{location}/availableVersions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByLocationSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @QueryParam("kubernetesVersion") String kubernetesVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByLocationNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByLocationNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List AvailableVersion resources by location.
+ *
+ * @param location The name of the Azure region.
+ * @param kubernetesVersion Kubernetes version to filter profiles.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 response of a AvailableVersion list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono