scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -163,6 +189,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -170,9 +209,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -194,7 +235,7 @@ public WebPubSubManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.webpubsub")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -212,16 +253,34 @@ public WebPubSubManager authenticate(TokenCredential credential, AzureProfile pr
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies.addAll(this.policies);
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -233,7 +292,11 @@ public WebPubSubManager authenticate(TokenCredential credential, AzureProfile pr
}
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -241,7 +304,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of WebPubSubs. */
+ /**
+ * Gets the resource collection API of WebPubSubs. It manages WebPubSubResource.
+ *
+ * @return Resource collection API of WebPubSubs.
+ */
public WebPubSubs webPubSubs() {
if (this.webPubSubs == null) {
this.webPubSubs = new WebPubSubsImpl(clientObject.getWebPubSubs(), this);
@@ -249,7 +316,11 @@ public WebPubSubs webPubSubs() {
return webPubSubs;
}
- /** @return Resource collection API of Usages. */
+ /**
+ * Gets the resource collection API of Usages.
+ *
+ * @return Resource collection API of Usages.
+ */
public Usages usages() {
if (this.usages == null) {
this.usages = new UsagesImpl(clientObject.getUsages(), this);
@@ -257,7 +328,37 @@ public Usages usages() {
return usages;
}
- /** @return Resource collection API of WebPubSubHubs. */
+ /**
+ * Gets the resource collection API of WebPubSubCustomCertificates. It manages CustomCertificate.
+ *
+ * @return Resource collection API of WebPubSubCustomCertificates.
+ */
+ public WebPubSubCustomCertificates webPubSubCustomCertificates() {
+ if (this.webPubSubCustomCertificates == null) {
+ this.webPubSubCustomCertificates =
+ new WebPubSubCustomCertificatesImpl(clientObject.getWebPubSubCustomCertificates(), this);
+ }
+ return webPubSubCustomCertificates;
+ }
+
+ /**
+ * Gets the resource collection API of WebPubSubCustomDomains. It manages CustomDomain.
+ *
+ * @return Resource collection API of WebPubSubCustomDomains.
+ */
+ public WebPubSubCustomDomains webPubSubCustomDomains() {
+ if (this.webPubSubCustomDomains == null) {
+ this.webPubSubCustomDomains =
+ new WebPubSubCustomDomainsImpl(clientObject.getWebPubSubCustomDomains(), this);
+ }
+ return webPubSubCustomDomains;
+ }
+
+ /**
+ * Gets the resource collection API of WebPubSubHubs. It manages WebPubSubHub.
+ *
+ * @return Resource collection API of WebPubSubHubs.
+ */
public WebPubSubHubs webPubSubHubs() {
if (this.webPubSubHubs == null) {
this.webPubSubHubs = new WebPubSubHubsImpl(clientObject.getWebPubSubHubs(), this);
@@ -265,7 +366,11 @@ public WebPubSubHubs webPubSubHubs() {
return webPubSubHubs;
}
- /** @return Resource collection API of WebPubSubPrivateEndpointConnections. */
+ /**
+ * Gets the resource collection API of WebPubSubPrivateEndpointConnections.
+ *
+ * @return Resource collection API of WebPubSubPrivateEndpointConnections.
+ */
public WebPubSubPrivateEndpointConnections webPubSubPrivateEndpointConnections() {
if (this.webPubSubPrivateEndpointConnections == null) {
this.webPubSubPrivateEndpointConnections =
@@ -275,7 +380,11 @@ public WebPubSubPrivateEndpointConnections webPubSubPrivateEndpointConnections()
return webPubSubPrivateEndpointConnections;
}
- /** @return Resource collection API of WebPubSubPrivateLinkResources. */
+ /**
+ * Gets the resource collection API of WebPubSubPrivateLinkResources.
+ *
+ * @return Resource collection API of WebPubSubPrivateLinkResources.
+ */
public WebPubSubPrivateLinkResources webPubSubPrivateLinkResources() {
if (this.webPubSubPrivateLinkResources == null) {
this.webPubSubPrivateLinkResources =
@@ -284,7 +393,11 @@ public WebPubSubPrivateLinkResources webPubSubPrivateLinkResources() {
return webPubSubPrivateLinkResources;
}
- /** @return Resource collection API of WebPubSubSharedPrivateLinkResources. */
+ /**
+ * Gets the resource collection API of WebPubSubSharedPrivateLinkResources. It manages SharedPrivateLinkResource.
+ *
+ * @return Resource collection API of WebPubSubSharedPrivateLinkResources.
+ */
public WebPubSubSharedPrivateLinkResources webPubSubSharedPrivateLinkResources() {
if (this.webPubSubSharedPrivateLinkResources == null) {
this.webPubSubSharedPrivateLinkResources =
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
index 2bf28393f266..90bdf89c2ba2 100644
--- 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
@@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.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.
+ * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
*/
@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
index 24d05754f932..b3518388b313 100644
--- 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
@@ -19,7 +19,8 @@ public interface UsagesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return object that includes an array of the resource usages and a possible link for next set as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String location);
@@ -32,7 +33,8 @@ public interface UsagesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return object that includes an array of the resource usages and a possible link for next set as paginated
+ * response with {@link PagedIterable}.
*/
@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/WebPubSubCustomCertificatesClient.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubCustomCertificatesClient.java
new file mode 100644
index 000000000000..c0cd71249b75
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubCustomCertificatesClient.java
@@ -0,0 +1,187 @@
+// 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.CustomCertificateInner;
+
+/** An instance of this class provides access to all the operations defined in WebPubSubCustomCertificatesClient. */
+public interface WebPubSubCustomCertificatesClient {
+ /**
+ * List all custom certificates.
+ *
+ * @param resourceGroupName The 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 custom certificates list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName);
+
+ /**
+ * List all custom certificates.
+ *
+ * @param resourceGroupName The 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 custom certificates list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Get a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @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 custom certificate along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String resourceName, String certificateName, Context context);
+
+ /**
+ * Get a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomCertificateInner get(String resourceGroupName, String resourceName, String certificateName);
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CustomCertificateInner> beginCreateOrUpdate(
+ String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters);
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CustomCertificateInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String resourceName,
+ String certificateName,
+ CustomCertificateInner parameters,
+ Context context);
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomCertificateInner createOrUpdate(
+ String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters);
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @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 custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomCertificateInner createOrUpdate(
+ String resourceGroupName,
+ String resourceName,
+ String certificateName,
+ CustomCertificateInner parameters,
+ Context context);
+
+ /**
+ * Delete a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String resourceName, String certificateName, Context context);
+
+ /**
+ * Delete a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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, String certificateName);
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubCustomDomainsClient.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubCustomDomainsClient.java
new file mode 100644
index 000000000000..af355e4264c5
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubCustomDomainsClient.java
@@ -0,0 +1,209 @@
+// 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.CustomDomainInner;
+
+/** An instance of this class provides access to all the operations defined in WebPubSubCustomDomainsClient. */
+public interface WebPubSubCustomDomainsClient {
+ /**
+ * List all custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param 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 custom domains list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName);
+
+ /**
+ * List all custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param 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 custom domains list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Get a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @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 custom domain along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String resourceName, String name, Context context);
+
+ /**
+ * Get a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomDomainInner get(String resourceGroupName, String resourceName, String name);
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CustomDomainInner> beginCreateOrUpdate(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters);
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CustomDomainInner> beginCreateOrUpdate(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context);
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomDomainInner createOrUpdate(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters);
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomDomainInner createOrUpdate(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context);
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String name);
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String resourceName, String name, Context context);
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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, String name);
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @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, String name, Context context);
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubHubsClient.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubHubsClient.java
index f8e7854da67d..52526a9e58d9 100644
--- a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubHubsClient.java
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/WebPubSubHubsClient.java
@@ -24,7 +24,7 @@ public interface WebPubSubHubsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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 hub setting list.
+ * @return hub setting list as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName);
@@ -39,7 +39,7 @@ public interface WebPubSubHubsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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 hub setting list.
+ * @return hub setting list as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName, Context context);
@@ -51,13 +51,15 @@ public interface WebPubSubHubsClient {
* @param resourceGroupName The 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 hub setting.
+ * @return a hub setting along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WebPubSubHubInner get(String hubName, String resourceGroupName, String resourceName);
+ Response getWithResponse(
+ String hubName, String resourceGroupName, String resourceName, Context context);
/**
* Get a hub setting.
@@ -66,15 +68,13 @@ public interface WebPubSubHubsClient {
* @param resourceGroupName The 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 hub setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String hubName, String resourceGroupName, String resourceName, Context context);
+ WebPubSubHubInner get(String hubName, String resourceGroupName, String resourceName);
/**
* Create or update a hub setting.
@@ -87,7 +87,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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 hub setting.
+ * @return the {@link SyncPoller} for polling of a hub setting.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WebPubSubHubInner> beginCreateOrUpdate(
@@ -105,7 +105,7 @@ SyncPoller, WebPubSubHubInner> beginCreateOrUpdate
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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 hub setting.
+ * @return the {@link SyncPoller} for polling of a hub setting.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WebPubSubHubInner> beginCreateOrUpdate(
@@ -156,7 +156,7 @@ WebPubSubHubInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String hubName, String resourceGroupName, String resourceName);
@@ -172,7 +172,7 @@ WebPubSubHubInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
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
index 01d0fcbb818a..df4372194707 100644
--- 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
@@ -66,6 +66,20 @@ public interface WebPubSubManagementClient {
*/
UsagesClient getUsages();
+ /**
+ * Gets the WebPubSubCustomCertificatesClient object to access its operations.
+ *
+ * @return the WebPubSubCustomCertificatesClient object.
+ */
+ WebPubSubCustomCertificatesClient getWebPubSubCustomCertificates();
+
+ /**
+ * Gets the WebPubSubCustomDomainsClient object to access its operations.
+ *
+ * @return the WebPubSubCustomDomainsClient object.
+ */
+ WebPubSubCustomDomainsClient getWebPubSubCustomDomains();
+
/**
* Gets the WebPubSubHubsClient object to access its operations.
*
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
index 90c7bd4627bc..cdfa308ba81f 100644
--- 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
@@ -26,7 +26,7 @@ public interface WebPubSubPrivateEndpointConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return a list of private endpoint connections as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName);
@@ -41,7 +41,7 @@ public interface WebPubSubPrivateEndpointConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return a list of private endpoint connections as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName, Context context);
@@ -53,14 +53,15 @@ public interface WebPubSubPrivateEndpointConnectionsClient {
* @param resourceGroupName The 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.
+ * @return the specified private endpoint connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(
- String privateEndpointConnectionName, String resourceGroupName, String resourceName);
+ Response getWithResponse(
+ String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context);
/**
* Get the specified private endpoint connection.
@@ -69,15 +70,14 @@ PrivateEndpointConnectionInner get(
* @param resourceGroupName The 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);
+ PrivateEndpointConnectionInner get(
+ String privateEndpointConnectionName, String resourceGroupName, String resourceName);
/**
* Update the state of specified private endpoint connection.
@@ -87,17 +87,19 @@ Response getWithResponse(
* 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.
+ * @return a private endpoint connection to an azure resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner update(
+ Response updateWithResponse(
String privateEndpointConnectionName,
String resourceGroupName,
String resourceName,
- PrivateEndpointConnectionInner parameters);
+ PrivateEndpointConnectionInner parameters,
+ Context context);
/**
* Update the state of specified private endpoint connection.
@@ -107,19 +109,17 @@ PrivateEndpointConnectionInner update(
* 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(
+ PrivateEndpointConnectionInner update(
String privateEndpointConnectionName,
String resourceGroupName,
String resourceName,
- PrivateEndpointConnectionInner parameters,
- Context context);
+ PrivateEndpointConnectionInner parameters);
/**
* Delete the specified private endpoint connection.
@@ -131,7 +131,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
@@ -148,7 +148,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
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
index fcfe02f01c62..c013fef721e1 100644
--- 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
@@ -21,7 +21,8 @@ public interface WebPubSubPrivateLinkResourcesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the private link resources that need to be created for a resource as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName);
@@ -36,7 +37,8 @@ public interface WebPubSubPrivateLinkResourcesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the private link resources that need to be created for a resource as paginated response with {@link
+ * PagedIterable}.
*/
@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
index c4cf4da62d89..5e97253d9b1d 100644
--- 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
@@ -26,7 +26,7 @@ public interface WebPubSubSharedPrivateLinkResourcesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return a list of shared private link resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName);
@@ -41,7 +41,7 @@ public interface WebPubSubSharedPrivateLinkResourcesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return a list of shared private link resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName, Context context);
@@ -53,14 +53,15 @@ public interface WebPubSubSharedPrivateLinkResourcesClient {
* @param resourceGroupName The 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.
+ * @return the specified shared private link resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SharedPrivateLinkResourceInner get(
- String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName);
+ Response getWithResponse(
+ String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context);
/**
* Get the specified shared private link resource.
@@ -69,15 +70,14 @@ SharedPrivateLinkResourceInner get(
* @param resourceGroupName The 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);
+ SharedPrivateLinkResourceInner get(
+ String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName);
/**
* Create or update a shared private link resource.
@@ -90,7 +90,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of describes a Shared Private Link Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate(
@@ -111,7 +111,7 @@ SyncPoller, SharedPrivateLinkResource
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of describes a Shared Private Link Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate(
@@ -173,7 +173,7 @@ SharedPrivateLinkResourceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
@@ -190,7 +190,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
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
index 85eafd680a71..be637643697f 100644
--- 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
@@ -25,35 +25,36 @@ public interface WebPubSubsClient {
*
* @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.
+ * @return result of the request to check name availability along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NameAvailabilityInner checkNameAvailability(String location, NameAvailabilityParameters parameters);
+ Response checkNameAvailabilityWithResponse(
+ String location, NameAvailabilityParameters parameters, Context context);
/**
* 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);
+ NameAvailabilityInner checkNameAvailability(String location, NameAvailabilityParameters parameters);
/**
* 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.
+ * @return object that includes an array of resources and a possible link for next set as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -65,7 +66,8 @@ Response checkNameAvailabilityWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return object that includes an array of resources and a possible link for next set as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -78,7 +80,8 @@ Response checkNameAvailabilityWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return object that includes an array of resources and a possible link for next set as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -92,7 +95,8 @@ Response checkNameAvailabilityWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return object that includes an array of resources and a possible link for next set as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -103,13 +107,15 @@ Response checkNameAvailabilityWithResponse(
* @param resourceGroupName The 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.
+ * @return the resource and its properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WebPubSubResourceInner getByResourceGroup(String resourceGroupName, String resourceName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String resourceName, Context context);
/**
* Get the resource and its properties.
@@ -117,15 +123,13 @@ Response checkNameAvailabilityWithResponse(
* @param resourceGroupName The 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);
+ WebPubSubResourceInner getByResourceGroup(String resourceGroupName, String resourceName);
/**
* Create or update a resource.
@@ -137,7 +141,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of a class represent a resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WebPubSubResourceInner> beginCreateOrUpdate(
@@ -154,7 +158,7 @@ SyncPoller, WebPubSubResourceInner> beginCrea
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of a class represent a resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WebPubSubResourceInner> beginCreateOrUpdate(
@@ -202,7 +206,7 @@ WebPubSubResourceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName);
@@ -217,7 +221,7 @@ WebPubSubResourceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, Context context);
@@ -259,7 +263,7 @@ WebPubSubResourceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of a class represent a resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WebPubSubResourceInner> beginUpdate(
@@ -276,7 +280,7 @@ SyncPoller, WebPubSubResourceInner> beginUpda
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of a class represent a resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WebPubSubResourceInner> beginUpdate(
@@ -320,13 +324,14 @@ WebPubSubResourceInner update(
* @param resourceGroupName The 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.
+ * @return the access keys of the resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WebPubSubKeysInner listKeys(String resourceGroupName, String resourceName);
+ Response listKeysWithResponse(String resourceGroupName, String resourceName, Context context);
/**
* Get the access keys of the resource.
@@ -334,14 +339,13 @@ WebPubSubResourceInner update(
* @param resourceGroupName The 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);
+ WebPubSubKeysInner listKeys(String resourceGroupName, String resourceName);
/**
* Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
@@ -353,7 +357,7 @@ WebPubSubResourceInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of a class represents the access keys of the resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WebPubSubKeysInner> beginRegenerateKey(
@@ -370,7 +374,7 @@ SyncPoller, WebPubSubKeysInner> beginRegenerateKe
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of a class represents the access keys of the resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WebPubSubKeysInner> beginRegenerateKey(
@@ -417,7 +421,7 @@ WebPubSubKeysInner regenerateKey(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestart(String resourceGroupName, String resourceName);
@@ -432,7 +436,7 @@ WebPubSubKeysInner regenerateKey(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestart(String resourceGroupName, String resourceName, Context context);
@@ -470,13 +474,14 @@ WebPubSubKeysInner regenerateKey(
* @param resourceGroupName The 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 list skus operation response.
+ * @return the list skus operation response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SkuListInner listSkus(String resourceGroupName, String resourceName);
+ Response listSkusWithResponse(String resourceGroupName, String resourceName, Context context);
/**
* List all available skus of the resource.
@@ -484,12 +489,11 @@ WebPubSubKeysInner regenerateKey(
* @param resourceGroupName The 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 list skus operation response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listSkusWithResponse(String resourceGroupName, String resourceName, Context context);
+ SkuListInner listSkus(String resourceGroupName, String resourceName);
}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomCertificateInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomCertificateInner.java
new file mode 100644
index 000000000000..6212dbe5bafb
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomCertificateInner.java
@@ -0,0 +1,146 @@
+// 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.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A custom certificate. */
+@Fluent
+public final class CustomCertificateInner extends ProxyResource {
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Custom certificate properties.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private CustomCertificateProperties innerProperties = new CustomCertificateProperties();
+
+ /** Creates an instance of CustomCertificateInner class. */
+ public CustomCertificateInner() {
+ }
+
+ /**
+ * 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 innerProperties property: Custom certificate properties.
+ *
+ * @return the innerProperties value.
+ */
+ private CustomCertificateProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the keyVaultBaseUri property: Base uri of the KeyVault that stores certificate.
+ *
+ * @return the keyVaultBaseUri value.
+ */
+ public String keyVaultBaseUri() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyVaultBaseUri();
+ }
+
+ /**
+ * Set the keyVaultBaseUri property: Base uri of the KeyVault that stores certificate.
+ *
+ * @param keyVaultBaseUri the keyVaultBaseUri value to set.
+ * @return the CustomCertificateInner object itself.
+ */
+ public CustomCertificateInner withKeyVaultBaseUri(String keyVaultBaseUri) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CustomCertificateProperties();
+ }
+ this.innerProperties().withKeyVaultBaseUri(keyVaultBaseUri);
+ return this;
+ }
+
+ /**
+ * Get the keyVaultSecretName property: Certificate secret name.
+ *
+ * @return the keyVaultSecretName value.
+ */
+ public String keyVaultSecretName() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyVaultSecretName();
+ }
+
+ /**
+ * Set the keyVaultSecretName property: Certificate secret name.
+ *
+ * @param keyVaultSecretName the keyVaultSecretName value to set.
+ * @return the CustomCertificateInner object itself.
+ */
+ public CustomCertificateInner withKeyVaultSecretName(String keyVaultSecretName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CustomCertificateProperties();
+ }
+ this.innerProperties().withKeyVaultSecretName(keyVaultSecretName);
+ return this;
+ }
+
+ /**
+ * Get the keyVaultSecretVersion property: Certificate secret version.
+ *
+ * @return the keyVaultSecretVersion value.
+ */
+ public String keyVaultSecretVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyVaultSecretVersion();
+ }
+
+ /**
+ * Set the keyVaultSecretVersion property: Certificate secret version.
+ *
+ * @param keyVaultSecretVersion the keyVaultSecretVersion value to set.
+ * @return the CustomCertificateInner object itself.
+ */
+ public CustomCertificateInner withKeyVaultSecretVersion(String keyVaultSecretVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CustomCertificateProperties();
+ }
+ this.innerProperties().withKeyVaultSecretVersion(keyVaultSecretVersion);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model CustomCertificateInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CustomCertificateInner.class);
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomCertificateProperties.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomCertificateProperties.java
new file mode 100644
index 000000000000..1c6383c0f669
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomCertificateProperties.java
@@ -0,0 +1,133 @@
+// 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.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Custom certificate properties. */
+@Fluent
+public final class CustomCertificateProperties {
+ /*
+ * Provisioning state of the resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Base uri of the KeyVault that stores certificate.
+ */
+ @JsonProperty(value = "keyVaultBaseUri", required = true)
+ private String keyVaultBaseUri;
+
+ /*
+ * Certificate secret name.
+ */
+ @JsonProperty(value = "keyVaultSecretName", required = true)
+ private String keyVaultSecretName;
+
+ /*
+ * Certificate secret version.
+ */
+ @JsonProperty(value = "keyVaultSecretVersion")
+ private String keyVaultSecretVersion;
+
+ /** Creates an instance of CustomCertificateProperties class. */
+ public CustomCertificateProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the keyVaultBaseUri property: Base uri of the KeyVault that stores certificate.
+ *
+ * @return the keyVaultBaseUri value.
+ */
+ public String keyVaultBaseUri() {
+ return this.keyVaultBaseUri;
+ }
+
+ /**
+ * Set the keyVaultBaseUri property: Base uri of the KeyVault that stores certificate.
+ *
+ * @param keyVaultBaseUri the keyVaultBaseUri value to set.
+ * @return the CustomCertificateProperties object itself.
+ */
+ public CustomCertificateProperties withKeyVaultBaseUri(String keyVaultBaseUri) {
+ this.keyVaultBaseUri = keyVaultBaseUri;
+ return this;
+ }
+
+ /**
+ * Get the keyVaultSecretName property: Certificate secret name.
+ *
+ * @return the keyVaultSecretName value.
+ */
+ public String keyVaultSecretName() {
+ return this.keyVaultSecretName;
+ }
+
+ /**
+ * Set the keyVaultSecretName property: Certificate secret name.
+ *
+ * @param keyVaultSecretName the keyVaultSecretName value to set.
+ * @return the CustomCertificateProperties object itself.
+ */
+ public CustomCertificateProperties withKeyVaultSecretName(String keyVaultSecretName) {
+ this.keyVaultSecretName = keyVaultSecretName;
+ return this;
+ }
+
+ /**
+ * Get the keyVaultSecretVersion property: Certificate secret version.
+ *
+ * @return the keyVaultSecretVersion value.
+ */
+ public String keyVaultSecretVersion() {
+ return this.keyVaultSecretVersion;
+ }
+
+ /**
+ * Set the keyVaultSecretVersion property: Certificate secret version.
+ *
+ * @param keyVaultSecretVersion the keyVaultSecretVersion value to set.
+ * @return the CustomCertificateProperties object itself.
+ */
+ public CustomCertificateProperties withKeyVaultSecretVersion(String keyVaultSecretVersion) {
+ this.keyVaultSecretVersion = keyVaultSecretVersion;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (keyVaultBaseUri() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property keyVaultBaseUri in model CustomCertificateProperties"));
+ }
+ if (keyVaultSecretName() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property keyVaultSecretName in model CustomCertificateProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CustomCertificateProperties.class);
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomDomainInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomDomainInner.java
new file mode 100644
index 000000000000..35f984be24c9
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomDomainInner.java
@@ -0,0 +1,124 @@
+// 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.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.ResourceReference;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A custom domain. */
+@Fluent
+public final class CustomDomainInner extends ProxyResource {
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Properties of a custom domain.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private CustomDomainProperties innerProperties = new CustomDomainProperties();
+
+ /** Creates an instance of CustomDomainInner class. */
+ public CustomDomainInner() {
+ }
+
+ /**
+ * 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 innerProperties property: Properties of a custom domain.
+ *
+ * @return the innerProperties value.
+ */
+ private CustomDomainProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the domainName property: The custom domain name.
+ *
+ * @return the domainName value.
+ */
+ public String domainName() {
+ return this.innerProperties() == null ? null : this.innerProperties().domainName();
+ }
+
+ /**
+ * Set the domainName property: The custom domain name.
+ *
+ * @param domainName the domainName value to set.
+ * @return the CustomDomainInner object itself.
+ */
+ public CustomDomainInner withDomainName(String domainName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CustomDomainProperties();
+ }
+ this.innerProperties().withDomainName(domainName);
+ return this;
+ }
+
+ /**
+ * Get the customCertificate property: Reference to a resource.
+ *
+ * @return the customCertificate value.
+ */
+ public ResourceReference customCertificate() {
+ return this.innerProperties() == null ? null : this.innerProperties().customCertificate();
+ }
+
+ /**
+ * Set the customCertificate property: Reference to a resource.
+ *
+ * @param customCertificate the customCertificate value to set.
+ * @return the CustomDomainInner object itself.
+ */
+ public CustomDomainInner withCustomCertificate(ResourceReference customCertificate) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CustomDomainProperties();
+ }
+ this.innerProperties().withCustomCertificate(customCertificate);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model CustomDomainInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CustomDomainInner.class);
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomDomainProperties.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomDomainProperties.java
new file mode 100644
index 000000000000..99ee6115c780
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/CustomDomainProperties.java
@@ -0,0 +1,110 @@
+// 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.ProvisioningState;
+import com.azure.resourcemanager.webpubsub.models.ResourceReference;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of a custom domain. */
+@Fluent
+public final class CustomDomainProperties {
+ /*
+ * Provisioning state of the resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The custom domain name.
+ */
+ @JsonProperty(value = "domainName", required = true)
+ private String domainName;
+
+ /*
+ * Reference to a resource.
+ */
+ @JsonProperty(value = "customCertificate", required = true)
+ private ResourceReference customCertificate;
+
+ /** Creates an instance of CustomDomainProperties class. */
+ public CustomDomainProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the domainName property: The custom domain name.
+ *
+ * @return the domainName value.
+ */
+ public String domainName() {
+ return this.domainName;
+ }
+
+ /**
+ * Set the domainName property: The custom domain name.
+ *
+ * @param domainName the domainName value to set.
+ * @return the CustomDomainProperties object itself.
+ */
+ public CustomDomainProperties withDomainName(String domainName) {
+ this.domainName = domainName;
+ return this;
+ }
+
+ /**
+ * Get the customCertificate property: Reference to a resource.
+ *
+ * @return the customCertificate value.
+ */
+ public ResourceReference customCertificate() {
+ return this.customCertificate;
+ }
+
+ /**
+ * Set the customCertificate property: Reference to a resource.
+ *
+ * @param customCertificate the customCertificate value to set.
+ * @return the CustomDomainProperties object itself.
+ */
+ public CustomDomainProperties withCustomCertificate(ResourceReference customCertificate) {
+ this.customCertificate = customCertificate;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (domainName() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property domainName in model CustomDomainProperties"));
+ }
+ if (customCertificate() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property customCertificate in model CustomDomainProperties"));
+ } else {
+ customCertificate().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CustomDomainProperties.class);
+}
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
index 43d21ac1c6ee..997c2f3acbfb 100644
--- 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
@@ -5,15 +5,11 @@
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.
*/
@@ -32,6 +28,10 @@ public final class NameAvailabilityInner {
@JsonProperty(value = "message")
private String message;
+ /** Creates an instance of NameAvailabilityInner class. */
+ public NameAvailabilityInner() {
+ }
+
/**
* Get the nameAvailable property: Indicates whether the name is available or not.
*
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
index 279b6ec5c29a..a9c61ee4fdf7 100644
--- 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
@@ -5,17 +5,13 @@
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}
*/
@@ -29,24 +25,28 @@ public final class OperationInner {
private Boolean isDataAction;
/*
- * The object that describes the operation.
+ * The object that describes a 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.
+ * 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.
+ * Extra Operation properties.
*/
@JsonProperty(value = "properties")
private OperationProperties properties;
+ /** Creates an instance of OperationInner class. */
+ public OperationInner() {
+ }
+
/**
* Get the name property: Name of the operation with format: {provider}/{resource}/{operation}.
*
@@ -88,7 +88,7 @@ public OperationInner withIsDataAction(Boolean isDataAction) {
}
/**
- * Get the display property: The object that describes the operation.
+ * Get the display property: The object that describes a operation.
*
* @return the display value.
*/
@@ -97,7 +97,7 @@ public OperationDisplay display() {
}
/**
- * Set the display property: The object that describes the operation.
+ * Set the display property: The object that describes a operation.
*
* @param display the display value to set.
* @return the OperationInner object itself.
@@ -130,7 +130,7 @@ public OperationInner withOrigin(String origin) {
}
/**
- * Get the properties property: Extra properties for the operation.
+ * Get the properties property: Extra Operation properties.
*
* @return the properties value.
*/
@@ -139,7 +139,7 @@ public OperationProperties properties() {
}
/**
- * Set the properties property: Extra properties for the operation.
+ * Set the properties property: Extra Operation properties.
*
* @param properties the properties value to set.
* @return the OperationInner object itself.
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
index 2a5cd55fba9c..794c183afb8f 100644
--- 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
@@ -7,19 +7,15 @@
import com.azure.core.annotation.Fluent;
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;
import java.util.List;
/** A private endpoint connection to an azure resource. */
@Fluent
public final class PrivateEndpointConnectionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -27,11 +23,15 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
private SystemData systemData;
/*
- * Properties of the private endpoint connection
+ * Private endpoint connection properties
*/
@JsonProperty(value = "properties")
private PrivateEndpointConnectionProperties innerProperties;
+ /** Creates an instance of PrivateEndpointConnectionInner class. */
+ public PrivateEndpointConnectionInner() {
+ }
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
@@ -42,7 +42,7 @@ public SystemData systemData() {
}
/**
- * Get the innerProperties property: Properties of the private endpoint connection.
+ * Get the innerProperties property: Private endpoint connection properties.
*
* @return the innerProperties value.
*/
@@ -51,7 +51,7 @@ private PrivateEndpointConnectionProperties innerProperties() {
}
/**
- * Get the provisioningState property: Provisioning state of the private endpoint connection.
+ * Get the provisioningState property: Provisioning state of the resource.
*
* @return the provisioningState value.
*/
@@ -60,7 +60,7 @@ public ProvisioningState provisioningState() {
}
/**
- * Get the privateEndpoint property: Private endpoint associated with the private endpoint connection.
+ * Get the privateEndpoint property: Private endpoint.
*
* @return the privateEndpoint value.
*/
@@ -69,7 +69,7 @@ public PrivateEndpoint privateEndpoint() {
}
/**
- * Set the privateEndpoint property: Private endpoint associated with the private endpoint connection.
+ * Set the privateEndpoint property: Private endpoint.
*
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionInner object itself.
@@ -92,7 +92,7 @@ public List groupIds() {
}
/**
- * Get the privateLinkServiceConnectionState property: Connection state.
+ * Get the privateLinkServiceConnectionState property: Connection state of the private endpoint connection.
*
* @return the privateLinkServiceConnectionState value.
*/
@@ -101,7 +101,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
}
/**
- * Set the privateLinkServiceConnectionState property: Connection state.
+ * Set the privateLinkServiceConnectionState property: Connection state of the private endpoint connection.
*
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnectionInner object itself.
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateEndpointConnectionProperties.java
index 26300d518a99..a9347af361b3 100644
--- a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateEndpointConnectionProperties.java
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateEndpointConnectionProperties.java
@@ -5,27 +5,23 @@
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.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;
import java.util.List;
/** Private endpoint connection properties. */
@Fluent
public final class PrivateEndpointConnectionProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionProperties.class);
-
/*
- * Provisioning state of the private endpoint connection
+ * Provisioning state of the resource.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
/*
- * Private endpoint associated with the private endpoint connection
+ * Private endpoint
*/
@JsonProperty(value = "privateEndpoint")
private PrivateEndpoint privateEndpoint;
@@ -37,13 +33,17 @@ public final class PrivateEndpointConnectionProperties {
private List groupIds;
/*
- * Connection state
+ * Connection state of the private endpoint connection
*/
@JsonProperty(value = "privateLinkServiceConnectionState")
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+ /** Creates an instance of PrivateEndpointConnectionProperties class. */
+ public PrivateEndpointConnectionProperties() {
+ }
+
/**
- * Get the provisioningState property: Provisioning state of the private endpoint connection.
+ * Get the provisioningState property: Provisioning state of the resource.
*
* @return the provisioningState value.
*/
@@ -52,7 +52,7 @@ public ProvisioningState provisioningState() {
}
/**
- * Get the privateEndpoint property: Private endpoint associated with the private endpoint connection.
+ * Get the privateEndpoint property: Private endpoint.
*
* @return the privateEndpoint value.
*/
@@ -61,7 +61,7 @@ public PrivateEndpoint privateEndpoint() {
}
/**
- * Set the privateEndpoint property: Private endpoint associated with the private endpoint connection.
+ * Set the privateEndpoint property: Private endpoint.
*
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionProperties object itself.
@@ -81,7 +81,7 @@ public List groupIds() {
}
/**
- * Get the privateLinkServiceConnectionState property: Connection state.
+ * Get the privateLinkServiceConnectionState property: Connection state of the private endpoint connection.
*
* @return the privateLinkServiceConnectionState value.
*/
@@ -90,7 +90,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
}
/**
- * Set the privateLinkServiceConnectionState property: Connection state.
+ * Set the privateLinkServiceConnectionState property: Connection state of the private endpoint connection.
*
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnectionProperties object itself.
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
index e3d4589d8af4..79297011189c 100644
--- 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
@@ -6,25 +6,25 @@
import com.azure.core.annotation.Fluent;
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. */
@Fluent
public final class PrivateLinkResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceInner.class);
-
/*
- * Properties of a private link resource
+ * Private link resource properties
*/
@JsonProperty(value = "properties")
private PrivateLinkResourceProperties innerProperties;
+ /** Creates an instance of PrivateLinkResourceInner class. */
+ public PrivateLinkResourceInner() {
+ }
+
/**
- * Get the innerProperties property: Properties of a private link resource.
+ * Get the innerProperties property: Private link resource properties.
*
* @return the innerProperties value.
*/
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateLinkResourceProperties.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateLinkResourceProperties.java
index 197a7ece2d1e..d4c97c5c6d11 100644
--- a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateLinkResourceProperties.java
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/PrivateLinkResourceProperties.java
@@ -5,17 +5,13 @@
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.ShareablePrivateLinkResourceType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Private link resource properties. */
@Fluent
public final class PrivateLinkResourceProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceProperties.class);
-
/*
* Group Id of the private link resource
*/
@@ -40,6 +36,10 @@ public final class PrivateLinkResourceProperties {
@JsonProperty(value = "shareablePrivateLinkResourceTypes")
private List shareablePrivateLinkResourceTypes;
+ /** Creates an instance of PrivateLinkResourceProperties class. */
+ public PrivateLinkResourceProperties() {
+ }
+
/**
* Get the groupId property: Group Id of the private link resource.
*
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
index 1e92d03b4f19..4782dea17814 100644
--- 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
@@ -7,17 +7,13 @@
import com.azure.core.annotation.Fluent;
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. */
@Fluent
public final class SharedPrivateLinkResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SharedPrivateLinkResourceInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -25,11 +21,15 @@ public final class SharedPrivateLinkResourceInner extends ProxyResource {
private SystemData systemData;
/*
- * Describes the properties of a Shared Private Link Resource
+ * Describes the properties of an existing Shared Private Link Resource
*/
@JsonProperty(value = "properties")
private SharedPrivateLinkResourceProperties innerProperties;
+ /** Creates an instance of SharedPrivateLinkResourceInner class. */
+ public SharedPrivateLinkResourceInner() {
+ }
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
@@ -40,7 +40,7 @@ public SystemData systemData() {
}
/**
- * Get the innerProperties property: Describes the properties of a Shared Private Link Resource.
+ * Get the innerProperties property: Describes the properties of an existing Shared Private Link Resource.
*
* @return the innerProperties value.
*/
@@ -95,7 +95,7 @@ public SharedPrivateLinkResourceInner withPrivateLinkResourceId(String privateLi
}
/**
- * Get the provisioningState property: Provisioning state of the shared private link resource.
+ * Get the provisioningState property: Provisioning state of the resource.
*
* @return the provisioningState value.
*/
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SharedPrivateLinkResourceProperties.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SharedPrivateLinkResourceProperties.java
index 34fe5dbcbdfd..8bbd5c6dab1a 100644
--- a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SharedPrivateLinkResourceProperties.java
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SharedPrivateLinkResourceProperties.java
@@ -8,17 +8,13 @@
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 the properties of an existing Shared Private Link Resource. */
@Fluent
public final class SharedPrivateLinkResourceProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SharedPrivateLinkResourceProperties.class);
-
/*
- * The group id from the provider of resource the shared private link
- * resource is for
+ * The group id from the provider of resource the shared private link resource is for
*/
@JsonProperty(value = "groupId", required = true)
private String groupId;
@@ -30,14 +26,13 @@ public final class SharedPrivateLinkResourceProperties {
private String privateLinkResourceId;
/*
- * Provisioning state of the shared private link resource
+ * Provisioning state of the resource.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
/*
- * The request message for requesting approval of the shared private link
- * resource
+ * The request message for requesting approval of the shared private link resource
*/
@JsonProperty(value = "requestMessage")
private String requestMessage;
@@ -48,6 +43,10 @@ public final class SharedPrivateLinkResourceProperties {
@JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
private SharedPrivateLinkResourceStatus status;
+ /** Creates an instance of SharedPrivateLinkResourceProperties class. */
+ public SharedPrivateLinkResourceProperties() {
+ }
+
/**
* Get the groupId property: The group id from the provider of resource the shared private link resource is for.
*
@@ -89,7 +88,7 @@ public SharedPrivateLinkResourceProperties withPrivateLinkResourceId(String priv
}
/**
- * Get the provisioningState property: Provisioning state of the shared private link resource.
+ * Get the provisioningState property: Provisioning state of the resource.
*
* @return the provisioningState value.
*/
@@ -133,17 +132,19 @@ public SharedPrivateLinkResourceStatus status() {
*/
public void validate() {
if (groupId() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property groupId in model SharedPrivateLinkResourceProperties"));
}
if (privateLinkResourceId() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property privateLinkResourceId in model"
+ " SharedPrivateLinkResourceProperties"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(SharedPrivateLinkResourceProperties.class);
}
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
index 5301e9d9d0e0..f4986e30167f 100644
--- 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
@@ -5,16 +5,12 @@
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
*/
@@ -28,8 +24,7 @@ public final class SignalRServiceUsageInner {
private Long currentValue;
/*
- * The maximum permitted value for the usage quota. If there is no limit,
- * this value will be -1.
+ * The maximum permitted value for the usage quota. If there is no limit, this value will be -1.
*/
@JsonProperty(value = "limit")
private Long limit;
@@ -41,12 +36,16 @@ public final class SignalRServiceUsageInner {
private SignalRServiceUsageName name;
/*
- * Representing the units of the usage quota. Possible values are: Count,
- * Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond.
+ * Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond,
+ * BytesPerSecond.
*/
@JsonProperty(value = "unit")
private String unit;
+ /** Creates an instance of SignalRServiceUsageInner class. */
+ public SignalRServiceUsageInner() {
+ }
+
/**
* Get the id property: Fully qualified ARM resource id.
*
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SkuListInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SkuListInner.java
index 813099f28052..203915dc1e28 100644
--- a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SkuListInner.java
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/SkuListInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.webpubsub.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.webpubsub.models.Sku;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The list skus operation response. */
@Immutable
public final class SkuListInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SkuListInner.class);
-
/*
* The list of skus available for the resource.
*/
@@ -23,13 +19,16 @@ public final class SkuListInner {
private List value;
/*
- * The URL the client should use to fetch the next page (per server side
- * paging).
+ * The URL the client should use to fetch the next page (per server side paging).
* It's null for now, added for future use.
*/
@JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
private String nextLink;
+ /** Creates an instance of SkuListInner class. */
+ public SkuListInner() {
+ }
+
/**
* Get the value property: The list of skus available for the resource.
*
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubHubInner.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubHubInner.java
index b215c9b9132f..54a397691b6d 100644
--- a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubHubInner.java
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubHubInner.java
@@ -9,14 +9,11 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.webpubsub.models.WebPubSubHubProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A hub setting. */
@Fluent
public final class WebPubSubHubInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WebPubSubHubInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -24,11 +21,15 @@ public final class WebPubSubHubInner extends ProxyResource {
private SystemData systemData;
/*
- * Properties of the hub setting.
+ * Properties of a hub.
*/
@JsonProperty(value = "properties", required = true)
private WebPubSubHubProperties properties;
+ /** Creates an instance of WebPubSubHubInner class. */
+ public WebPubSubHubInner() {
+ }
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
@@ -39,7 +40,7 @@ public SystemData systemData() {
}
/**
- * Get the properties property: Properties of the hub setting.
+ * Get the properties property: Properties of a hub.
*
* @return the properties value.
*/
@@ -48,7 +49,7 @@ public WebPubSubHubProperties properties() {
}
/**
- * Set the properties property: Properties of the hub setting.
+ * Set the properties property: Properties of a hub.
*
* @param properties the properties value to set.
* @return the WebPubSubHubInner object itself.
@@ -65,11 +66,13 @@ public WebPubSubHubInner withProperties(WebPubSubHubProperties properties) {
*/
public void validate() {
if (properties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property properties in model WebPubSubHubInner"));
} else {
properties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(WebPubSubHubInner.class);
}
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
index 87c17313f8a9..f41c4a121e67 100644
--- 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
@@ -5,15 +5,11 @@
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.
*/
@@ -38,6 +34,10 @@ public final class WebPubSubKeysInner {
@JsonProperty(value = "secondaryConnectionString")
private String secondaryConnectionString;
+ /** Creates an instance of WebPubSubKeysInner class. */
+ public WebPubSubKeysInner() {
+ }
+
/**
* Get the primaryKey property: The primary access key.
*
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubProperties.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubProperties.java
index a814d7ef99a2..98204ba28a23 100644
--- a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubProperties.java
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/fluent/models/WebPubSubProperties.java
@@ -5,21 +5,17 @@
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.LiveTraceConfiguration;
import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
import com.azure.resourcemanager.webpubsub.models.ResourceLogConfiguration;
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;
/** A class that describes the properties of the resource. */
@Fluent
public final class WebPubSubProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WebPubSubProperties.class);
-
/*
* Provisioning state of the resource.
*/
@@ -39,22 +35,19 @@ public final class WebPubSubProperties {
private String hostname;
/*
- * The publicly accessible port of the resource which is designed for
- * browser/client side usage.
+ * The publicly accessible port of the resource which is designed for browser/client side usage.
*/
@JsonProperty(value = "publicPort", access = JsonProperty.Access.WRITE_ONLY)
private Integer publicPort;
/*
- * The publicly accessible port of the resource which is designed for
- * customer server side usage.
+ * The publicly accessible port of the resource which is designed for customer server side usage.
*/
@JsonProperty(value = "serverPort", access = JsonProperty.Access.WRITE_ONLY)
private Integer serverPort;
/*
- * Version of the resource. Probably you need the same or higher version of
- * client SDKs.
+ * Version of the resource. Probably you need the same or higher version of client SDKs.
*/
@JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
private String version;
@@ -72,7 +65,7 @@ public final class WebPubSubProperties {
private List sharedPrivateLinkResources;
/*
- * TLS settings.
+ * TLS settings for the resource
*/
@JsonProperty(value = "tls")
private WebPubSubTlsSettings tls;
@@ -91,16 +84,12 @@ public final class WebPubSubProperties {
/*
* Resource log configuration of a Microsoft.SignalRService resource.
- * If resourceLogConfiguration isn't null or empty, it will override
- * options "EnableConnectivityLog" and "EnableMessagingLogs" in features.
- * Otherwise, use options "EnableConnectivityLog" and "EnableMessagingLogs"
- * in features.
*/
@JsonProperty(value = "resourceLogConfiguration")
private ResourceLogConfiguration resourceLogConfiguration;
/*
- * Network ACLs
+ * Network ACLs for the resource
*/
@JsonProperty(value = "networkACLs")
private WebPubSubNetworkACLs networkACLs;
@@ -108,8 +97,7 @@ public final class WebPubSubProperties {
/*
* 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.
+ * When it's Disabled, public network access is always disabled no matter what you set in network ACLs.
*/
@JsonProperty(value = "publicNetworkAccess")
private String publicNetworkAccess;
@@ -130,6 +118,10 @@ public final class WebPubSubProperties {
@JsonProperty(value = "disableAadAuth")
private Boolean disableAadAuth;
+ /** Creates an instance of WebPubSubProperties class. */
+ public WebPubSubProperties() {
+ }
+
/**
* Get the provisioningState property: Provisioning state of the resource.
*
@@ -205,7 +197,7 @@ public List sharedPrivateLinkResources() {
}
/**
- * Get the tls property: TLS settings.
+ * Get the tls property: TLS settings for the resource.
*
* @return the tls value.
*/
@@ -214,7 +206,7 @@ public WebPubSubTlsSettings tls() {
}
/**
- * Set the tls property: TLS settings.
+ * Set the tls property: TLS settings for the resource.
*
* @param tls the tls value to set.
* @return the WebPubSubProperties object itself.
@@ -254,10 +246,7 @@ public WebPubSubProperties withLiveTraceConfiguration(LiveTraceConfiguration liv
}
/**
- * Get the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource. If
- * resourceLogConfiguration isn't null or empty, it will override options "EnableConnectivityLog" and
- * "EnableMessagingLogs" in features. Otherwise, use options "EnableConnectivityLog" and "EnableMessagingLogs" in
- * features.
+ * Get the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource.
*
* @return the resourceLogConfiguration value.
*/
@@ -266,10 +255,7 @@ public ResourceLogConfiguration resourceLogConfiguration() {
}
/**
- * Set the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource. If
- * resourceLogConfiguration isn't null or empty, it will override options "EnableConnectivityLog" and
- * "EnableMessagingLogs" in features. Otherwise, use options "EnableConnectivityLog" and "EnableMessagingLogs" in
- * features.
+ * Set the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource.
*
* @param resourceLogConfiguration the resourceLogConfiguration value to set.
* @return the WebPubSubProperties object itself.
@@ -280,7 +266,7 @@ public WebPubSubProperties withResourceLogConfiguration(ResourceLogConfiguration
}
/**
- * Get the networkACLs property: Network ACLs.
+ * Get the networkACLs property: Network ACLs for the resource.
*
* @return the networkACLs value.
*/
@@ -289,7 +275,7 @@ public WebPubSubNetworkACLs networkACLs() {
}
/**
- * Set the networkACLs property: Network ACLs.
+ * Set the networkACLs property: Network ACLs for the resource.
*
* @param networkACLs the networkACLs value to set.
* @return the WebPubSubProperties object itself.
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
index 484195d25907..23e8bbcac758 100644
--- 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
@@ -7,7 +7,6 @@
import com.azure.core.annotation.Fluent;
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.LiveTraceConfiguration;
import com.azure.resourcemanager.webpubsub.models.ManagedIdentity;
import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
@@ -15,7 +14,6 @@
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;
@@ -23,22 +21,20 @@
/** A class represent a resource. */
@Fluent
public final class WebPubSubResourceInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WebPubSubResourceInner.class);
-
/*
- * The billing information of the resource.(e.g. Free, Standard)
+ * The billing information of the resource.
*/
@JsonProperty(value = "sku")
private ResourceSku sku;
/*
- * Settings used to provision or configure the resource
+ * A class that describes the properties of the resource
*/
@JsonProperty(value = "properties")
private WebPubSubProperties innerProperties;
/*
- * The managed identity response
+ * A class represent managed identities used for request and response
*/
@JsonProperty(value = "identity")
private ManagedIdentity identity;
@@ -49,8 +45,12 @@ public final class WebPubSubResourceInner extends Resource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /** Creates an instance of WebPubSubResourceInner class. */
+ public WebPubSubResourceInner() {
+ }
+
/**
- * Get the sku property: The billing information of the resource.(e.g. Free, Standard).
+ * Get the sku property: The billing information of the resource.
*
* @return the sku value.
*/
@@ -59,7 +59,7 @@ public ResourceSku sku() {
}
/**
- * Set the sku property: The billing information of the resource.(e.g. Free, Standard).
+ * Set the sku property: The billing information of the resource.
*
* @param sku the sku value to set.
* @return the WebPubSubResourceInner object itself.
@@ -70,7 +70,7 @@ public WebPubSubResourceInner withSku(ResourceSku sku) {
}
/**
- * Get the innerProperties property: Settings used to provision or configure the resource.
+ * Get the innerProperties property: A class that describes the properties of the resource.
*
* @return the innerProperties value.
*/
@@ -79,7 +79,7 @@ private WebPubSubProperties innerProperties() {
}
/**
- * Get the identity property: The managed identity response.
+ * Get the identity property: A class represent managed identities used for request and response.
*
* @return the identity value.
*/
@@ -88,7 +88,7 @@ public ManagedIdentity identity() {
}
/**
- * Set the identity property: The managed identity response.
+ * Set the identity property: A class represent managed identities used for request and response.
*
* @param identity the identity value to set.
* @return the WebPubSubResourceInner object itself.
@@ -196,7 +196,7 @@ public List sharedPrivateLinkResources() {
}
/**
- * Get the tls property: TLS settings.
+ * Get the tls property: TLS settings for the resource.
*
* @return the tls value.
*/
@@ -205,7 +205,7 @@ public WebPubSubTlsSettings tls() {
}
/**
- * Set the tls property: TLS settings.
+ * Set the tls property: TLS settings for the resource.
*
* @param tls the tls value to set.
* @return the WebPubSubResourceInner object itself.
@@ -251,10 +251,7 @@ public WebPubSubResourceInner withLiveTraceConfiguration(LiveTraceConfiguration
}
/**
- * Get the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource. If
- * resourceLogConfiguration isn't null or empty, it will override options "EnableConnectivityLog" and
- * "EnableMessagingLogs" in features. Otherwise, use options "EnableConnectivityLog" and "EnableMessagingLogs" in
- * features.
+ * Get the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource.
*
* @return the resourceLogConfiguration value.
*/
@@ -263,10 +260,7 @@ public ResourceLogConfiguration resourceLogConfiguration() {
}
/**
- * Set the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource. If
- * resourceLogConfiguration isn't null or empty, it will override options "EnableConnectivityLog" and
- * "EnableMessagingLogs" in features. Otherwise, use options "EnableConnectivityLog" and "EnableMessagingLogs" in
- * features.
+ * Set the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource.
*
* @param resourceLogConfiguration the resourceLogConfiguration value to set.
* @return the WebPubSubResourceInner object itself.
@@ -280,7 +274,7 @@ public WebPubSubResourceInner withResourceLogConfiguration(ResourceLogConfigurat
}
/**
- * Get the networkACLs property: Network ACLs.
+ * Get the networkACLs property: Network ACLs for the resource.
*
* @return the networkACLs value.
*/
@@ -289,7 +283,7 @@ public WebPubSubNetworkACLs networkACLs() {
}
/**
- * Set the networkACLs property: Network ACLs.
+ * Set the networkACLs property: Network ACLs for the resource.
*
* @param networkACLs the networkACLs value to set.
* @return the WebPubSubResourceInner object itself.
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/CustomCertificateImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/CustomCertificateImpl.java
new file mode 100644
index 000000000000..8624ba526594
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/CustomCertificateImpl.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.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.webpubsub.fluent.models.CustomCertificateInner;
+import com.azure.resourcemanager.webpubsub.models.CustomCertificate;
+import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
+
+public final class CustomCertificateImpl
+ implements CustomCertificate, CustomCertificate.Definition, CustomCertificate.Update {
+ private CustomCertificateInner 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 ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String keyVaultBaseUri() {
+ return this.innerModel().keyVaultBaseUri();
+ }
+
+ public String keyVaultSecretName() {
+ return this.innerModel().keyVaultSecretName();
+ }
+
+ public String keyVaultSecretVersion() {
+ return this.innerModel().keyVaultSecretVersion();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public CustomCertificateInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String resourceName;
+
+ private String certificateName;
+
+ public CustomCertificateImpl withExistingWebPubSub(String resourceGroupName, String resourceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.resourceName = resourceName;
+ return this;
+ }
+
+ public CustomCertificate create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomCertificates()
+ .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public CustomCertificate create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomCertificates()
+ .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), context);
+ return this;
+ }
+
+ CustomCertificateImpl(String name, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerObject = new CustomCertificateInner();
+ this.serviceManager = serviceManager;
+ this.certificateName = name;
+ }
+
+ public CustomCertificateImpl update() {
+ return this;
+ }
+
+ public CustomCertificate apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomCertificates()
+ .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public CustomCertificate apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomCertificates()
+ .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), context);
+ return this;
+ }
+
+ CustomCertificateImpl(
+ CustomCertificateInner innerObject, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.resourceName = Utils.getValueFromIdByName(innerObject.id(), "webPubSub");
+ this.certificateName = Utils.getValueFromIdByName(innerObject.id(), "customCertificates");
+ }
+
+ public CustomCertificate refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomCertificates()
+ .getWithResponse(resourceGroupName, resourceName, certificateName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public CustomCertificate refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomCertificates()
+ .getWithResponse(resourceGroupName, resourceName, certificateName, context)
+ .getValue();
+ return this;
+ }
+
+ public CustomCertificateImpl withKeyVaultBaseUri(String keyVaultBaseUri) {
+ this.innerModel().withKeyVaultBaseUri(keyVaultBaseUri);
+ return this;
+ }
+
+ public CustomCertificateImpl withKeyVaultSecretName(String keyVaultSecretName) {
+ this.innerModel().withKeyVaultSecretName(keyVaultSecretName);
+ return this;
+ }
+
+ public CustomCertificateImpl withKeyVaultSecretVersion(String keyVaultSecretVersion) {
+ this.innerModel().withKeyVaultSecretVersion(keyVaultSecretVersion);
+ return this;
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/CustomDomainImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/CustomDomainImpl.java
new file mode 100644
index 000000000000..dbdf288a4a62
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/CustomDomainImpl.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.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.webpubsub.fluent.models.CustomDomainInner;
+import com.azure.resourcemanager.webpubsub.models.CustomDomain;
+import com.azure.resourcemanager.webpubsub.models.ProvisioningState;
+import com.azure.resourcemanager.webpubsub.models.ResourceReference;
+
+public final class CustomDomainImpl implements CustomDomain, CustomDomain.Definition, CustomDomain.Update {
+ private CustomDomainInner 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 ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String domainName() {
+ return this.innerModel().domainName();
+ }
+
+ public ResourceReference customCertificate() {
+ return this.innerModel().customCertificate();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public CustomDomainInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String resourceName;
+
+ private String name;
+
+ public CustomDomainImpl withExistingWebPubSub(String resourceGroupName, String resourceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.resourceName = resourceName;
+ return this;
+ }
+
+ public CustomDomain create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomDomains()
+ .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public CustomDomain create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomDomains()
+ .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), context);
+ return this;
+ }
+
+ CustomDomainImpl(String name, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerObject = new CustomDomainInner();
+ this.serviceManager = serviceManager;
+ this.name = name;
+ }
+
+ public CustomDomainImpl update() {
+ return this;
+ }
+
+ public CustomDomain apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomDomains()
+ .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public CustomDomain apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomDomains()
+ .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), context);
+ return this;
+ }
+
+ CustomDomainImpl(
+ CustomDomainInner innerObject, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.resourceName = Utils.getValueFromIdByName(innerObject.id(), "webPubSub");
+ this.name = Utils.getValueFromIdByName(innerObject.id(), "customDomains");
+ }
+
+ public CustomDomain refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomDomains()
+ .getWithResponse(resourceGroupName, resourceName, name, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public CustomDomain refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getWebPubSubCustomDomains()
+ .getWithResponse(resourceGroupName, resourceName, name, context)
+ .getValue();
+ return this;
+ }
+
+ public CustomDomainImpl withDomainName(String domainName) {
+ this.innerModel().withDomainName(domainName);
+ return this;
+ }
+
+ public CustomDomainImpl withCustomCertificate(ResourceReference customCertificate) {
+ this.innerModel().withCustomCertificate(customCertificate);
+ return this;
+ }
+}
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
index c320fe3ea2d4..b6e6495e340f 100644
--- 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
@@ -25,7 +25,6 @@
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;
@@ -33,8 +32,6 @@
/** 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;
@@ -85,7 +82,8 @@ Mono> listNext(
*
* @throws 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.
+ * @return result of the request to list REST API operations along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -118,7 +116,8 @@ private Mono> listSinglePageAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return result of the request to list REST API operations along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -148,7 +147,7 @@ private Mono> listSinglePageAsync(Context context)
*
* @throws 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.
+ * @return result of the request to list REST API operations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -162,7 +161,7 @@ private PagedFlux listAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return result of the request to list REST API operations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -175,7 +174,7 @@ private PagedFlux listAsync(Context context) {
*
* @throws 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.
+ * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -189,7 +188,7 @@ public PagedIterable list() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -199,11 +198,13 @@ public PagedIterable list(Context context) {
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * 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.
+ * @return result of the request to list REST API operations along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -234,12 +235,14 @@ private Mono> listNextSinglePageAsync(String nextL
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * 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.
+ * @return result of the request to list REST API operations along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
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
index 34d4e47ccaa3..46923b4dc029 100644
--- 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
@@ -11,10 +11,9 @@
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 static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class);
private final OperationsClient innerClient;
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
index fb15fc4f63cc..bd566baa3f2c 100644
--- 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
@@ -53,6 +53,10 @@ public SharedPrivateLinkResourceStatus status() {
return this.innerModel().status();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public SharedPrivateLinkResourceInner innerModel() {
return this.innerObject;
}
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
index a624f960b579..330fb890858c 100644
--- 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
@@ -25,7 +25,6 @@
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;
@@ -33,8 +32,6 @@
/** 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;
@@ -88,7 +85,8 @@ Mono> listNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return object that includes an array of the resource usages and a possible link for next set along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String location) {
@@ -139,7 +137,8 @@ private Mono> listSinglePageAsync(String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return object that includes an array of the resource usages and a possible link for next set along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String location, Context context) {
@@ -186,7 +185,8 @@ private Mono> listSinglePageAsync(String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return object that includes an array of the resource usages and a possible link for next set as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String location) {
@@ -201,7 +201,8 @@ private PagedFlux listAsync(String location) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return object that includes an array of the resource usages and a possible link for next set as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String location, Context context) {
@@ -216,7 +217,8 @@ private PagedFlux listAsync(String location, Context c
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return object that includes an array of the resource usages and a possible link for next set as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String location) {
@@ -231,7 +233,8 @@ public PagedIterable list(String location) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return object that includes an array of the resource usages and a possible link for next set as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String location, Context context) {
@@ -241,11 +244,13 @@ public PagedIterable list(String location, Context con
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * 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.
+ * @return object that includes an array of the resource usages and a possible link for next set along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -276,12 +281,14 @@ private Mono> listNextSinglePageAsync(St
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * 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.
+ * @return object that includes an array of the resource usages and a possible link for next set along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
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
index dd445e8415c0..b7754d560819 100644
--- 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
@@ -11,10 +11,9 @@
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 static final ClientLogger LOGGER = new ClientLogger(UsagesImpl.class);
private final UsagesClient innerClient;
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomCertificatesClientImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomCertificatesClientImpl.java
new file mode 100644
index 000000000000..6e26a6cacdfc
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomCertificatesClientImpl.java
@@ -0,0 +1,1046 @@
+// 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.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.webpubsub.fluent.WebPubSubCustomCertificatesClient;
+import com.azure.resourcemanager.webpubsub.fluent.models.CustomCertificateInner;
+import com.azure.resourcemanager.webpubsub.models.CustomCertificateList;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in WebPubSubCustomCertificatesClient. */
+public final class WebPubSubCustomCertificatesClientImpl implements WebPubSubCustomCertificatesClient {
+ /** The proxy service used to perform REST calls. */
+ private final WebPubSubCustomCertificatesService service;
+
+ /** The service client containing this operation class. */
+ private final WebPubSubManagementClientImpl client;
+
+ /**
+ * Initializes an instance of WebPubSubCustomCertificatesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ WebPubSubCustomCertificatesClientImpl(WebPubSubManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(
+ WebPubSubCustomCertificatesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for WebPubSubManagementClientWebPubSubCustomCertificates to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "WebPubSubManagementC")
+ private interface WebPubSubCustomCertificatesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService"
+ + "/webPubSub/{resourceName}/customCertificates")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService"
+ + "/webPubSub/{resourceName}/customCertificates/{certificateName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService"
+ + "/webPubSub/{resourceName}/customCertificates/{certificateName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @PathParam("certificateName") String certificateName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CustomCertificateInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService"
+ + "/webPubSub/{resourceName}/customCertificates/{certificateName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @PathParam("certificateName") String certificateName,
+ @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);
+ }
+
+ /**
+ * List all custom certificates.
+ *
+ * @param resourceGroupName The 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom certificates list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String resourceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ 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()));
+ }
+
+ /**
+ * List all custom certificates.
+ *
+ * @param resourceGroupName The 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom certificates list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String resourceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List all custom certificates.
+ *
+ * @param resourceGroupName The 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom certificates list as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String resourceName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List all custom certificates.
+ *
+ * @param resourceGroupName The 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom certificates list as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String resourceName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, resourceName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List all custom certificates.
+ *
+ * @param resourceGroupName The 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom certificates list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String resourceName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, resourceName));
+ }
+
+ /**
+ * List all custom certificates.
+ *
+ * @param resourceGroupName The 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 ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom certificates list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String resourceName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context));
+ }
+
+ /**
+ * Get a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 custom certificate along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String resourceName, String certificateName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom certificate along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String resourceName, String certificateName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 custom certificate on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String resourceName, String certificateName) {
+ return getWithResponseAsync(resourceGroupName, resourceName, certificateName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom certificate along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String resourceName, String certificateName, Context context) {
+ return getWithResponseAsync(resourceGroupName, resourceName, certificateName, context).block();
+ }
+
+ /**
+ * Get a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomCertificateInner get(String resourceGroupName, String resourceName, String certificateName) {
+ return getWithResponse(resourceGroupName, resourceName, certificateName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 custom certificate along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ certificateName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom certificate along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String resourceName,
+ String certificateName,
+ CustomCertificateInner parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ certificateName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CustomCertificateInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, resourceName, certificateName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ CustomCertificateInner.class,
+ CustomCertificateInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CustomCertificateInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String resourceName,
+ String certificateName,
+ CustomCertificateInner parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, resourceName, certificateName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ CustomCertificateInner.class,
+ CustomCertificateInner.class,
+ context);
+ }
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CustomCertificateInner> beginCreateOrUpdate(
+ String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters) {
+ return beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters).getSyncPoller();
+ }
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CustomCertificateInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String resourceName,
+ String certificateName,
+ CustomCertificateInner parameters,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 custom certificate on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters) {
+ return beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom certificate on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String resourceName,
+ String certificateName,
+ CustomCertificateInner parameters,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomCertificateInner createOrUpdate(
+ String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters) {
+ return createOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters).block();
+ }
+
+ /**
+ * Create or update a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param parameters A custom certificate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomCertificateInner createOrUpdate(
+ String resourceGroupName,
+ String resourceName,
+ String certificateName,
+ CustomCertificateInner parameters,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters, context).block();
+ }
+
+ /**
+ * Delete a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String resourceName, String certificateName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String resourceName, String certificateName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (certificateName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ certificateName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Delete a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String resourceName, String certificateName) {
+ return deleteWithResponseAsync(resourceGroupName, resourceName, certificateName)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Delete a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(
+ String resourceGroupName, String resourceName, String certificateName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, resourceName, certificateName, context).block();
+ }
+
+ /**
+ * Delete a custom certificate.
+ *
+ * @param resourceGroupName The 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 certificateName Custom certificate name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String resourceName, String certificateName) {
+ deleteWithResponse(resourceGroupName, resourceName, certificateName, Context.NONE);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * 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 custom certificates list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * 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 custom certificates list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomCertificatesImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomCertificatesImpl.java
new file mode 100644
index 000000000000..153c1478ac6b
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomCertificatesImpl.java
@@ -0,0 +1,198 @@
+// 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.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.fluent.WebPubSubCustomCertificatesClient;
+import com.azure.resourcemanager.webpubsub.fluent.models.CustomCertificateInner;
+import com.azure.resourcemanager.webpubsub.models.CustomCertificate;
+import com.azure.resourcemanager.webpubsub.models.WebPubSubCustomCertificates;
+
+public final class WebPubSubCustomCertificatesImpl implements WebPubSubCustomCertificates {
+ private static final ClientLogger LOGGER = new ClientLogger(WebPubSubCustomCertificatesImpl.class);
+
+ private final WebPubSubCustomCertificatesClient innerClient;
+
+ private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;
+
+ public WebPubSubCustomCertificatesImpl(
+ WebPubSubCustomCertificatesClient innerClient,
+ com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String resourceName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName);
+ return Utils.mapPage(inner, inner1 -> new CustomCertificateImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String resourceName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, resourceName, context);
+ return Utils.mapPage(inner, inner1 -> new CustomCertificateImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String resourceName, String certificateName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, resourceName, certificateName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CustomCertificateImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public CustomCertificate get(String resourceGroupName, String resourceName, String certificateName) {
+ CustomCertificateInner inner = this.serviceClient().get(resourceGroupName, resourceName, certificateName);
+ if (inner != null) {
+ return new CustomCertificateImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String resourceName, String certificateName, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, resourceName, certificateName, context);
+ }
+
+ public void delete(String resourceGroupName, String resourceName, String certificateName) {
+ this.serviceClient().delete(resourceGroupName, resourceName, certificateName);
+ }
+
+ public CustomCertificate getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String resourceName = Utils.getValueFromIdByName(id, "webPubSub");
+ if (resourceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'webPubSub'.", id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "customCertificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, resourceName, certificateName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String resourceName = Utils.getValueFromIdByName(id, "webPubSub");
+ if (resourceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'webPubSub'.", id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "customCertificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, resourceName, certificateName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String resourceName = Utils.getValueFromIdByName(id, "webPubSub");
+ if (resourceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'webPubSub'.", id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "customCertificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, resourceName, certificateName, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String resourceName = Utils.getValueFromIdByName(id, "webPubSub");
+ if (resourceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'webPubSub'.", id)));
+ }
+ String certificateName = Utils.getValueFromIdByName(id, "customCertificates");
+ if (certificateName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, resourceName, certificateName, context);
+ }
+
+ private WebPubSubCustomCertificatesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+
+ public CustomCertificateImpl define(String name) {
+ return new CustomCertificateImpl(name, this.manager());
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomDomainsClientImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomDomainsClientImpl.java
new file mode 100644
index 000000000000..5509ba3429cf
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomDomainsClientImpl.java
@@ -0,0 +1,1111 @@
+// 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.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.webpubsub.fluent.WebPubSubCustomDomainsClient;
+import com.azure.resourcemanager.webpubsub.fluent.models.CustomDomainInner;
+import com.azure.resourcemanager.webpubsub.models.CustomDomainList;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in WebPubSubCustomDomainsClient. */
+public final class WebPubSubCustomDomainsClientImpl implements WebPubSubCustomDomainsClient {
+ /** The proxy service used to perform REST calls. */
+ private final WebPubSubCustomDomainsService service;
+
+ /** The service client containing this operation class. */
+ private final WebPubSubManagementClientImpl client;
+
+ /**
+ * Initializes an instance of WebPubSubCustomDomainsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ WebPubSubCustomDomainsClientImpl(WebPubSubManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(WebPubSubCustomDomainsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for WebPubSubManagementClientWebPubSubCustomDomains to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "WebPubSubManagementC")
+ private interface WebPubSubCustomDomainsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService"
+ + "/webPubSub/{resourceName}/customDomains")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService"
+ + "/webPubSub/{resourceName}/customDomains/{name}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @PathParam("name") String name,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService"
+ + "/webPubSub/{resourceName}/customDomains/{name}")
+ @ExpectedResponses({201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @PathParam("name") String name,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CustomDomainInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService"
+ + "/webPubSub/{resourceName}/customDomains/{name}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @PathParam("name") String name,
+ @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);
+ }
+
+ /**
+ * List all custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domains list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName, String resourceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ 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()));
+ }
+
+ /**
+ * List all custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domains list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String resourceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List all custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domains list as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String resourceName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List all custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domains list as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, resourceName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List all custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domains list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String resourceName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, resourceName));
+ }
+
+ /**
+ * List all custom domains.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return custom domains list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String resourceName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context));
+ }
+
+ /**
+ * Get a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 custom domain along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String resourceName, String name) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ name,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom domain along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String resourceName, String name, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ name,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 custom domain on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String resourceName, String name) {
+ return getWithResponseAsync(resourceGroupName, resourceName, name)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom domain along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String resourceName, String name, Context context) {
+ return getWithResponseAsync(resourceGroupName, resourceName, name, context).block();
+ }
+
+ /**
+ * Get a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainInner get(String resourceGroupName, String resourceName, String name) {
+ return getWithResponse(resourceGroupName, resourceName, name, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom domain along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ name,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom domain along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ name,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CustomDomainInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, resourceName, name, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ CustomDomainInner.class,
+ CustomDomainInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of a custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CustomDomainInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, resourceName, name, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), CustomDomainInner.class, CustomDomainInner.class, context);
+ }
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CustomDomainInner> beginCreateOrUpdate(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters) {
+ return beginCreateOrUpdateAsync(resourceGroupName, resourceName, name, parameters).getSyncPoller();
+ }
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CustomDomainInner> beginCreateOrUpdate(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, resourceName, name, parameters, context).getSyncPoller();
+ }
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom domain on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters) {
+ return beginCreateOrUpdateAsync(resourceGroupName, resourceName, name, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom domain on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, resourceName, name, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainInner createOrUpdate(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters) {
+ return createOrUpdateAsync(resourceGroupName, resourceName, name, parameters).block();
+ }
+
+ /**
+ * Create or update a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param parameters A custom domain.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom domain.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CustomDomainInner createOrUpdate(
+ String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context) {
+ return createOrUpdateAsync(resourceGroupName, resourceName, name, parameters, context).block();
+ }
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String resourceName, String name) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ name,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String resourceName, String name, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ name,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String resourceName, String name) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, name);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String resourceName, String name, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, name, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String name) {
+ return beginDeleteAsync(resourceGroupName, resourceName, name).getSyncPoller();
+ }
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String resourceName, String name, Context context) {
+ return beginDeleteAsync(resourceGroupName, resourceName, name, context).getSyncPoller();
+ }
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String resourceName, String name) {
+ return beginDeleteAsync(resourceGroupName, resourceName, name)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String resourceName, String name, Context context) {
+ return beginDeleteAsync(resourceGroupName, resourceName, name, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String resourceName, String name) {
+ deleteAsync(resourceGroupName, resourceName, name).block();
+ }
+
+ /**
+ * Delete a custom domain.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param resourceName The name of the resource.
+ * @param name Custom domain name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String resourceName, String name, Context context) {
+ deleteAsync(resourceGroupName, resourceName, name, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * 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 custom domains list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * 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 custom domains list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomDomainsImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomDomainsImpl.java
new file mode 100644
index 000000000000..905763af1bf7
--- /dev/null
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubCustomDomainsImpl.java
@@ -0,0 +1,187 @@
+// 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.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.webpubsub.fluent.WebPubSubCustomDomainsClient;
+import com.azure.resourcemanager.webpubsub.fluent.models.CustomDomainInner;
+import com.azure.resourcemanager.webpubsub.models.CustomDomain;
+import com.azure.resourcemanager.webpubsub.models.WebPubSubCustomDomains;
+
+public final class WebPubSubCustomDomainsImpl implements WebPubSubCustomDomains {
+ private static final ClientLogger LOGGER = new ClientLogger(WebPubSubCustomDomainsImpl.class);
+
+ private final WebPubSubCustomDomainsClient innerClient;
+
+ private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;
+
+ public WebPubSubCustomDomainsImpl(
+ WebPubSubCustomDomainsClient innerClient, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String resourceName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName);
+ return Utils.mapPage(inner, inner1 -> new CustomDomainImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String resourceName, Context context) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, context);
+ return Utils.mapPage(inner, inner1 -> new CustomDomainImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String resourceName, String name, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, resourceName, name, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CustomDomainImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public CustomDomain get(String resourceGroupName, String resourceName, String name) {
+ CustomDomainInner inner = this.serviceClient().get(resourceGroupName, resourceName, name);
+ if (inner != null) {
+ return new CustomDomainImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String resourceName, String name) {
+ this.serviceClient().delete(resourceGroupName, resourceName, name);
+ }
+
+ public void delete(String resourceGroupName, String resourceName, String name, Context context) {
+ this.serviceClient().delete(resourceGroupName, resourceName, name, context);
+ }
+
+ public CustomDomain getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String resourceName = Utils.getValueFromIdByName(id, "webPubSub");
+ if (resourceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'webPubSub'.", id)));
+ }
+ String name = Utils.getValueFromIdByName(id, "customDomains");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, resourceName, name, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String resourceName = Utils.getValueFromIdByName(id, "webPubSub");
+ if (resourceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'webPubSub'.", id)));
+ }
+ String name = Utils.getValueFromIdByName(id, "customDomains");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, resourceName, name, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String resourceName = Utils.getValueFromIdByName(id, "webPubSub");
+ if (resourceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'webPubSub'.", id)));
+ }
+ String name = Utils.getValueFromIdByName(id, "customDomains");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id)));
+ }
+ this.delete(resourceGroupName, resourceName, name, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String resourceName = Utils.getValueFromIdByName(id, "webPubSub");
+ if (resourceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'webPubSub'.", id)));
+ }
+ String name = Utils.getValueFromIdByName(id, "customDomains");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id)));
+ }
+ this.delete(resourceGroupName, resourceName, name, context);
+ }
+
+ private WebPubSubCustomDomainsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
+ return this.serviceManager;
+ }
+
+ public CustomDomainImpl define(String name) {
+ return new CustomDomainImpl(name, this.manager());
+ }
+}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubHubImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubHubImpl.java
index d5a4ef696a7f..60c986f32ed5 100644
--- a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubHubImpl.java
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubHubImpl.java
@@ -35,6 +35,10 @@ public WebPubSubHubProperties properties() {
return this.innerModel().properties();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public WebPubSubHubInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubHubsClientImpl.java b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubHubsClientImpl.java
index a10875455e57..65c9d1bed94d 100644
--- a/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubHubsClientImpl.java
+++ b/sdk/webpubsub/azure-resourcemanager-webpubsub/src/main/java/com/azure/resourcemanager/webpubsub/implementation/WebPubSubHubsClientImpl.java
@@ -29,7 +29,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.webpubsub.fluent.WebPubSubHubsClient;
@@ -41,8 +40,6 @@
/** An instance of this class provides access to all the operations defined in WebPubSubHubsClient. */
public final class WebPubSubHubsClientImpl implements WebPubSubHubsClient {
- private final ClientLogger logger = new ClientLogger(WebPubSubHubsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final WebPubSubHubsService service;
@@ -151,7 +148,7 @@ Mono> listNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return hub setting list.
+ * @return hub setting list along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String resourceGroupName, String resourceName) {
@@ -209,7 +206,7 @@ private Mono> listSinglePageAsync(String resour
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return hub setting list.
+ * @return hub setting list along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -264,7 +261,7 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return hub setting list.
+ * @return hub setting list as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName, String resourceName) {
@@ -282,7 +279,7 @@ private PagedFlux listAsync(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return hub setting list.
+ * @return hub setting list as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) {
@@ -300,7 +297,7 @@ private PagedFlux listAsync(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return hub setting list.
+ * @return hub setting list as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String resourceName) {
@@ -317,7 +314,7 @@ public PagedIterable list(String resourceGroupName, String re
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return hub setting list.
+ * @return hub setting list as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String resourceName, Context context) {
@@ -334,7 +331,7 @@ public PagedIterable list(String resourceGroupName, String re
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 hub setting.
+ * @return a hub setting along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -389,7 +386,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 hub setting.
+ * @return a hub setting along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -440,19 +437,12 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 hub setting.
+ * @return a hub setting on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String hubName, String resourceGroupName, String resourceName) {
return getWithResponseAsync(hubName, resourceGroupName, resourceName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -462,14 +452,16 @@ private Mono getAsync(String hubName, String resourceGroupNam
* @param resourceGroupName The 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 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 hub setting.
+ * @return a hub setting along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public WebPubSubHubInner get(String hubName, String resourceGroupName, String resourceName) {
- return getAsync(hubName, resourceGroupName, resourceName).block();
+ public Response getWithResponse(
+ String hubName, String resourceGroupName, String resourceName, Context context) {
+ return getWithResponseAsync(hubName, resourceGroupName, resourceName, context).block();
}
/**
@@ -479,16 +471,14 @@ public WebPubSubHubInner get(String hubName, String resourceGroupName, String re
* @param resourceGroupName The 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 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 hub setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String hubName, String resourceGroupName, String resourceName, Context context) {
- return getWithResponseAsync(hubName, resourceGroupName, resourceName, context).block();
+ public WebPubSubHubInner get(String hubName, String resourceGroupName, String resourceName) {
+ return getWithResponse(hubName, resourceGroupName, resourceName, Context.NONE).getValue();
}
/**
@@ -502,7 +492,7 @@ public Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 hub setting.
+ * @return a hub setting along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -564,7 +554,7 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 hub setting.
+ * @return a hub setting along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono