diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 2e468419a053..4e96f69368eb 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -300,6 +300,7 @@ com.azure.resourcemanager:azure-resourcemanager-maps;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-botservice;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-recoveryservicesbackup;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;1.0.0;1.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-webpubsub;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
# version. Unreleased dependencies are only valid for dependency versions.
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/CHANGELOG.md b/sdk/webpubsub/azure-resourcemanager-webpubsub/CHANGELOG.md
new file mode 100644
index 000000000000..30fef4abb963
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-06-21)
+
+- Azure Resource Manager WebPubSub client library for Java. This package contains Microsoft Azure SDK for WebPubSub Management SDK. REST API for Azure WebPubSub Service. Package tag package-2021-06-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/README.md b/sdk/webpubsub/azure-resourcemanager-webpubsub/README.md
new file mode 100644
index 000000000000..842ab5be1580
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/README.md
@@ -0,0 +1,101 @@
+# Azure Resource Manager WebPubSub client library for Java
+
+Azure Resource Manager WebPubSub client library for Java.
+
+This package contains Microsoft Azure SDK for WebPubSub Management SDK. REST API for Azure WebPubSub Service. Package tag package-2021-06-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-webpubsub;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-webpubsub
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+WebPubSubManager manager = WebPubSubManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/pom.xml b/sdk/webpubsub/azure-resourcemanager-webpubsub/pom.xml
new file mode 100644
index 000000000000..0fa366b094a0
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/pom.xml
@@ -0,0 +1,86 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-webpubsub
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for WebPubSub Management
+ This package contains Microsoft Azure SDK for WebPubSub Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure WebPubSub Service. Package tag package-2021-06-01-preview.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+
+ com.azure
+ azure-core
+ 1.17.0
+
+
+ com.azure
+ azure-core-management
+ 1.3.0
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+
+ java.method.addedToInterface
+
+
+ true
+ .*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
+
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/WebPubSubManager.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/WebPubSubManager.java
new file mode 100644
index 000000000000..22b9b86989dd
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/WebPubSubManager.java
@@ -0,0 +1,292 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.fluent.WebPubSubManagementClient;
+import com.azure.resourcemanager.webpubsub.implementation.OperationsImpl;
+import com.azure.resourcemanager.webpubsub.implementation.UsagesImpl;
+import com.azure.resourcemanager.webpubsub.implementation.WebPubSubManagementClientBuilder;
+import com.azure.resourcemanager.webpubsub.implementation.WebPubSubPrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.webpubsub.implementation.WebPubSubPrivateLinkResourcesImpl;
+import com.azure.resourcemanager.webpubsub.implementation.WebPubSubSharedPrivateLinkResourcesImpl;
+import com.azure.resourcemanager.webpubsub.implementation.WebPubSubsImpl;
+import com.azure.resourcemanager.webpubsub.models.Operations;
+import com.azure.resourcemanager.webpubsub.models.Usages;
+import com.azure.resourcemanager.webpubsub.models.WebPubSubPrivateEndpointConnections;
+import com.azure.resourcemanager.webpubsub.models.WebPubSubPrivateLinkResources;
+import com.azure.resourcemanager.webpubsub.models.WebPubSubSharedPrivateLinkResources;
+import com.azure.resourcemanager.webpubsub.models.WebPubSubs;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** Entry point to WebPubSubManager. REST API for Azure WebPubSub Service. */
+public final class WebPubSubManager {
+ private Operations operations;
+
+ private WebPubSubs webPubSubs;
+
+ private Usages usages;
+
+ private WebPubSubPrivateEndpointConnections webPubSubPrivateEndpointConnections;
+
+ private WebPubSubPrivateLinkResources webPubSubPrivateLinkResources;
+
+ private WebPubSubSharedPrivateLinkResources webPubSubSharedPrivateLinkResources;
+
+ private final WebPubSubManagementClient clientObject;
+
+ private WebPubSubManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new WebPubSubManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of WebPubSub service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the WebPubSub service API instance.
+ */
+ public static WebPubSubManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create WebPubSubManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new WebPubSubManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private final ClientLogger logger = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of WebPubSub service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the WebPubSub service API instance.
+ */
+ public WebPubSubManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.webpubsub")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.addAll(this.policies);
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new WebPubSubManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of WebPubSubs. */
+ public WebPubSubs webPubSubs() {
+ if (this.webPubSubs == null) {
+ this.webPubSubs = new WebPubSubsImpl(clientObject.getWebPubSubs(), this);
+ }
+ return webPubSubs;
+ }
+
+ /** @return Resource collection API of Usages. */
+ public Usages usages() {
+ if (this.usages == null) {
+ this.usages = new UsagesImpl(clientObject.getUsages(), this);
+ }
+ return usages;
+ }
+
+ /** @return Resource collection API of WebPubSubPrivateEndpointConnections. */
+ public WebPubSubPrivateEndpointConnections webPubSubPrivateEndpointConnections() {
+ if (this.webPubSubPrivateEndpointConnections == null) {
+ this.webPubSubPrivateEndpointConnections =
+ new WebPubSubPrivateEndpointConnectionsImpl(
+ clientObject.getWebPubSubPrivateEndpointConnections(), this);
+ }
+ return webPubSubPrivateEndpointConnections;
+ }
+
+ /** @return Resource collection API of WebPubSubPrivateLinkResources. */
+ public WebPubSubPrivateLinkResources webPubSubPrivateLinkResources() {
+ if (this.webPubSubPrivateLinkResources == null) {
+ this.webPubSubPrivateLinkResources =
+ new WebPubSubPrivateLinkResourcesImpl(clientObject.getWebPubSubPrivateLinkResources(), this);
+ }
+ return webPubSubPrivateLinkResources;
+ }
+
+ /** @return Resource collection API of WebPubSubSharedPrivateLinkResources. */
+ public WebPubSubSharedPrivateLinkResources webPubSubSharedPrivateLinkResources() {
+ if (this.webPubSubSharedPrivateLinkResources == null) {
+ this.webPubSubSharedPrivateLinkResources =
+ new WebPubSubSharedPrivateLinkResourcesImpl(
+ clientObject.getWebPubSubSharedPrivateLinkResources(), this);
+ }
+ return webPubSubSharedPrivateLinkResources;
+ }
+
+ /**
+ * @return Wrapped service client WebPubSubManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ */
+ public WebPubSubManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/OperationsClient.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/OperationsClient.java
new file mode 100644
index 000000000000..2bf28393f266
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.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.webpubsub.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available REST API operations of the Microsoft.SignalRService 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 result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.SignalRService 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 result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/UsagesClient.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/UsagesClient.java
new file mode 100644
index 000000000000..24d05754f932
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/UsagesClient.java
@@ -0,0 +1,39 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.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.webpubsub.fluent.models.SignalRServiceUsageInner;
+
+/** An instance of this class provides access to all the operations defined in UsagesClient. */
+public interface UsagesClient {
+ /**
+ * List resource usage quotas by location.
+ *
+ * @param location the location like "eastus".
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of the resource usages and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location);
+
+ /**
+ * List resource usage quotas by location.
+ *
+ * @param location the location like "eastus".
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of the resource usages and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location, Context context);
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubManagementClient.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubManagementClient.java
new file mode 100644
index 000000000000..0f8b665fe69f
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubManagementClient.java
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for WebPubSubManagementClient class. */
+public interface WebPubSubManagementClient {
+ /**
+ * Gets Gets subscription Id which uniquely identify the Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * 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 WebPubSubsClient object to access its operations.
+ *
+ * @return the WebPubSubsClient object.
+ */
+ WebPubSubsClient getWebPubSubs();
+
+ /**
+ * Gets the UsagesClient object to access its operations.
+ *
+ * @return the UsagesClient object.
+ */
+ UsagesClient getUsages();
+
+ /**
+ * Gets the WebPubSubPrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the WebPubSubPrivateEndpointConnectionsClient object.
+ */
+ WebPubSubPrivateEndpointConnectionsClient getWebPubSubPrivateEndpointConnections();
+
+ /**
+ * Gets the WebPubSubPrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the WebPubSubPrivateLinkResourcesClient object.
+ */
+ WebPubSubPrivateLinkResourcesClient getWebPubSubPrivateLinkResources();
+
+ /**
+ * Gets the WebPubSubSharedPrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the WebPubSubSharedPrivateLinkResourcesClient object.
+ */
+ WebPubSubSharedPrivateLinkResourcesClient getWebPubSubSharedPrivateLinkResources();
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubPrivateEndpointConnectionsClient.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubPrivateEndpointConnectionsClient.java
new file mode 100644
index 000000000000..f75def6edb56
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubPrivateEndpointConnectionsClient.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.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.webpubsub.fluent.models.PrivateEndpointConnectionInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in WebPubSubPrivateEndpointConnectionsClient.
+ */
+public interface WebPubSubPrivateEndpointConnectionsClient {
+ /**
+ * List private endpoint connections.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of private endpoint connections.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName);
+
+ /**
+ * List private endpoint connections.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of private endpoint connections.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Get the specified private endpoint connection.
+ *
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(
+ String privateEndpointConnectionName, String resourceGroupName, String resourceName);
+
+ /**
+ * Get the specified private endpoint connection.
+ *
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Update the state of specified private endpoint connection.
+ *
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters The resource of private endpoint and its properties.
+ * @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 private endpoint connection to an azure resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner update(
+ String privateEndpointConnectionName,
+ String resourceGroupName,
+ String resourceName,
+ PrivateEndpointConnectionInner parameters);
+
+ /**
+ * Update the state of specified private endpoint connection.
+ *
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters The resource of private endpoint and its properties.
+ * @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 private endpoint connection to an azure resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String privateEndpointConnectionName,
+ String resourceGroupName,
+ String resourceName,
+ PrivateEndpointConnectionInner parameters,
+ Context context);
+
+ /**
+ * Delete the specified private endpoint connection.
+ *
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String privateEndpointConnectionName, String resourceGroupName, String resourceName);
+
+ /**
+ * Delete the specified private endpoint connection.
+ *
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Delete the specified private endpoint connection.
+ *
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String privateEndpointConnectionName, String resourceGroupName, String resourceName);
+
+ /**
+ * Delete the specified private endpoint connection.
+ *
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context);
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubPrivateLinkResourcesClient.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubPrivateLinkResourcesClient.java
new file mode 100644
index 000000000000..fcfe02f01c62
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubPrivateLinkResourcesClient.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.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.webpubsub.fluent.models.PrivateLinkResourceInner;
+
+/** An instance of this class provides access to all the operations defined in WebPubSubPrivateLinkResourcesClient. */
+public interface WebPubSubPrivateLinkResourcesClient {
+ /**
+ * Get the private link resources that need to be created for a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a resource.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName);
+
+ /**
+ * Get the private link resources that need to be created for a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a resource.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName, Context context);
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubSharedPrivateLinkResourcesClient.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubSharedPrivateLinkResourcesClient.java
new file mode 100644
index 000000000000..32f0c55888fd
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubSharedPrivateLinkResourcesClient.java
@@ -0,0 +1,227 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.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.webpubsub.fluent.models.SharedPrivateLinkResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in WebPubSubSharedPrivateLinkResourcesClient.
+ */
+public interface WebPubSubSharedPrivateLinkResourcesClient {
+ /**
+ * List shared private link resources.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of shared private link resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName);
+
+ /**
+ * List shared private link resources.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of shared private link resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Get the specified shared private link resource.
+ *
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified shared private link resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SharedPrivateLinkResourceInner get(
+ String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName);
+
+ /**
+ * Get the specified shared private link resource.
+ *
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified shared private link resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Create or update a shared private link resource.
+ *
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters The shared private link resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a Shared Private Link Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate(
+ String sharedPrivateLinkResourceName,
+ String resourceGroupName,
+ String resourceName,
+ SharedPrivateLinkResourceInner parameters);
+
+ /**
+ * Create or update a shared private link resource.
+ *
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters The shared private link resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a Shared Private Link Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate(
+ String sharedPrivateLinkResourceName,
+ String resourceGroupName,
+ String resourceName,
+ SharedPrivateLinkResourceInner parameters,
+ Context context);
+
+ /**
+ * Create or update a shared private link resource.
+ *
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters The shared private link resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a Shared Private Link Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SharedPrivateLinkResourceInner createOrUpdate(
+ String sharedPrivateLinkResourceName,
+ String resourceGroupName,
+ String resourceName,
+ SharedPrivateLinkResourceInner parameters);
+
+ /**
+ * Create or update a shared private link resource.
+ *
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters The shared private link resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a Shared Private Link Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SharedPrivateLinkResourceInner createOrUpdate(
+ String sharedPrivateLinkResourceName,
+ String resourceGroupName,
+ String resourceName,
+ SharedPrivateLinkResourceInner parameters,
+ Context context);
+
+ /**
+ * Delete the specified shared private link resource.
+ *
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName);
+
+ /**
+ * Delete the specified shared private link resource.
+ *
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Delete the specified shared private link resource.
+ *
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName);
+
+ /**
+ * Delete the specified shared private link resource.
+ *
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context);
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubsClient.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubsClient.java
new file mode 100644
index 000000000000..7992f1cbeea3
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubsClient.java
@@ -0,0 +1,465 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.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.webpubsub.fluent.models.NameAvailabilityInner;
+import com.azure.resourcemanager.webpubsub.fluent.models.WebPubSubKeysInner;
+import com.azure.resourcemanager.webpubsub.fluent.models.WebPubSubResourceInner;
+import com.azure.resourcemanager.webpubsub.models.NameAvailabilityParameters;
+import com.azure.resourcemanager.webpubsub.models.RegenerateKeyParameters;
+
+/** An instance of this class provides access to all the operations defined in WebPubSubsClient. */
+public interface WebPubSubsClient {
+ /**
+ * Checks that the resource name is valid and is not already in use.
+ *
+ * @param location the region.
+ * @param parameters Parameters supplied to the 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 result of the request to check name availability.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NameAvailabilityInner checkNameAvailability(String location, NameAvailabilityParameters parameters);
+
+ /**
+ * Checks that the resource name is valid and is not already in use.
+ *
+ * @param location the region.
+ * @param parameters Parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to check name availability.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String location, NameAvailabilityParameters parameters, Context context);
+
+ /**
+ * Handles requests to list all resources in a 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 object that includes an array of resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Handles requests to list all resources in a 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 object that includes an array of resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Handles requests to list all resources in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Handles requests to list all resources in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of resources and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get the resource and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the resource and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebPubSubResourceInner getByResourceGroup(String resourceGroupName, String resourceName);
+
+ /**
+ * Get the resource and its properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the resource and its properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Create or update a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameters for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a class represent a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, WebPubSubResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String resourceName, WebPubSubResourceInner parameters);
+
+ /**
+ * Create or update a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameters for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a class represent a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, WebPubSubResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String resourceName, WebPubSubResourceInner parameters, Context context);
+
+ /**
+ * Create or update a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameters for the create or update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a class represent a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebPubSubResourceInner createOrUpdate(
+ String resourceGroupName, String resourceName, WebPubSubResourceInner parameters);
+
+ /**
+ * Create or update a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameters for the create or update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a class represent a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebPubSubResourceInner createOrUpdate(
+ String resourceGroupName, String resourceName, WebPubSubResourceInner parameters, Context context);
+
+ /**
+ * Operation to delete a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName);
+
+ /**
+ * Operation to delete a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Operation to delete a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String resourceName);
+
+ /**
+ * Operation to delete a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Operation to update an exiting resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameters for the update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a class represent a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, WebPubSubResourceInner> beginUpdate(
+ String resourceGroupName, String resourceName, WebPubSubResourceInner parameters);
+
+ /**
+ * Operation to update an exiting resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameters for the update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a class represent a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, WebPubSubResourceInner> beginUpdate(
+ String resourceGroupName, String resourceName, WebPubSubResourceInner parameters, Context context);
+
+ /**
+ * Operation to update an exiting resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameters for the update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a class represent a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebPubSubResourceInner update(String resourceGroupName, String resourceName, WebPubSubResourceInner parameters);
+
+ /**
+ * Operation to update an exiting resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameters for the update operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a class represent a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebPubSubResourceInner update(
+ String resourceGroupName, String resourceName, WebPubSubResourceInner parameters, Context context);
+
+ /**
+ * Get the access keys of the resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the access keys of the resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebPubSubKeysInner listKeys(String resourceGroupName, String resourceName);
+
+ /**
+ * Get the access keys of the resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the access keys of the resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameter that describes the Regenerate Key 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 class represents the access keys of the resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, WebPubSubKeysInner> beginRegenerateKey(
+ String resourceGroupName, String resourceName, RegenerateKeyParameters parameters);
+
+ /**
+ * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameter that describes the Regenerate Key Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a class represents the access keys of the resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, WebPubSubKeysInner> beginRegenerateKey(
+ String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context);
+
+ /**
+ * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameter that describes the Regenerate Key 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 class represents the access keys of the resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebPubSubKeysInner regenerateKey(String resourceGroupName, String resourceName, RegenerateKeyParameters parameters);
+
+ /**
+ * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param parameters Parameter that describes the Regenerate Key Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a class represents the access keys of the resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WebPubSubKeysInner regenerateKey(
+ String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context);
+
+ /**
+ * Operation to restart a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginRestart(String resourceGroupName, String resourceName);
+
+ /**
+ * Operation to restart a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginRestart(String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Operation to restart a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void restart(String resourceGroupName, String resourceName);
+
+ /**
+ * Operation to restart a resource.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void restart(String resourceGroupName, String resourceName, Context context);
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/NameAvailabilityInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/NameAvailabilityInner.java
new file mode 100644
index 000000000000..43d21ac1c6ee
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/NameAvailabilityInner.java
@@ -0,0 +1,102 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Result of the request to check name availability. It contains a flag and possible reason of failure. */
+@Fluent
+public final class NameAvailabilityInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(NameAvailabilityInner.class);
+
+ /*
+ * Indicates whether the name is available or not.
+ */
+ @JsonProperty(value = "nameAvailable")
+ private Boolean nameAvailable;
+
+ /*
+ * The reason of the availability. Required if name is not available.
+ */
+ @JsonProperty(value = "reason")
+ private String reason;
+
+ /*
+ * The message of the operation.
+ */
+ @JsonProperty(value = "message")
+ private String message;
+
+ /**
+ * Get the nameAvailable property: Indicates whether the name is available or not.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Set the nameAvailable property: Indicates whether the name is available or not.
+ *
+ * @param nameAvailable the nameAvailable value to set.
+ * @return the NameAvailabilityInner object itself.
+ */
+ public NameAvailabilityInner withNameAvailable(Boolean nameAvailable) {
+ this.nameAvailable = nameAvailable;
+ return this;
+ }
+
+ /**
+ * Get the reason property: The reason of the availability. Required if name is not available.
+ *
+ * @return the reason value.
+ */
+ public String reason() {
+ return this.reason;
+ }
+
+ /**
+ * Set the reason property: The reason of the availability. Required if name is not available.
+ *
+ * @param reason the reason value to set.
+ * @return the NameAvailabilityInner object itself.
+ */
+ public NameAvailabilityInner withReason(String reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Get the message property: The message of the operation.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Set the message property: The message of the operation.
+ *
+ * @param message the message value to set.
+ * @return the NameAvailabilityInner object itself.
+ */
+ public NameAvailabilityInner withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/OperationInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..279b6ec5c29a
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/OperationInner.java
@@ -0,0 +1,165 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.models.OperationDisplay;
+import com.azure.resourcemanager.webpubsub.models.OperationProperties;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** REST API operation supported by resource provider. */
+@Fluent
+public final class OperationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
+
+ /*
+ * Name of the operation with format: {provider}/{resource}/{operation}
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * If the operation is a data action. (for data plane rbac)
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /*
+ * The object that describes the operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /*
+ * Optional. The intended executor of the operation; governs the display of
+ * the operation in the RBAC UX and the audit logs UX.
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /*
+ * Extra properties for the operation.
+ */
+ @JsonProperty(value = "properties")
+ private OperationProperties properties;
+
+ /**
+ * Get the name property: Name of the operation with format: {provider}/{resource}/{operation}.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Name of the operation with format: {provider}/{resource}/{operation}.
+ *
+ * @param name the name value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the isDataAction property: If the operation is a data action. (for data plane rbac).
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: If the operation is a data action. (for data plane rbac).
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Get the display property: The object that describes the operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: The object that describes the operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: Optional. The intended executor of the operation; governs the display of the operation
+ * in the RBAC UX and the audit logs UX.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: Optional. The intended executor of the operation; governs the display of the operation
+ * in the RBAC UX and the audit logs UX.
+ *
+ * @param origin the origin value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Get the properties property: Extra properties for the operation.
+ *
+ * @return the properties value.
+ */
+ public OperationProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Extra properties for the operation.
+ *
+ * @param properties the properties value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withProperties(OperationProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateEndpointConnectionInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 000000000000..c291e17adda7
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,120 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.models.PrivateEndpoint;
+import com.azure.resourcemanager.webpubsub.models.PrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A private endpoint connection to an azure resource. */
+@JsonFlatten
+@Fluent
+public class PrivateEndpointConnectionInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Provisioning state of the private endpoint connection
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Private endpoint associated with the private endpoint connection
+ */
+ @JsonProperty(value = "properties.privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * Connection state
+ */
+ @JsonProperty(value = "properties.privateLinkServiceConnectionState")
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the private endpoint connection.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the privateEndpoint property: Private endpoint associated with the private endpoint connection.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: Private endpoint associated with the private endpoint connection.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: Connection state.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Connection state.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() != null) {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateLinkResourceInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateLinkResourceInner.java
new file mode 100644
index 000000000000..6321e0c743bb
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateLinkResourceInner.java
@@ -0,0 +1,139 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.models.ShareablePrivateLinkResourceType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Private link resource. */
+@JsonFlatten
+@Fluent
+public class PrivateLinkResourceInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceInner.class);
+
+ /*
+ * Group Id of the private link resource
+ */
+ @JsonProperty(value = "properties.groupId")
+ private String groupId;
+
+ /*
+ * Required members of the private link resource
+ */
+ @JsonProperty(value = "properties.requiredMembers")
+ private List requiredMembers;
+
+ /*
+ * Required private DNS zone names
+ */
+ @JsonProperty(value = "properties.requiredZoneNames")
+ private List requiredZoneNames;
+
+ /*
+ * The list of resources that are onboarded to private link service
+ */
+ @JsonProperty(value = "properties.shareablePrivateLinkResourceTypes")
+ private List shareablePrivateLinkResourceTypes;
+
+ /**
+ * Get the groupId property: Group Id of the private link resource.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Set the groupId property: Group Id of the private link resource.
+ *
+ * @param groupId the groupId value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withGroupId(String groupId) {
+ this.groupId = groupId;
+ return this;
+ }
+
+ /**
+ * Get the requiredMembers property: Required members of the private link resource.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Set the requiredMembers property: Required members of the private link resource.
+ *
+ * @param requiredMembers the requiredMembers value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withRequiredMembers(List requiredMembers) {
+ this.requiredMembers = requiredMembers;
+ return this;
+ }
+
+ /**
+ * Get the requiredZoneNames property: Required private DNS zone names.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: Required private DNS zone names.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * Get the shareablePrivateLinkResourceTypes property: The list of resources that are onboarded to private link
+ * service.
+ *
+ * @return the shareablePrivateLinkResourceTypes value.
+ */
+ public List shareablePrivateLinkResourceTypes() {
+ return this.shareablePrivateLinkResourceTypes;
+ }
+
+ /**
+ * Set the shareablePrivateLinkResourceTypes property: The list of resources that are onboarded to private link
+ * service.
+ *
+ * @param shareablePrivateLinkResourceTypes the shareablePrivateLinkResourceTypes value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withShareablePrivateLinkResourceTypes(
+ List shareablePrivateLinkResourceTypes) {
+ this.shareablePrivateLinkResourceTypes = shareablePrivateLinkResourceTypes;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (shareablePrivateLinkResourceTypes() != null) {
+ shareablePrivateLinkResourceTypes().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SharedPrivateLinkResourceInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SharedPrivateLinkResourceInner.java
new file mode 100644
index 000000000000..e3f21b280cff
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SharedPrivateLinkResourceInner.java
@@ -0,0 +1,155 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
+import com.azure.resourcemanager.webpubsub.models.SharedPrivateLinkResourceStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes a Shared Private Link Resource. */
+@JsonFlatten
+@Fluent
+public class SharedPrivateLinkResourceInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SharedPrivateLinkResourceInner.class);
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The group id from the provider of resource the shared private link
+ * resource is for
+ */
+ @JsonProperty(value = "properties.groupId")
+ private String groupId;
+
+ /*
+ * The resource id of the resource the shared private link resource is for
+ */
+ @JsonProperty(value = "properties.privateLinkResourceId")
+ private String privateLinkResourceId;
+
+ /*
+ * Provisioning state of the shared private link resource
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The request message for requesting approval of the shared private link
+ * resource
+ */
+ @JsonProperty(value = "properties.requestMessage")
+ private String requestMessage;
+
+ /*
+ * Status of the shared private link resource
+ */
+ @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY)
+ private SharedPrivateLinkResourceStatus status;
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the groupId property: The group id from the provider of resource the shared private link resource is for.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Set the groupId property: The group id from the provider of resource the shared private link resource is for.
+ *
+ * @param groupId the groupId value to set.
+ * @return the SharedPrivateLinkResourceInner object itself.
+ */
+ public SharedPrivateLinkResourceInner withGroupId(String groupId) {
+ this.groupId = groupId;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkResourceId property: The resource id of the resource the shared private link resource is for.
+ *
+ * @return the privateLinkResourceId value.
+ */
+ public String privateLinkResourceId() {
+ return this.privateLinkResourceId;
+ }
+
+ /**
+ * Set the privateLinkResourceId property: The resource id of the resource the shared private link resource is for.
+ *
+ * @param privateLinkResourceId the privateLinkResourceId value to set.
+ * @return the SharedPrivateLinkResourceInner object itself.
+ */
+ public SharedPrivateLinkResourceInner withPrivateLinkResourceId(String privateLinkResourceId) {
+ this.privateLinkResourceId = privateLinkResourceId;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the shared private link resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the requestMessage property: The request message for requesting approval of the shared private link resource.
+ *
+ * @return the requestMessage value.
+ */
+ public String requestMessage() {
+ return this.requestMessage;
+ }
+
+ /**
+ * Set the requestMessage property: The request message for requesting approval of the shared private link resource.
+ *
+ * @param requestMessage the requestMessage value to set.
+ * @return the SharedPrivateLinkResourceInner object itself.
+ */
+ public SharedPrivateLinkResourceInner withRequestMessage(String requestMessage) {
+ this.requestMessage = requestMessage;
+ return this;
+ }
+
+ /**
+ * Get the status property: Status of the shared private link resource.
+ *
+ * @return the status value.
+ */
+ public SharedPrivateLinkResourceStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SignalRServiceUsageInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SignalRServiceUsageInner.java
new file mode 100644
index 000000000000..5301e9d9d0e0
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SignalRServiceUsageInner.java
@@ -0,0 +1,164 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.models.SignalRServiceUsageName;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Object that describes a specific usage of the resources. */
+@Fluent
+public final class SignalRServiceUsageInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SignalRServiceUsageInner.class);
+
+ /*
+ * Fully qualified ARM resource id
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * Current value for the usage quota.
+ */
+ @JsonProperty(value = "currentValue")
+ private Long currentValue;
+
+ /*
+ * The maximum permitted value for the usage quota. If there is no limit,
+ * this value will be -1.
+ */
+ @JsonProperty(value = "limit")
+ private Long limit;
+
+ /*
+ * Localizable String object containing the name and a localized value.
+ */
+ @JsonProperty(value = "name")
+ private SignalRServiceUsageName name;
+
+ /*
+ * Representing the units of the usage quota. Possible values are: Count,
+ * Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond.
+ */
+ @JsonProperty(value = "unit")
+ private String unit;
+
+ /**
+ * Get the id property: Fully qualified ARM resource id.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Fully qualified ARM resource id.
+ *
+ * @param id the id value to set.
+ * @return the SignalRServiceUsageInner object itself.
+ */
+ public SignalRServiceUsageInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the currentValue property: Current value for the usage quota.
+ *
+ * @return the currentValue value.
+ */
+ public Long currentValue() {
+ return this.currentValue;
+ }
+
+ /**
+ * Set the currentValue property: Current value for the usage quota.
+ *
+ * @param currentValue the currentValue value to set.
+ * @return the SignalRServiceUsageInner object itself.
+ */
+ public SignalRServiceUsageInner withCurrentValue(Long currentValue) {
+ this.currentValue = currentValue;
+ return this;
+ }
+
+ /**
+ * Get the limit property: The maximum permitted value for the usage quota. If there is no limit, this value will be
+ * -1.
+ *
+ * @return the limit value.
+ */
+ public Long limit() {
+ return this.limit;
+ }
+
+ /**
+ * Set the limit property: The maximum permitted value for the usage quota. If there is no limit, this value will be
+ * -1.
+ *
+ * @param limit the limit value to set.
+ * @return the SignalRServiceUsageInner object itself.
+ */
+ public SignalRServiceUsageInner withLimit(Long limit) {
+ this.limit = limit;
+ return this;
+ }
+
+ /**
+ * Get the name property: Localizable String object containing the name and a localized value.
+ *
+ * @return the name value.
+ */
+ public SignalRServiceUsageName name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Localizable String object containing the name and a localized value.
+ *
+ * @param name the name value to set.
+ * @return the SignalRServiceUsageInner object itself.
+ */
+ public SignalRServiceUsageInner withName(SignalRServiceUsageName name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the unit property: Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds,
+ * Percent, CountPerSecond, BytesPerSecond.
+ *
+ * @return the unit value.
+ */
+ public String unit() {
+ return this.unit;
+ }
+
+ /**
+ * Set the unit property: Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds,
+ * Percent, CountPerSecond, BytesPerSecond.
+ *
+ * @param unit the unit value to set.
+ * @return the SignalRServiceUsageInner object itself.
+ */
+ public SignalRServiceUsageInner withUnit(String unit) {
+ this.unit = unit;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() != null) {
+ name().validate();
+ }
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubKeysInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubKeysInner.java
new file mode 100644
index 000000000000..87c17313f8a9
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubKeysInner.java
@@ -0,0 +1,128 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A class represents the access keys of the resource. */
+@Fluent
+public final class WebPubSubKeysInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WebPubSubKeysInner.class);
+
+ /*
+ * The primary access key.
+ */
+ @JsonProperty(value = "primaryKey")
+ private String primaryKey;
+
+ /*
+ * The secondary access key.
+ */
+ @JsonProperty(value = "secondaryKey")
+ private String secondaryKey;
+
+ /*
+ * Connection string constructed via the primaryKey
+ */
+ @JsonProperty(value = "primaryConnectionString")
+ private String primaryConnectionString;
+
+ /*
+ * Connection string constructed via the secondaryKey
+ */
+ @JsonProperty(value = "secondaryConnectionString")
+ private String secondaryConnectionString;
+
+ /**
+ * Get the primaryKey property: The primary access key.
+ *
+ * @return the primaryKey value.
+ */
+ public String primaryKey() {
+ return this.primaryKey;
+ }
+
+ /**
+ * Set the primaryKey property: The primary access key.
+ *
+ * @param primaryKey the primaryKey value to set.
+ * @return the WebPubSubKeysInner object itself.
+ */
+ public WebPubSubKeysInner withPrimaryKey(String primaryKey) {
+ this.primaryKey = primaryKey;
+ return this;
+ }
+
+ /**
+ * Get the secondaryKey property: The secondary access key.
+ *
+ * @return the secondaryKey value.
+ */
+ public String secondaryKey() {
+ return this.secondaryKey;
+ }
+
+ /**
+ * Set the secondaryKey property: The secondary access key.
+ *
+ * @param secondaryKey the secondaryKey value to set.
+ * @return the WebPubSubKeysInner object itself.
+ */
+ public WebPubSubKeysInner withSecondaryKey(String secondaryKey) {
+ this.secondaryKey = secondaryKey;
+ return this;
+ }
+
+ /**
+ * Get the primaryConnectionString property: Connection string constructed via the primaryKey.
+ *
+ * @return the primaryConnectionString value.
+ */
+ public String primaryConnectionString() {
+ return this.primaryConnectionString;
+ }
+
+ /**
+ * Set the primaryConnectionString property: Connection string constructed via the primaryKey.
+ *
+ * @param primaryConnectionString the primaryConnectionString value to set.
+ * @return the WebPubSubKeysInner object itself.
+ */
+ public WebPubSubKeysInner withPrimaryConnectionString(String primaryConnectionString) {
+ this.primaryConnectionString = primaryConnectionString;
+ return this;
+ }
+
+ /**
+ * Get the secondaryConnectionString property: Connection string constructed via the secondaryKey.
+ *
+ * @return the secondaryConnectionString value.
+ */
+ public String secondaryConnectionString() {
+ return this.secondaryConnectionString;
+ }
+
+ /**
+ * Set the secondaryConnectionString property: Connection string constructed via the secondaryKey.
+ *
+ * @param secondaryConnectionString the secondaryConnectionString value to set.
+ * @return the WebPubSubKeysInner object itself.
+ */
+ public WebPubSubKeysInner withSecondaryConnectionString(String secondaryConnectionString) {
+ this.secondaryConnectionString = secondaryConnectionString;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubResourceInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubResourceInner.java
new file mode 100644
index 000000000000..b6598cb0cd44
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubResourceInner.java
@@ -0,0 +1,467 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.models.DiagnosticConfiguration;
+import com.azure.resourcemanager.webpubsub.models.EventHandlerSettings;
+import com.azure.resourcemanager.webpubsub.models.ManagedIdentity;
+import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
+import com.azure.resourcemanager.webpubsub.models.ResourceSku;
+import com.azure.resourcemanager.webpubsub.models.WebPubSubNetworkACLs;
+import com.azure.resourcemanager.webpubsub.models.WebPubSubTlsSettings;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** A class represent a resource. */
+@JsonFlatten
+@Fluent
+public class WebPubSubResourceInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WebPubSubResourceInner.class);
+
+ /*
+ * The billing information of the resource.(e.g. Free, Standard)
+ */
+ @JsonProperty(value = "sku")
+ private ResourceSku sku;
+
+ /*
+ * The managed identity response
+ */
+ @JsonProperty(value = "identity")
+ private ManagedIdentity identity;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Provisioning state of the resource.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The publicly accessible IP of the resource.
+ */
+ @JsonProperty(value = "properties.externalIP", access = JsonProperty.Access.WRITE_ONLY)
+ private String externalIp;
+
+ /*
+ * FQDN of the service instance.
+ */
+ @JsonProperty(value = "properties.hostName", access = JsonProperty.Access.WRITE_ONLY)
+ private String hostname;
+
+ /*
+ * The publicly accessible port of the resource which is designed for
+ * browser/client side usage.
+ */
+ @JsonProperty(value = "properties.publicPort", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer publicPort;
+
+ /*
+ * The publicly accessible port of the resource which is designed for
+ * customer server side usage.
+ */
+ @JsonProperty(value = "properties.serverPort", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer serverPort;
+
+ /*
+ * Version of the resource. Probably you need the same or higher version of
+ * client SDKs.
+ */
+ @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY)
+ private String version;
+
+ /*
+ * Private endpoint connections to the resource.
+ */
+ @JsonProperty(value = "properties.privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
+ /*
+ * The list of shared private link resources.
+ */
+ @JsonProperty(value = "properties.sharedPrivateLinkResources", access = JsonProperty.Access.WRITE_ONLY)
+ private List sharedPrivateLinkResources;
+
+ /*
+ * TLS settings.
+ */
+ @JsonProperty(value = "properties.tls")
+ private WebPubSubTlsSettings tls;
+
+ /*
+ * Diagnostic configuration of a Microsoft.SignalRService resource. Used
+ * together with Azure monitor DiagnosticSettings.
+ */
+ @JsonProperty(value = "properties.diagnosticConfiguration")
+ private DiagnosticConfiguration diagnosticConfiguration;
+
+ /*
+ * The settings for event handler in webpubsub service.
+ */
+ @JsonProperty(value = "properties.eventHandler")
+ private EventHandlerSettings eventHandler;
+
+ /*
+ * Network ACLs
+ */
+ @JsonProperty(value = "properties.networkACLs")
+ private WebPubSubNetworkACLs networkACLs;
+
+ /*
+ * Enable or disable public network access. Default to "Enabled".
+ * When it's Enabled, network ACLs still apply.
+ * When it's Disabled, public network access is always disabled no matter
+ * what you set in network ACLs.
+ */
+ @JsonProperty(value = "properties.publicNetworkAccess")
+ private String publicNetworkAccess;
+
+ /*
+ * DisableLocalAuth
+ * Enable or disable local auth with AccessKey
+ * When set as true, connection with AccessKey=xxx won't work.
+ */
+ @JsonProperty(value = "properties.disableLocalAuth")
+ private Boolean disableLocalAuth;
+
+ /*
+ * DisableLocalAuth
+ * Enable or disable aad auth
+ * When set as true, connection with AuthType=aad won't work.
+ */
+ @JsonProperty(value = "properties.disableAadAuth")
+ private Boolean disableAadAuth;
+
+ /**
+ * Get the sku property: The billing information of the resource.(e.g. Free, Standard).
+ *
+ * @return the sku value.
+ */
+ public ResourceSku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The billing information of the resource.(e.g. Free, Standard).
+ *
+ * @param sku the sku value to set.
+ * @return the WebPubSubResourceInner object itself.
+ */
+ public WebPubSubResourceInner withSku(ResourceSku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The managed identity response.
+ *
+ * @return the identity value.
+ */
+ public ManagedIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed identity response.
+ *
+ * @param identity the identity value to set.
+ * @return the WebPubSubResourceInner object itself.
+ */
+ public WebPubSubResourceInner withIdentity(ManagedIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the externalIp property: The publicly accessible IP of the resource.
+ *
+ * @return the externalIp value.
+ */
+ public String externalIp() {
+ return this.externalIp;
+ }
+
+ /**
+ * Get the hostname property: FQDN of the service instance.
+ *
+ * @return the hostname value.
+ */
+ public String hostname() {
+ return this.hostname;
+ }
+
+ /**
+ * Get the publicPort property: The publicly accessible port of the resource which is designed for browser/client
+ * side usage.
+ *
+ * @return the publicPort value.
+ */
+ public Integer publicPort() {
+ return this.publicPort;
+ }
+
+ /**
+ * Get the serverPort property: The publicly accessible port of the resource which is designed for customer server
+ * side usage.
+ *
+ * @return the serverPort value.
+ */
+ public Integer serverPort() {
+ return this.serverPort;
+ }
+
+ /**
+ * Get the version property: Version of the resource. Probably you need the same or higher version of client SDKs.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: Private endpoint connections to the resource.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * Get the sharedPrivateLinkResources property: The list of shared private link resources.
+ *
+ * @return the sharedPrivateLinkResources value.
+ */
+ public List sharedPrivateLinkResources() {
+ return this.sharedPrivateLinkResources;
+ }
+
+ /**
+ * Get the tls property: TLS settings.
+ *
+ * @return the tls value.
+ */
+ public WebPubSubTlsSettings tls() {
+ return this.tls;
+ }
+
+ /**
+ * Set the tls property: TLS settings.
+ *
+ * @param tls the tls value to set.
+ * @return the WebPubSubResourceInner object itself.
+ */
+ public WebPubSubResourceInner withTls(WebPubSubTlsSettings tls) {
+ this.tls = tls;
+ return this;
+ }
+
+ /**
+ * Get the diagnosticConfiguration property: Diagnostic configuration of a Microsoft.SignalRService resource. Used
+ * together with Azure monitor DiagnosticSettings.
+ *
+ * @return the diagnosticConfiguration value.
+ */
+ public DiagnosticConfiguration diagnosticConfiguration() {
+ return this.diagnosticConfiguration;
+ }
+
+ /**
+ * Set the diagnosticConfiguration property: Diagnostic configuration of a Microsoft.SignalRService resource. Used
+ * together with Azure monitor DiagnosticSettings.
+ *
+ * @param diagnosticConfiguration the diagnosticConfiguration value to set.
+ * @return the WebPubSubResourceInner object itself.
+ */
+ public WebPubSubResourceInner withDiagnosticConfiguration(DiagnosticConfiguration diagnosticConfiguration) {
+ this.diagnosticConfiguration = diagnosticConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the eventHandler property: The settings for event handler in webpubsub service.
+ *
+ * @return the eventHandler value.
+ */
+ public EventHandlerSettings eventHandler() {
+ return this.eventHandler;
+ }
+
+ /**
+ * Set the eventHandler property: The settings for event handler in webpubsub service.
+ *
+ * @param eventHandler the eventHandler value to set.
+ * @return the WebPubSubResourceInner object itself.
+ */
+ public WebPubSubResourceInner withEventHandler(EventHandlerSettings eventHandler) {
+ this.eventHandler = eventHandler;
+ return this;
+ }
+
+ /**
+ * Get the networkACLs property: Network ACLs.
+ *
+ * @return the networkACLs value.
+ */
+ public WebPubSubNetworkACLs networkACLs() {
+ return this.networkACLs;
+ }
+
+ /**
+ * Set the networkACLs property: Network ACLs.
+ *
+ * @param networkACLs the networkACLs value to set.
+ * @return the WebPubSubResourceInner object itself.
+ */
+ public WebPubSubResourceInner withNetworkACLs(WebPubSubNetworkACLs networkACLs) {
+ this.networkACLs = networkACLs;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". When it's
+ * Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what
+ * you set in network ACLs.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public String publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". When it's
+ * Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what
+ * you set in network ACLs.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the WebPubSubResourceInner object itself.
+ */
+ public WebPubSubResourceInner withPublicNetworkAccess(String publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey When set as true,
+ * connection with AccessKey=xxx won't work.
+ *
+ * @return the disableLocalAuth value.
+ */
+ public Boolean disableLocalAuth() {
+ return this.disableLocalAuth;
+ }
+
+ /**
+ * Set the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey When set as true,
+ * connection with AccessKey=xxx won't work.
+ *
+ * @param disableLocalAuth the disableLocalAuth value to set.
+ * @return the WebPubSubResourceInner object itself.
+ */
+ public WebPubSubResourceInner withDisableLocalAuth(Boolean disableLocalAuth) {
+ this.disableLocalAuth = disableLocalAuth;
+ return this;
+ }
+
+ /**
+ * Get the disableAadAuth property: DisableLocalAuth Enable or disable aad auth When set as true, connection with
+ * AuthType=aad won't work.
+ *
+ * @return the disableAadAuth value.
+ */
+ public Boolean disableAadAuth() {
+ return this.disableAadAuth;
+ }
+
+ /**
+ * Set the disableAadAuth property: DisableLocalAuth Enable or disable aad auth When set as true, connection with
+ * AuthType=aad won't work.
+ *
+ * @param disableAadAuth the disableAadAuth value to set.
+ * @return the WebPubSubResourceInner object itself.
+ */
+ public WebPubSubResourceInner withDisableAadAuth(Boolean disableAadAuth) {
+ this.disableAadAuth = disableAadAuth;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public WebPubSubResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public WebPubSubResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
+ if (sharedPrivateLinkResources() != null) {
+ sharedPrivateLinkResources().forEach(e -> e.validate());
+ }
+ if (tls() != null) {
+ tls().validate();
+ }
+ if (diagnosticConfiguration() != null) {
+ diagnosticConfiguration().validate();
+ }
+ if (eventHandler() != null) {
+ eventHandler().validate();
+ }
+ if (networkACLs() != null) {
+ networkACLs().validate();
+ }
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/package-info.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/package-info.java
new file mode 100644
index 000000000000..018377dd6fc6
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the inner data models for WebPubSubManagementClient. REST API for Azure WebPubSub Service. */
+package com.azure.resourcemanager.webpubsub.fluent.models;
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/package-info.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/package-info.java
new file mode 100644
index 000000000000..d26f4301311b
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the service clients for WebPubSubManagementClient. REST API for Azure WebPubSub Service. */
+package com.azure.resourcemanager.webpubsub.fluent;
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/NameAvailabilityImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/NameAvailabilityImpl.java
new file mode 100644
index 000000000000..e6d724de5d95
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/NameAvailabilityImpl.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.implementation;
+
+import com.azure.resourcemanager.webpubsub.fluent.models.NameAvailabilityInner;
+import com.azure.resourcemanager.webpubsub.models.NameAvailability;
+
+public final class NameAvailabilityImpl implements NameAvailability {
+ private NameAvailabilityInner innerObject;
+
+ private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;
+
+ NameAvailabilityImpl(
+ NameAvailabilityInner innerObject, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public Boolean nameAvailable() {
+ return this.innerModel().nameAvailable();
+ }
+
+ public String reason() {
+ return this.innerModel().reason();
+ }
+
+ public String message() {
+ return this.innerModel().message();
+ }
+
+ public NameAvailabilityInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/OperationImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/OperationImpl.java
new file mode 100644
index 000000000000..0a4bd91a5e49
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/OperationImpl.java
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.implementation;
+
+import com.azure.resourcemanager.webpubsub.fluent.models.OperationInner;
+import com.azure.resourcemanager.webpubsub.models.Operation;
+import com.azure.resourcemanager.webpubsub.models.OperationDisplay;
+import com.azure.resourcemanager.webpubsub.models.OperationProperties;
+
+public final class OperationImpl implements Operation {
+ private OperationInner innerObject;
+
+ private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;
+
+ OperationImpl(OperationInner innerObject, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public Boolean isDataAction() {
+ return this.innerModel().isDataAction();
+ }
+
+ public OperationDisplay display() {
+ return this.innerModel().display();
+ }
+
+ public String origin() {
+ return this.innerModel().origin();
+ }
+
+ public OperationProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public OperationInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/OperationsClientImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/OperationsClientImpl.java
new file mode 100644
index 000000000000..c320fe3ea2d4
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/OperationsClientImpl.java
@@ -0,0 +1,269 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.fluent.OperationsClient;
+import com.azure.resourcemanager.webpubsub.fluent.models.OperationInner;
+import com.azure.resourcemanager.webpubsub.models.OperationList;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public final class OperationsClientImpl implements OperationsClient {
+ private final ClientLogger logger = new ClientLogger(OperationsClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final OperationsService service;
+
+ /** The service client containing this operation class. */
+ private final WebPubSubManagementClientImpl client;
+
+ /**
+ * Initializes an instance of OperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OperationsClientImpl(WebPubSubManagementClientImpl client) {
+ this.service =
+ RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for WebPubSubManagementClientOperations to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "WebPubSubManagementC")
+ private interface OperationsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/providers/Microsoft.SignalRService/operations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.SignalRService provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), 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()));
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.SignalRService provider.
+ *
+ * @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 result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.SignalRService provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.SignalRService provider.
+ *
+ * @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 result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.SignalRService provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.SignalRService provider.
+ *
+ * @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 result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list REST API operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/OperationsImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/OperationsImpl.java
new file mode 100644
index 000000000000..34d4e47ccaa3
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/OperationsImpl.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.fluent.OperationsClient;
+import com.azure.resourcemanager.webpubsub.fluent.models.OperationInner;
+import com.azure.resourcemanager.webpubsub.models.Operation;
+import com.azure.resourcemanager.webpubsub.models.Operations;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class OperationsImpl implements Operations {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class);
+
+ private final OperationsClient innerClient;
+
+ private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;
+
+ public OperationsImpl(
+ OperationsClient innerClient, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ private OperationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/PrivateEndpointConnectionImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/PrivateEndpointConnectionImpl.java
new file mode 100644
index 000000000000..84e224a344aa
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/PrivateEndpointConnectionImpl.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.webpubsub.fluent.models.PrivateEndpointConnectionInner;
+import com.azure.resourcemanager.webpubsub.models.PrivateEndpoint;
+import com.azure.resourcemanager.webpubsub.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.webpubsub.models.PrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
+
+public final class PrivateEndpointConnectionImpl implements PrivateEndpointConnection {
+ private PrivateEndpointConnectionInner innerObject;
+
+ private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;
+
+ PrivateEndpointConnectionImpl(
+ PrivateEndpointConnectionInner innerObject,
+ com.azure.resourcemanager.webpubsub.WebPubSubManager 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 SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerModel().privateEndpoint();
+ }
+
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.innerModel().privateLinkServiceConnectionState();
+ }
+
+ public PrivateEndpointConnectionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/PrivateLinkResourceImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/PrivateLinkResourceImpl.java
new file mode 100644
index 000000000000..8d7846eafab3
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/PrivateLinkResourceImpl.java
@@ -0,0 +1,74 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.implementation;
+
+import com.azure.resourcemanager.webpubsub.fluent.models.PrivateLinkResourceInner;
+import com.azure.resourcemanager.webpubsub.models.PrivateLinkResource;
+import com.azure.resourcemanager.webpubsub.models.ShareablePrivateLinkResourceType;
+import java.util.Collections;
+import java.util.List;
+
+public final class PrivateLinkResourceImpl implements PrivateLinkResource {
+ private PrivateLinkResourceInner innerObject;
+
+ private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;
+
+ PrivateLinkResourceImpl(
+ PrivateLinkResourceInner innerObject, com.azure.resourcemanager.webpubsub.WebPubSubManager 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 String groupId() {
+ return this.innerModel().groupId();
+ }
+
+ public List requiredMembers() {
+ List inner = this.innerModel().requiredMembers();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List requiredZoneNames() {
+ List inner = this.innerModel().requiredZoneNames();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List shareablePrivateLinkResourceTypes() {
+ List inner = this.innerModel().shareablePrivateLinkResourceTypes();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public PrivateLinkResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/SharedPrivateLinkResourceImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/SharedPrivateLinkResourceImpl.java
new file mode 100644
index 000000000000..fb15fc4f63cc
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/SharedPrivateLinkResourceImpl.java
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.webpubsub.fluent.models.SharedPrivateLinkResourceInner;
+import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
+import com.azure.resourcemanager.webpubsub.models.SharedPrivateLinkResource;
+import com.azure.resourcemanager.webpubsub.models.SharedPrivateLinkResourceStatus;
+
+public final class SharedPrivateLinkResourceImpl
+ implements SharedPrivateLinkResource, SharedPrivateLinkResource.Definition, SharedPrivateLinkResource.Update {
+ private SharedPrivateLinkResourceInner innerObject;
+
+ private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String groupId() {
+ return this.innerModel().groupId();
+ }
+
+ public String privateLinkResourceId() {
+ return this.innerModel().privateLinkResourceId();
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String requestMessage() {
+ return this.innerModel().requestMessage();
+ }
+
+ public SharedPrivateLinkResourceStatus status() {
+ return this.innerModel().status();
+ }
+
+ public SharedPrivateLinkResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+
+ private String sharedPrivateLinkResourceName;
+
+ private String resourceGroupName;
+
+ private String resourceName;
+
+ public SharedPrivateLinkResourceImpl withExistingWebPubSub(String resourceGroupName, String resourceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.resourceName = resourceName;
+ return this;
+ }
+
+ public SharedPrivateLinkResource create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubSharedPrivateLinkResources()
+ .createOrUpdate(
+ sharedPrivateLinkResourceName, resourceGroupName, resourceName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public SharedPrivateLinkResource create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubSharedPrivateLinkResources()
+ .createOrUpdate(
+ sharedPrivateLinkResourceName, resourceGroupName, resourceName, this.innerModel(), context);
+ return this;
+ }
+
+ SharedPrivateLinkResourceImpl(String name, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerObject = new SharedPrivateLinkResourceInner();
+ this.serviceManager = serviceManager;
+ this.sharedPrivateLinkResourceName = name;
+ }
+
+ public SharedPrivateLinkResourceImpl update() {
+ return this;
+ }
+
+ public SharedPrivateLinkResource apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubSharedPrivateLinkResources()
+ .createOrUpdate(
+ sharedPrivateLinkResourceName, resourceGroupName, resourceName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public SharedPrivateLinkResource apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubSharedPrivateLinkResources()
+ .createOrUpdate(
+ sharedPrivateLinkResourceName, resourceGroupName, resourceName, this.innerModel(), context);
+ return this;
+ }
+
+ SharedPrivateLinkResourceImpl(
+ SharedPrivateLinkResourceInner innerObject,
+ com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.sharedPrivateLinkResourceName = Utils.getValueFromIdByName(innerObject.id(), "sharedPrivateLinkResources");
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.resourceName = Utils.getValueFromIdByName(innerObject.id(), "webPubSub");
+ }
+
+ public SharedPrivateLinkResource refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubSharedPrivateLinkResources()
+ .getWithResponse(sharedPrivateLinkResourceName, resourceGroupName, resourceName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public SharedPrivateLinkResource refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubSharedPrivateLinkResources()
+ .getWithResponse(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context)
+ .getValue();
+ return this;
+ }
+
+ public SharedPrivateLinkResourceImpl withGroupId(String groupId) {
+ this.innerModel().withGroupId(groupId);
+ return this;
+ }
+
+ public SharedPrivateLinkResourceImpl withPrivateLinkResourceId(String privateLinkResourceId) {
+ this.innerModel().withPrivateLinkResourceId(privateLinkResourceId);
+ return this;
+ }
+
+ public SharedPrivateLinkResourceImpl withRequestMessage(String requestMessage) {
+ this.innerModel().withRequestMessage(requestMessage);
+ return this;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/SignalRServiceUsageImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/SignalRServiceUsageImpl.java
new file mode 100644
index 000000000000..431d3de0e3c9
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/SignalRServiceUsageImpl.java
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.implementation;
+
+import com.azure.resourcemanager.webpubsub.fluent.models.SignalRServiceUsageInner;
+import com.azure.resourcemanager.webpubsub.models.SignalRServiceUsage;
+import com.azure.resourcemanager.webpubsub.models.SignalRServiceUsageName;
+
+public final class SignalRServiceUsageImpl implements SignalRServiceUsage {
+ private SignalRServiceUsageInner innerObject;
+
+ private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;
+
+ SignalRServiceUsageImpl(
+ SignalRServiceUsageInner innerObject, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public Long currentValue() {
+ return this.innerModel().currentValue();
+ }
+
+ public Long limit() {
+ return this.innerModel().limit();
+ }
+
+ public SignalRServiceUsageName name() {
+ return this.innerModel().name();
+ }
+
+ public String unit() {
+ return this.innerModel().unit();
+ }
+
+ public SignalRServiceUsageInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/UsagesClientImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/UsagesClientImpl.java
new file mode 100644
index 000000000000..a624f960b579
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/UsagesClientImpl.java
@@ -0,0 +1,311 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.fluent.UsagesClient;
+import com.azure.resourcemanager.webpubsub.fluent.models.SignalRServiceUsageInner;
+import com.azure.resourcemanager.webpubsub.models.SignalRServiceUsageList;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in UsagesClient. */
+public final class UsagesClientImpl implements UsagesClient {
+ private final ClientLogger logger = new ClientLogger(UsagesClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final UsagesService service;
+
+ /** The service client containing this operation class. */
+ private final WebPubSubManagementClientImpl client;
+
+ /**
+ * Initializes an instance of UsagesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ UsagesClientImpl(WebPubSubManagementClientImpl client) {
+ this.service = RestProxy.create(UsagesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for WebPubSubManagementClientUsages to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "WebPubSubManagementC")
+ private interface UsagesService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("location") String location,
+ @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> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List resource usage quotas by location.
+ *
+ * @param location the location like "eastus".
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of the resource usages and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String location) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ location,
+ 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 resource usage quotas by location.
+ *
+ * @param location the location like "eastus".
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of the resource usages and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String location, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ location,
+ 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));
+ }
+
+ /**
+ * List resource usage quotas by location.
+ *
+ * @param location the location like "eastus".
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of the resource usages and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String location) {
+ return new PagedFlux<>(() -> listSinglePageAsync(location), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List resource usage quotas by location.
+ *
+ * @param location the location like "eastus".
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of the resource usages and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String location, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(location, context), nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List resource usage quotas by location.
+ *
+ * @param location the location like "eastus".
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of the resource usages and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String location) {
+ return new PagedIterable<>(listAsync(location));
+ }
+
+ /**
+ * List resource usage quotas by location.
+ *
+ * @param location the location like "eastus".
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of the resource usages and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String location, Context context) {
+ return new PagedIterable<>(listAsync(location, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of the resource usages and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object that includes an array of the resource usages and a possible link for next set.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/UsagesImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/UsagesImpl.java
new file mode 100644
index 000000000000..dd445e8415c0
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/UsagesImpl.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.fluent.UsagesClient;
+import com.azure.resourcemanager.webpubsub.fluent.models.SignalRServiceUsageInner;
+import com.azure.resourcemanager.webpubsub.models.SignalRServiceUsage;
+import com.azure.resourcemanager.webpubsub.models.Usages;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class UsagesImpl implements Usages {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(UsagesImpl.class);
+
+ private final UsagesClient innerClient;
+
+ private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;
+
+ public UsagesImpl(UsagesClient innerClient, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String location) {
+ PagedIterable inner = this.serviceClient().list(location);
+ return Utils.mapPage(inner, inner1 -> new SignalRServiceUsageImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String location, Context context) {
+ PagedIterable inner = this.serviceClient().list(location, context);
+ return Utils.mapPage(inner, inner1 -> new SignalRServiceUsageImpl(inner1, this.manager()));
+ }
+
+ private UsagesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/Utils.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/Utils.java
new file mode 100644
index 000000000000..663bbe724855
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/Utils.java
@@ -0,0 +1,204 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.implementation;
+
+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.util.CoreUtils;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import reactor.core.publisher.Flux;
+
+final class Utils {
+ static String getValueFromIdByName(String id, String name) {
+ if (id == null) {
+ return null;
+ }
+ Iterator itr = Arrays.stream(id.split("/")).iterator();
+ while (itr.hasNext()) {
+ String part = itr.next();
+ if (part != null && !part.trim().isEmpty()) {
+ if (part.equalsIgnoreCase(name)) {
+ if (itr.hasNext()) {
+ return itr.next();
+ } else {
+ return null;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) {
+ if (id == null || pathTemplate == null) {
+ return null;
+ }
+ String parameterNameParentheses = "{" + parameterName + "}";
+ List idSegmentsReverted = Arrays.asList(id.split("/"));
+ List pathSegments = Arrays.asList(pathTemplate.split("/"));
+ Collections.reverse(idSegmentsReverted);
+ Iterator idItrReverted = idSegmentsReverted.iterator();
+ int pathIndex = pathSegments.size();
+ while (idItrReverted.hasNext() && pathIndex > 0) {
+ String idSegment = idItrReverted.next();
+ String pathSegment = pathSegments.get(--pathIndex);
+ if (!CoreUtils.isNullOrEmpty(idSegment) && !CoreUtils.isNullOrEmpty(pathSegment)) {
+ if (pathSegment.equalsIgnoreCase(parameterNameParentheses)) {
+ if (pathIndex == 0 || (pathIndex == 1 && pathSegments.get(0).isEmpty())) {
+ List segments = new ArrayList<>();
+ segments.add(idSegment);
+ idItrReverted.forEachRemaining(segments::add);
+ Collections.reverse(segments);
+ if (segments.size() > 0 && segments.get(0).isEmpty()) {
+ segments.remove(0);
+ }
+ return String.join("/", segments);
+ } else {
+ return idSegment;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) {
+ return new PagedIterableImpl(pageIterable, mapper);
+ }
+
+ private static final class PagedIterableImpl extends PagedIterable {
+
+ private final PagedIterable pagedIterable;
+ private final Function mapper;
+ private final Function, PagedResponse> pageMapper;
+
+ private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) {
+ super(
+ PagedFlux
+ .create(
+ () ->
+ (continuationToken, pageSize) ->
+ Flux.fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper)))));
+ this.pagedIterable = pagedIterable;
+ this.mapper = mapper;
+ this.pageMapper = getPageMapper(mapper);
+ }
+
+ private static Function, PagedResponse> getPageMapper(Function mapper) {
+ return page ->
+ new PagedResponseBase(
+ page.getRequest(),
+ page.getStatusCode(),
+ page.getHeaders(),
+ page.getElements().stream().map(mapper).collect(Collectors.toList()),
+ page.getContinuationToken(),
+ null);
+ }
+
+ @Override
+ public Stream stream() {
+ return pagedIterable.stream().map(mapper);
+ }
+
+ @Override
+ public Stream> streamByPage() {
+ return pagedIterable.streamByPage().map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken) {
+ return pagedIterable.streamByPage(continuationToken).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(int preferredPageSize) {
+ return pagedIterable.streamByPage(preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken, int preferredPageSize) {
+ return pagedIterable.streamByPage(continuationToken, preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl(pagedIterable.iterator(), mapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage() {
+ return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken) {
+ return new IterableImpl, PagedResponse>(
+ pagedIterable.iterableByPage(continuationToken), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(int preferredPageSize) {
+ return new IterableImpl, PagedResponse>(
+ pagedIterable.iterableByPage(preferredPageSize), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken, int preferredPageSize) {
+ return new IterableImpl, PagedResponse>(
+ pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
+ }
+ }
+
+ private static final class IteratorImpl implements Iterator {
+
+ private final Iterator iterator;
+ private final Function mapper;
+
+ private IteratorImpl(Iterator iterator, Function mapper) {
+ this.iterator = iterator;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public boolean hasNext() {
+ return iterator.hasNext();
+ }
+
+ @Override
+ public S next() {
+ return mapper.apply(iterator.next());
+ }
+
+ @Override
+ public void remove() {
+ iterator.remove();
+ }
+ }
+
+ private static final class IterableImpl implements Iterable {
+
+ private final Iterable iterable;
+ private final Function mapper;
+
+ private IterableImpl(Iterable iterable, Function mapper) {
+ this.iterable = iterable;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl(iterable.iterator(), mapper);
+ }
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubKeysImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubKeysImpl.java
new file mode 100644
index 000000000000..4177758150dc
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubKeysImpl.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.implementation;
+
+import com.azure.resourcemanager.webpubsub.fluent.models.WebPubSubKeysInner;
+import com.azure.resourcemanager.webpubsub.models.WebPubSubKeys;
+
+public final class WebPubSubKeysImpl implements WebPubSubKeys {
+ private WebPubSubKeysInner innerObject;
+
+ private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;
+
+ WebPubSubKeysImpl(
+ WebPubSubKeysInner innerObject, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String primaryKey() {
+ return this.innerModel().primaryKey();
+ }
+
+ public String secondaryKey() {
+ return this.innerModel().secondaryKey();
+ }
+
+ public String primaryConnectionString() {
+ return this.innerModel().primaryConnectionString();
+ }
+
+ public String secondaryConnectionString() {
+ return this.innerModel().secondaryConnectionString();
+ }
+
+ public WebPubSubKeysInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubManagementClientBuilder.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubManagementClientBuilder.java
new file mode 100644
index 000000000000..a37b842eb0fa
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubManagementClientBuilder.java
@@ -0,0 +1,149 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.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.CookiePolicy;
+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 WebPubSubManagementClientImpl type. */
+@ServiceClientBuilder(serviceClients = {WebPubSubManagementClientImpl.class})
+public final class WebPubSubManagementClientBuilder {
+ /*
+ * Gets subscription Id which uniquely identify the Microsoft Azure
+ * subscription. The subscription ID forms part of the URI for every
+ * service call.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Gets subscription Id which uniquely identify the Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the WebPubSubManagementClientBuilder.
+ */
+ public WebPubSubManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the WebPubSubManagementClientBuilder.
+ */
+ public WebPubSubManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the WebPubSubManagementClientBuilder.
+ */
+ public WebPubSubManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ 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 WebPubSubManagementClientBuilder.
+ */
+ public WebPubSubManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ 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 WebPubSubManagementClientBuilder.
+ */
+ public WebPubSubManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ 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 WebPubSubManagementClientBuilder.
+ */
+ public WebPubSubManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of WebPubSubManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of WebPubSubManagementClientImpl.
+ */
+ public WebPubSubManagementClientImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ WebPubSubManagementClientImpl client =
+ new WebPubSubManagementClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubManagementClientImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubManagementClientImpl.java
new file mode 100644
index 000000000000..c27755c2cbd6
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubManagementClientImpl.java
@@ -0,0 +1,368 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.webpubsub.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+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.util.Context;
+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.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.webpubsub.fluent.OperationsClient;
+import com.azure.resourcemanager.webpubsub.fluent.UsagesClient;
+import com.azure.resourcemanager.webpubsub.fluent.WebPubSubManagementClient;
+import com.azure.resourcemanager.webpubsub.fluent.WebPubSubPrivateEndpointConnectionsClient;
+import com.azure.resourcemanager.webpubsub.fluent.WebPubSubPrivateLinkResourcesClient;
+import com.azure.resourcemanager.webpubsub.fluent.WebPubSubSharedPrivateLinkResourcesClient;
+import com.azure.resourcemanager.webpubsub.fluent.WebPubSubsClient;
+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 java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the WebPubSubManagementClientImpl type. */
+@ServiceClient(builder = WebPubSubManagementClientBuilder.class)
+public final class WebPubSubManagementClientImpl implements WebPubSubManagementClient {
+ private final ClientLogger logger = new ClientLogger(WebPubSubManagementClientImpl.class);
+
+ /**
+ * Gets subscription Id which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of
+ * the URI for every service call.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets Gets subscription Id which uniquely identify the Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The 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 WebPubSubsClient object to access its operations. */
+ private final WebPubSubsClient webPubSubs;
+
+ /**
+ * Gets the WebPubSubsClient object to access its operations.
+ *
+ * @return the WebPubSubsClient object.
+ */
+ public WebPubSubsClient getWebPubSubs() {
+ return this.webPubSubs;
+ }
+
+ /** The UsagesClient object to access its operations. */
+ private final UsagesClient usages;
+
+ /**
+ * Gets the UsagesClient object to access its operations.
+ *
+ * @return the UsagesClient object.
+ */
+ public UsagesClient getUsages() {
+ return this.usages;
+ }
+
+ /** The WebPubSubPrivateEndpointConnectionsClient object to access its operations. */
+ private final WebPubSubPrivateEndpointConnectionsClient webPubSubPrivateEndpointConnections;
+
+ /**
+ * Gets the WebPubSubPrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the WebPubSubPrivateEndpointConnectionsClient object.
+ */
+ public WebPubSubPrivateEndpointConnectionsClient getWebPubSubPrivateEndpointConnections() {
+ return this.webPubSubPrivateEndpointConnections;
+ }
+
+ /** The WebPubSubPrivateLinkResourcesClient object to access its operations. */
+ private final WebPubSubPrivateLinkResourcesClient webPubSubPrivateLinkResources;
+
+ /**
+ * Gets the WebPubSubPrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the WebPubSubPrivateLinkResourcesClient object.
+ */
+ public WebPubSubPrivateLinkResourcesClient getWebPubSubPrivateLinkResources() {
+ return this.webPubSubPrivateLinkResources;
+ }
+
+ /** The WebPubSubSharedPrivateLinkResourcesClient object to access its operations. */
+ private final WebPubSubSharedPrivateLinkResourcesClient webPubSubSharedPrivateLinkResources;
+
+ /**
+ * Gets the WebPubSubSharedPrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the WebPubSubSharedPrivateLinkResourcesClient object.
+ */
+ public WebPubSubSharedPrivateLinkResourcesClient getWebPubSubSharedPrivateLinkResources() {
+ return this.webPubSubSharedPrivateLinkResources;
+ }
+
+ /**
+ * Initializes an instance of WebPubSubManagementClient 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 subscriptionId Gets subscription Id which uniquely identify the Microsoft Azure subscription. The
+ * subscription ID forms part of the URI for every service call.
+ * @param endpoint server parameter.
+ */
+ WebPubSubManagementClientImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2021-06-01-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.webPubSubs = new WebPubSubsClientImpl(this);
+ this.usages = new UsagesClientImpl(this);
+ this.webPubSubPrivateEndpointConnections = new WebPubSubPrivateEndpointConnectionsClientImpl(this);
+ this.webPubSubPrivateLinkResources = new WebPubSubPrivateLinkResourcesClientImpl(this);
+ this.webPubSubSharedPrivateLinkResources = new WebPubSubSharedPrivateLinkResourcesClientImpl(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) {
+ for (Map.Entry