@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
@@ -69,12 +70,6 @@
1.11.4
test
-
- com.azure.resourcemanager
- azure-resourcemanager-resources
- 2.36.0
- test
-
org.junit.jupiter
junit-jupiter-api
@@ -93,8 +88,6 @@
4.11.0
test
-
-
net.bytebuddy
byte-buddy
@@ -113,5 +106,11 @@
1.7.36
test
+
+ com.azure.resourcemanager
+ azure-resourcemanager-resources
+ 2.36.0
+ test
+
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/CosmosDBForPostgreSqlManager.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/CosmosDBForPostgreSqlManager.java
index fcd5c8e88101..3a0b8d4fd6c8 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/CosmosDBForPostgreSqlManager.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/CosmosDBForPostgreSqlManager.java
@@ -49,8 +49,8 @@
import java.util.stream.Collectors;
/**
- * Entry point to CosmosDBForPostgreSqlManager. Azure Cosmos DB for PostgreSQL database service resource provider REST
- * APIs.
+ * Entry point to CosmosDBForPostgreSqlManager.
+ * Azure Cosmos DB for PostgreSQL database service resource provider REST APIs.
*/
public final class CosmosDBForPostgreSqlManager {
private Clusters clusters;
@@ -71,22 +71,18 @@ public final class CosmosDBForPostgreSqlManager {
private final CosmosDBForPostgreSql clientObject;
- private CosmosDBForPostgreSqlManager(
- HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ private CosmosDBForPostgreSqlManager(HttpPipeline httpPipeline, AzureProfile profile,
+ Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new CosmosDBForPostgreSqlBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new CosmosDBForPostgreSqlBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint()).subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval).buildClient();
}
/**
* Creates an instance of CosmosDBForPostgreSql service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the CosmosDBForPostgreSql service API instance.
@@ -99,7 +95,7 @@ public static CosmosDBForPostgreSqlManager authenticate(TokenCredential credenti
/**
* Creates an instance of CosmosDBForPostgreSql service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the CosmosDBForPostgreSql service API instance.
@@ -112,14 +108,16 @@ public static CosmosDBForPostgreSqlManager authenticate(HttpPipeline httpPipelin
/**
* Gets a Configurable instance that can be used to create CosmosDBForPostgreSqlManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new CosmosDBForPostgreSqlManager.Configurable();
}
- /** The Configurable allowing configurations to be set. */
+ /**
+ * The Configurable allowing configurations to be set.
+ */
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
@@ -191,8 +189,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
/**
* Sets the retry options for the HTTP pipeline retry policy.
- *
- * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * 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.
@@ -209,8 +207,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval =
- Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -230,21 +228,12 @@ public CosmosDBForPostgreSqlManager authenticate(TokenCredential credential, Azu
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
- .append("-")
- .append("com.azure.resourcemanager.cosmosdbforpostgresql")
- .append("/")
- .append("1.0.0");
+ userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.cosmosdbforpostgresql")
+ .append("/").append("1.1.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
- .append(Configuration.getGlobalConfiguration().get("java.version"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.name"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.version"))
- .append("; auto-generated)");
+ userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)");
} else {
userAgentBuilder.append(" (auto-generated)");
}
@@ -263,38 +252,25 @@ public CosmosDBForPostgreSqlManager authenticate(TokenCredential credential, Azu
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()));
+ 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
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY).collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
- HttpPipeline httpPipeline =
- new HttpPipelineBuilder()
- .httpClient(httpClient)
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0])).build();
return new CosmosDBForPostgreSqlManager(httpPipeline, profile, defaultPollInterval);
}
}
/**
* Gets the resource collection API of Clusters. It manages Cluster.
- *
+ *
* @return Resource collection API of Clusters.
*/
public Clusters clusters() {
@@ -306,7 +282,7 @@ public Clusters clusters() {
/**
* Gets the resource collection API of Servers.
- *
+ *
* @return Resource collection API of Servers.
*/
public Servers servers() {
@@ -318,7 +294,7 @@ public Servers servers() {
/**
* Gets the resource collection API of Configurations.
- *
+ *
* @return Resource collection API of Configurations.
*/
public Configurations configurations() {
@@ -330,7 +306,7 @@ public Configurations configurations() {
/**
* Gets the resource collection API of FirewallRules. It manages FirewallRule.
- *
+ *
* @return Resource collection API of FirewallRules.
*/
public FirewallRules firewallRules() {
@@ -342,7 +318,7 @@ public FirewallRules firewallRules() {
/**
* Gets the resource collection API of Roles. It manages Role.
- *
+ *
* @return Resource collection API of Roles.
*/
public Roles roles() {
@@ -354,7 +330,7 @@ public Roles roles() {
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -366,20 +342,20 @@ public Operations operations() {
/**
* Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
- *
+ *
* @return Resource collection API of PrivateEndpointConnections.
*/
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections =
- new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ this.privateEndpointConnections
+ = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
}
return privateEndpointConnections;
}
/**
* Gets the resource collection API of PrivateLinkResources.
- *
+ *
* @return Resource collection API of PrivateLinkResources.
*/
public PrivateLinkResources privateLinkResources() {
@@ -392,7 +368,7 @@ public PrivateLinkResources privateLinkResources() {
/**
* Gets wrapped service client CosmosDBForPostgreSql providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
- *
+ *
* @return Wrapped service client CosmosDBForPostgreSql.
*/
public CosmosDBForPostgreSql serviceClient() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ClustersClient.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ClustersClient.java
index aa0aa2d81eef..339dc28865c4 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ClustersClient.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ClustersClient.java
@@ -15,12 +15,15 @@
import com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.NameAvailabilityInner;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ClusterForUpdate;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.NameAvailabilityRequest;
+import com.azure.resourcemanager.cosmosdbforpostgresql.models.PromoteRequest;
-/** An instance of this class provides access to all the operations defined in ClustersClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ClustersClient.
+ */
public interface ClustersClient {
/**
* Lists all clusters 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 a list of clusters as paginated response with {@link PagedIterable}.
@@ -30,7 +33,7 @@ public interface ClustersClient {
/**
* Lists all clusters in a subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -42,7 +45,7 @@ public interface ClustersClient {
/**
* Lists all clusters in a resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -54,7 +57,7 @@ public interface ClustersClient {
/**
* Lists all clusters in a resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -67,7 +70,7 @@ public interface ClustersClient {
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -77,12 +80,12 @@ public interface ClustersClient {
* @return the {@link SyncPoller} for polling of represents a cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginCreate(
- String resourceGroupName, String clusterName, ClusterInner parameters);
+ SyncPoller, ClusterInner> beginCreate(String resourceGroupName, String clusterName,
+ ClusterInner parameters);
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -93,12 +96,12 @@ SyncPoller, ClusterInner> beginCreate(
* @return the {@link SyncPoller} for polling of represents a cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginCreate(
- String resourceGroupName, String clusterName, ClusterInner parameters, Context context);
+ SyncPoller, ClusterInner> beginCreate(String resourceGroupName, String clusterName,
+ ClusterInner parameters, Context context);
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -112,7 +115,7 @@ SyncPoller, ClusterInner> beginCreate(
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -128,7 +131,7 @@ SyncPoller, ClusterInner> beginCreate(
/**
* Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as
* cluster creation date and time.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -136,30 +139,30 @@ SyncPoller, ClusterInner> beginCreate(
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a cluster such as compute and storage configuration and cluster lifecycle metadata such
- * as cluster creation date and time along with {@link Response}.
+ * as cluster creation date and time along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String clusterName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName,
+ Context context);
/**
* Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as
* cluster creation date and time.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a cluster such as compute and storage configuration and cluster lifecycle metadata such
- * as cluster creation date and time.
+ * as cluster creation date and time.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
/**
* Deletes a cluster together with servers in it.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -172,7 +175,7 @@ Response getByResourceGroupWithResponse(
/**
* Deletes a cluster together with servers in it.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -186,7 +189,7 @@ Response getByResourceGroupWithResponse(
/**
* Deletes a cluster together with servers in it.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -198,7 +201,7 @@ Response getByResourceGroupWithResponse(
/**
* Deletes a cluster together with servers in it.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -211,7 +214,7 @@ Response getByResourceGroupWithResponse(
/**
* Updates an existing cluster. The request body can contain one or several properties from the cluster definition.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The parameters for updating a cluster.
@@ -221,12 +224,12 @@ Response getByResourceGroupWithResponse(
* @return the {@link SyncPoller} for polling of represents a cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginUpdate(
- String resourceGroupName, String clusterName, ClusterForUpdate parameters);
+ SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName,
+ ClusterForUpdate parameters);
/**
* Updates an existing cluster. The request body can contain one or several properties from the cluster definition.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The parameters for updating a cluster.
@@ -237,12 +240,12 @@ SyncPoller, ClusterInner> beginUpdate(
* @return the {@link SyncPoller} for polling of represents a cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginUpdate(
- String resourceGroupName, String clusterName, ClusterForUpdate parameters, Context context);
+ SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName,
+ ClusterForUpdate parameters, Context context);
/**
* Updates an existing cluster. The request body can contain one or several properties from the cluster definition.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The parameters for updating a cluster.
@@ -256,7 +259,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Updates an existing cluster. The request body can contain one or several properties from the cluster definition.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The parameters for updating a cluster.
@@ -271,7 +274,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Restarts all nodes in the cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -284,7 +287,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Restarts all nodes in the cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -298,7 +301,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Restarts all nodes in the cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -310,7 +313,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Restarts all nodes in the cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -323,7 +326,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Starts stopped compute on all cluster nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -336,7 +339,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Starts stopped compute on all cluster nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -350,7 +353,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Starts stopped compute on all cluster nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -362,7 +365,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Starts stopped compute on all cluster nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -375,7 +378,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Stops compute on all cluster nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -388,7 +391,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Stops compute on all cluster nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -402,7 +405,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Stops compute on all cluster nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -414,7 +417,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Stops compute on all cluster nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -427,7 +430,7 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Promotes read replica cluster to an independent read-write cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -440,9 +443,10 @@ SyncPoller, ClusterInner> beginUpdate(
/**
* Promotes read replica cluster to an independent read-write cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
+ * @param promoteRequest The parameter for enabling geo-redundant backup while promoting read replica.
* @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.
@@ -450,12 +454,12 @@ SyncPoller, ClusterInner> beginUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginPromoteReadReplica(
- String resourceGroupName, String clusterName, Context context);
+ SyncPoller, Void> beginPromoteReadReplica(String resourceGroupName, String clusterName,
+ PromoteRequest promoteRequest, Context context);
/**
* Promotes read replica cluster to an independent read-write cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -467,22 +471,24 @@ SyncPoller, Void> beginPromoteReadReplica(
/**
* Promotes read replica cluster to an independent read-write cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
+ * @param promoteRequest The parameter for enabling geo-redundant backup while promoting read replica.
* @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 promoteReadReplica(String resourceGroupName, String clusterName, Context context);
+ void promoteReadReplica(String resourceGroupName, String clusterName, PromoteRequest promoteRequest,
+ Context context);
/**
* Checks availability of a cluster name. Cluster names should be globally unique; at least 3 characters and at most
* 40 characters long; they must only contain lowercase letters, numbers, and hyphens; and must not start or end
* with a hyphen.
- *
+ *
* @param nameAvailabilityRequest The required parameters for checking if cluster name is available.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -491,14 +497,14 @@ SyncPoller, Void> beginPromoteReadReplica(
* @return represents cluster name availability along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkNameAvailabilityWithResponse(
- NameAvailabilityRequest nameAvailabilityRequest, Context context);
+ Response checkNameAvailabilityWithResponse(NameAvailabilityRequest nameAvailabilityRequest,
+ Context context);
/**
* Checks availability of a cluster name. Cluster names should be globally unique; at least 3 characters and at most
* 40 characters long; they must only contain lowercase letters, numbers, and hyphens; and must not start or end
* with a hyphen.
- *
+ *
* @param nameAvailabilityRequest The required parameters for checking if cluster name is available.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ConfigurationsClient.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ConfigurationsClient.java
index 61100fdfc3b7..9382cf8924d3 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ConfigurationsClient.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ConfigurationsClient.java
@@ -14,11 +14,13 @@
import com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.ConfigurationInner;
import com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.ServerConfigurationInner;
-/** An instance of this class provides access to all the operations defined in ConfigurationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ConfigurationsClient.
+ */
public interface ConfigurationsClient {
/**
* List all the configurations of a server in cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param serverName The name of the server.
@@ -28,12 +30,12 @@ public interface ConfigurationsClient {
* @return a list of server configurations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(
- String resourceGroupName, String clusterName, String serverName);
+ PagedIterable listByServer(String resourceGroupName, String clusterName,
+ String serverName);
/**
* List all the configurations of a server in cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param serverName The name of the server.
@@ -44,12 +46,12 @@ PagedIterable listByServer(
* @return a list of server configurations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(
- String resourceGroupName, String clusterName, String serverName, Context context);
+ PagedIterable listByServer(String resourceGroupName, String clusterName,
+ String serverName, Context context);
/**
* List all the configurations of a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -62,7 +64,7 @@ PagedIterable listByServer(
/**
* List all the configurations of a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -76,7 +78,7 @@ PagedIterable listByServer(
/**
* Gets information of a configuration for coordinator and nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -87,12 +89,12 @@ PagedIterable listByServer(
* @return information of a configuration for coordinator and nodes along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String clusterName, String configurationName, Context context);
+ Response getWithResponse(String resourceGroupName, String clusterName, String configurationName,
+ Context context);
/**
* Gets information of a configuration for coordinator and nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -106,7 +108,7 @@ Response getWithResponse(
/**
* Gets information of a configuration for coordinator.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -117,12 +119,12 @@ Response getWithResponse(
* @return information of a configuration for coordinator along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getCoordinatorWithResponse(
- String resourceGroupName, String clusterName, String configurationName, Context context);
+ Response getCoordinatorWithResponse(String resourceGroupName, String clusterName,
+ String configurationName, Context context);
/**
* Gets information of a configuration for coordinator.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -136,7 +138,7 @@ Response getCoordinatorWithResponse(
/**
* Updates configuration of coordinator in a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -152,7 +154,7 @@ SyncPoller, ServerConfigurationInner> begin
/**
* Updates configuration of coordinator in a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -165,15 +167,12 @@ SyncPoller, ServerConfigurationInner> begin
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerConfigurationInner> beginUpdateOnCoordinator(
- String resourceGroupName,
- String clusterName,
- String configurationName,
- ServerConfigurationInner parameters,
+ String resourceGroupName, String clusterName, String configurationName, ServerConfigurationInner parameters,
Context context);
/**
* Updates configuration of coordinator in a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -184,12 +183,12 @@ SyncPoller, ServerConfigurationInner> begin
* @return represents a configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerConfigurationInner updateOnCoordinator(
- String resourceGroupName, String clusterName, String configurationName, ServerConfigurationInner parameters);
+ ServerConfigurationInner updateOnCoordinator(String resourceGroupName, String clusterName, String configurationName,
+ ServerConfigurationInner parameters);
/**
* Updates configuration of coordinator in a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -201,16 +200,12 @@ ServerConfigurationInner updateOnCoordinator(
* @return represents a configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerConfigurationInner updateOnCoordinator(
- String resourceGroupName,
- String clusterName,
- String configurationName,
- ServerConfigurationInner parameters,
- Context context);
+ ServerConfigurationInner updateOnCoordinator(String resourceGroupName, String clusterName, String configurationName,
+ ServerConfigurationInner parameters, Context context);
/**
* Gets information of a configuration for worker nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -221,12 +216,12 @@ ServerConfigurationInner updateOnCoordinator(
* @return information of a configuration for worker nodes along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getNodeWithResponse(
- String resourceGroupName, String clusterName, String configurationName, Context context);
+ Response getNodeWithResponse(String resourceGroupName, String clusterName,
+ String configurationName, Context context);
/**
* Gets information of a configuration for worker nodes.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -240,7 +235,7 @@ Response getNodeWithResponse(
/**
* Updates configuration of worker nodes in a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -256,7 +251,7 @@ SyncPoller, ServerConfigurationInner> begin
/**
* Updates configuration of worker nodes in a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -269,15 +264,12 @@ SyncPoller, ServerConfigurationInner> begin
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerConfigurationInner> beginUpdateOnNode(
- String resourceGroupName,
- String clusterName,
- String configurationName,
- ServerConfigurationInner parameters,
+ String resourceGroupName, String clusterName, String configurationName, ServerConfigurationInner parameters,
Context context);
/**
* Updates configuration of worker nodes in a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -288,12 +280,12 @@ SyncPoller, ServerConfigurationInner> begin
* @return represents a configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerConfigurationInner updateOnNode(
- String resourceGroupName, String clusterName, String configurationName, ServerConfigurationInner parameters);
+ ServerConfigurationInner updateOnNode(String resourceGroupName, String clusterName, String configurationName,
+ ServerConfigurationInner parameters);
/**
* Updates configuration of worker nodes in a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param configurationName The name of the cluster configuration.
@@ -305,10 +297,6 @@ ServerConfigurationInner updateOnNode(
* @return represents a configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerConfigurationInner updateOnNode(
- String resourceGroupName,
- String clusterName,
- String configurationName,
- ServerConfigurationInner parameters,
- Context context);
+ ServerConfigurationInner updateOnNode(String resourceGroupName, String clusterName, String configurationName,
+ ServerConfigurationInner parameters, Context context);
}
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/CosmosDBForPostgreSql.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/CosmosDBForPostgreSql.java
index a879f1f5c86f..389796e1efd1 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/CosmosDBForPostgreSql.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/CosmosDBForPostgreSql.java
@@ -7,95 +7,97 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for CosmosDBForPostgreSql class. */
+/**
+ * The interface for CosmosDBForPostgreSql class.
+ */
public interface CosmosDBForPostgreSql {
/**
* Gets The ID of the target subscription. The value must be an UUID.
- *
+ *
* @return the subscriptionId value.
*/
String getSubscriptionId();
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
String getEndpoint();
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
String getApiVersion();
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();
/**
* Gets the ClustersClient object to access its operations.
- *
+ *
* @return the ClustersClient object.
*/
ClustersClient getClusters();
/**
* Gets the ServersClient object to access its operations.
- *
+ *
* @return the ServersClient object.
*/
ServersClient getServers();
/**
* Gets the ConfigurationsClient object to access its operations.
- *
+ *
* @return the ConfigurationsClient object.
*/
ConfigurationsClient getConfigurations();
/**
* Gets the FirewallRulesClient object to access its operations.
- *
+ *
* @return the FirewallRulesClient object.
*/
FirewallRulesClient getFirewallRules();
/**
* Gets the RolesClient object to access its operations.
- *
+ *
* @return the RolesClient object.
*/
RolesClient getRoles();
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
OperationsClient getOperations();
/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
+ *
* @return the PrivateEndpointConnectionsClient object.
*/
PrivateEndpointConnectionsClient getPrivateEndpointConnections();
/**
* Gets the PrivateLinkResourcesClient object to access its operations.
- *
+ *
* @return the PrivateLinkResourcesClient object.
*/
PrivateLinkResourcesClient getPrivateLinkResources();
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/FirewallRulesClient.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/FirewallRulesClient.java
index e9de7d679aaf..791776360288 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/FirewallRulesClient.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/FirewallRulesClient.java
@@ -13,11 +13,13 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.FirewallRuleInner;
-/** An instance of this class provides access to all the operations defined in FirewallRulesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in FirewallRulesClient.
+ */
public interface FirewallRulesClient {
/**
* Creates a new cluster firewall rule or updates an existing cluster firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param firewallRuleName The name of the cluster firewall rule.
@@ -28,12 +30,12 @@ public interface FirewallRulesClient {
* @return the {@link SyncPoller} for polling of represents a cluster firewall rule.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FirewallRuleInner> beginCreateOrUpdate(
- String resourceGroupName, String clusterName, String firewallRuleName, FirewallRuleInner parameters);
+ SyncPoller, FirewallRuleInner> beginCreateOrUpdate(String resourceGroupName,
+ String clusterName, String firewallRuleName, FirewallRuleInner parameters);
/**
* Creates a new cluster firewall rule or updates an existing cluster firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param firewallRuleName The name of the cluster firewall rule.
@@ -45,16 +47,12 @@ SyncPoller, FirewallRuleInner> beginCreateOrUpdate
* @return the {@link SyncPoller} for polling of represents a cluster firewall rule.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FirewallRuleInner> beginCreateOrUpdate(
- String resourceGroupName,
- String clusterName,
- String firewallRuleName,
- FirewallRuleInner parameters,
- Context context);
+ SyncPoller, FirewallRuleInner> beginCreateOrUpdate(String resourceGroupName,
+ String clusterName, String firewallRuleName, FirewallRuleInner parameters, Context context);
/**
* Creates a new cluster firewall rule or updates an existing cluster firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param firewallRuleName The name of the cluster firewall rule.
@@ -65,12 +63,12 @@ SyncPoller, FirewallRuleInner> beginCreateOrUpdate
* @return represents a cluster firewall rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FirewallRuleInner createOrUpdate(
- String resourceGroupName, String clusterName, String firewallRuleName, FirewallRuleInner parameters);
+ FirewallRuleInner createOrUpdate(String resourceGroupName, String clusterName, String firewallRuleName,
+ FirewallRuleInner parameters);
/**
* Creates a new cluster firewall rule or updates an existing cluster firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param firewallRuleName The name of the cluster firewall rule.
@@ -82,16 +80,12 @@ FirewallRuleInner createOrUpdate(
* @return represents a cluster firewall rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FirewallRuleInner createOrUpdate(
- String resourceGroupName,
- String clusterName,
- String firewallRuleName,
- FirewallRuleInner parameters,
- Context context);
+ FirewallRuleInner createOrUpdate(String resourceGroupName, String clusterName, String firewallRuleName,
+ FirewallRuleInner parameters, Context context);
/**
* Deletes a cluster firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param firewallRuleName The name of the cluster firewall rule.
@@ -101,12 +95,12 @@ FirewallRuleInner createOrUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String clusterName, String firewallRuleName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName,
+ String firewallRuleName);
/**
* Deletes a cluster firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param firewallRuleName The name of the cluster firewall rule.
@@ -117,12 +111,12 @@ SyncPoller, Void> beginDelete(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String clusterName, String firewallRuleName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName,
+ String firewallRuleName, Context context);
/**
* Deletes a cluster firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param firewallRuleName The name of the cluster firewall rule.
@@ -135,7 +129,7 @@ SyncPoller, Void> beginDelete(
/**
* Deletes a cluster firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param firewallRuleName The name of the cluster firewall rule.
@@ -149,7 +143,7 @@ SyncPoller, Void> beginDelete(
/**
* Gets information about a cluster firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param firewallRuleName The name of the cluster firewall rule.
@@ -160,12 +154,12 @@ SyncPoller, Void> beginDelete(
* @return information about a cluster firewall rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String clusterName, String firewallRuleName, Context context);
+ Response getWithResponse(String resourceGroupName, String clusterName, String firewallRuleName,
+ Context context);
/**
* Gets information about a cluster firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param firewallRuleName The name of the cluster firewall rule.
@@ -179,7 +173,7 @@ Response getWithResponse(
/**
* Lists all the firewall rules on cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -192,7 +186,7 @@ Response getWithResponse(
/**
* Lists all the firewall rules on cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/OperationsClient.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/OperationsClient.java
index 102f95afee1f..a56b8ac543a0 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/OperationsClient.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/OperationsClient.java
@@ -10,11 +10,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.OperationInner;
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
public interface OperationsClient {
/**
* Lists all of the available REST API operations.
- *
+ *
* @throws com.azure.core.management.exception.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 resource provider operations as paginated response with {@link PagedIterable}.
@@ -24,7 +26,7 @@ public interface OperationsClient {
/**
* Lists all of the available REST API operations.
- *
+ *
* @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.
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/PrivateEndpointConnectionsClient.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/PrivateEndpointConnectionsClient.java
index 25de775f79cb..0a680045e803 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/PrivateEndpointConnectionsClient.java
@@ -13,11 +13,13 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.PrivateEndpointConnectionInner;
-/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient.
+ */
public interface PrivateEndpointConnectionsClient {
/**
* Gets list of private endpoint connections on a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -30,7 +32,7 @@ public interface PrivateEndpointConnectionsClient {
/**
* Gets list of private endpoint connections on a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -40,12 +42,12 @@ public interface PrivateEndpointConnectionsClient {
* @return list of private endpoint connections on a cluster as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(
- String resourceGroupName, String clusterName, Context context);
+ PagedIterable listByCluster(String resourceGroupName, String clusterName,
+ Context context);
/**
* Gets private endpoint connection.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the cluster.
@@ -56,12 +58,12 @@ PagedIterable listByCluster(
* @return private endpoint connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
+ Response getWithResponse(String resourceGroupName, String clusterName,
+ String privateEndpointConnectionName, Context context);
/**
* Gets private endpoint connection.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the cluster.
@@ -71,12 +73,12 @@ Response getWithResponse(
* @return private endpoint connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName);
+ PrivateEndpointConnectionInner get(String resourceGroupName, String clusterName,
+ String privateEndpointConnectionName);
/**
* Approves or Rejects a private endpoint connection with a given name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the cluster.
@@ -88,14 +90,12 @@ PrivateEndpointConnectionInner get(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
- String resourceGroupName,
- String clusterName,
- String privateEndpointConnectionName,
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName,
PrivateEndpointConnectionInner parameters);
/**
* Approves or Rejects a private endpoint connection with a given name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the cluster.
@@ -108,15 +108,12 @@ SyncPoller, PrivateEndpointConnection
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
- String resourceGroupName,
- String clusterName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner parameters,
- Context context);
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner parameters, Context context);
/**
* Approves or Rejects a private endpoint connection with a given name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the cluster.
@@ -127,15 +124,12 @@ SyncPoller, PrivateEndpointConnection
* @return the private endpoint connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner createOrUpdate(
- String resourceGroupName,
- String clusterName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner parameters);
+ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String clusterName,
+ String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters);
/**
* Approves or Rejects a private endpoint connection with a given name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the cluster.
@@ -147,16 +141,12 @@ PrivateEndpointConnectionInner createOrUpdate(
* @return the private endpoint connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner createOrUpdate(
- String resourceGroupName,
- String clusterName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner parameters,
- Context context);
+ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String clusterName,
+ String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters, Context context);
/**
* Deletes a private endpoint connection with a given name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the cluster.
@@ -166,12 +156,12 @@ PrivateEndpointConnectionInner createOrUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName,
+ String privateEndpointConnectionName);
/**
* Deletes a private endpoint connection with a given name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the cluster.
@@ -182,12 +172,12 @@ SyncPoller, Void> beginDelete(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName,
+ String privateEndpointConnectionName, Context context);
/**
* Deletes a private endpoint connection with a given name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the cluster.
@@ -200,7 +190,7 @@ SyncPoller, Void> beginDelete(
/**
* Deletes a private endpoint connection with a given name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the cluster.
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/PrivateLinkResourcesClient.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/PrivateLinkResourcesClient.java
index 233052a63481..bf025bf1132a 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/PrivateLinkResourcesClient.java
@@ -11,11 +11,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.PrivateLinkResourceInner;
-/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient.
+ */
public interface PrivateLinkResourcesClient {
/**
* Gets the private link resources for cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -28,7 +30,7 @@ public interface PrivateLinkResourcesClient {
/**
* Gets the private link resources for cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -38,12 +40,12 @@ public interface PrivateLinkResourcesClient {
* @return the private link resources for cluster as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(
- String resourceGroupName, String clusterName, Context context);
+ PagedIterable listByCluster(String resourceGroupName, String clusterName,
+ Context context);
/**
* Gets a private link resource for cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateLinkResourceName The name of the private link resource.
@@ -54,12 +56,12 @@ PagedIterable listByCluster(
* @return a private link resource for cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String clusterName, String privateLinkResourceName, Context context);
+ Response getWithResponse(String resourceGroupName, String clusterName,
+ String privateLinkResourceName, Context context);
/**
* Gets a private link resource for cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param privateLinkResourceName The name of the private link resource.
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/RolesClient.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/RolesClient.java
index de639c8f6362..14fda54e9afd 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/RolesClient.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/RolesClient.java
@@ -13,11 +13,13 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.RoleInner;
-/** An instance of this class provides access to all the operations defined in RolesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in RolesClient.
+ */
public interface RolesClient {
/**
* Gets information about a cluster role.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param roleName The name of the cluster role.
@@ -32,7 +34,7 @@ public interface RolesClient {
/**
* Gets information about a cluster role.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param roleName The name of the cluster role.
@@ -46,7 +48,7 @@ public interface RolesClient {
/**
* Creates a new role or updates an existing role.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param roleName The name of the cluster role.
@@ -57,12 +59,12 @@ public interface RolesClient {
* @return the {@link SyncPoller} for polling of represents a cluster role.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, RoleInner> beginCreate(
- String resourceGroupName, String clusterName, String roleName, RoleInner parameters);
+ SyncPoller, RoleInner> beginCreate(String resourceGroupName, String clusterName,
+ String roleName, RoleInner parameters);
/**
* Creates a new role or updates an existing role.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param roleName The name of the cluster role.
@@ -74,12 +76,12 @@ SyncPoller, RoleInner> beginCreate(
* @return the {@link SyncPoller} for polling of represents a cluster role.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, RoleInner> beginCreate(
- String resourceGroupName, String clusterName, String roleName, RoleInner parameters, Context context);
+ SyncPoller, RoleInner> beginCreate(String resourceGroupName, String clusterName,
+ String roleName, RoleInner parameters, Context context);
/**
* Creates a new role or updates an existing role.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param roleName The name of the cluster role.
@@ -94,7 +96,7 @@ SyncPoller, RoleInner> beginCreate(
/**
* Creates a new role or updates an existing role.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param roleName The name of the cluster role.
@@ -106,12 +108,12 @@ SyncPoller, RoleInner> beginCreate(
* @return represents a cluster role.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RoleInner create(
- String resourceGroupName, String clusterName, String roleName, RoleInner parameters, Context context);
+ RoleInner create(String resourceGroupName, String clusterName, String roleName, RoleInner parameters,
+ Context context);
/**
* Deletes a cluster role.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param roleName The name of the cluster role.
@@ -125,7 +127,7 @@ RoleInner create(
/**
* Deletes a cluster role.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param roleName The name of the cluster role.
@@ -136,12 +138,12 @@ RoleInner create(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String clusterName, String roleName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String roleName,
+ Context context);
/**
* Deletes a cluster role.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param roleName The name of the cluster role.
@@ -154,7 +156,7 @@ SyncPoller, Void> beginDelete(
/**
* Deletes a cluster role.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param roleName The name of the cluster role.
@@ -168,7 +170,7 @@ SyncPoller, Void> beginDelete(
/**
* List all the roles in a given cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -181,7 +183,7 @@ SyncPoller, Void> beginDelete(
/**
* List all the roles in a given cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ServersClient.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ServersClient.java
index 7a4a96fdc9a2..42d27f49b4f7 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ServersClient.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/ServersClient.java
@@ -11,11 +11,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.ClusterServerInner;
-/** An instance of this class provides access to all the operations defined in ServersClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ServersClient.
+ */
public interface ServersClient {
/**
* Lists servers of a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -28,7 +30,7 @@ public interface ServersClient {
/**
* Lists servers of a cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -42,7 +44,7 @@ public interface ServersClient {
/**
* Gets information about a server in cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param serverName The name of the server.
@@ -53,12 +55,12 @@ public interface ServersClient {
* @return information about a server in cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String clusterName, String serverName, Context context);
+ Response getWithResponse(String resourceGroupName, String clusterName, String serverName,
+ Context context);
/**
* Gets information about a server in cluster.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param serverName The name of the server.
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterInner.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterInner.java
index 798a7869f1cd..7fc9612e4c22 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterInner.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterInner.java
@@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.cosmosdbforpostgresql.models.AuthConfig;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.MaintenanceWindow;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ServerNameItem;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.SimplePrivateEndpointConnection;
@@ -15,7 +16,9 @@
import java.util.List;
import java.util.Map;
-/** Represents a cluster. */
+/**
+ * Represents a cluster.
+ */
@Fluent
public final class ClusterInner extends Resource {
/*
@@ -30,13 +33,15 @@ public final class ClusterInner extends Resource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of ClusterInner class. */
+ /**
+ * Creates an instance of ClusterInner class.
+ */
public ClusterInner() {
}
/**
* Get the innerProperties property: Properties of the cluster.
- *
+ *
* @return the innerProperties value.
*/
private ClusterProperties innerProperties() {
@@ -45,21 +50,25 @@ private ClusterProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ClusterInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ClusterInner withTags(Map tags) {
super.withTags(tags);
@@ -68,7 +77,7 @@ public ClusterInner withTags(Map tags) {
/**
* Get the administratorLogin property: The administrator's login name of the servers in the cluster.
- *
+ *
* @return the administratorLogin value.
*/
public String administratorLogin() {
@@ -77,7 +86,7 @@ public String administratorLogin() {
/**
* Get the administratorLoginPassword property: The password of the administrator login. Required for creation.
- *
+ *
* @return the administratorLoginPassword value.
*/
public String administratorLoginPassword() {
@@ -86,7 +95,7 @@ public String administratorLoginPassword() {
/**
* Set the administratorLoginPassword property: The password of the administrator login. Required for creation.
- *
+ *
* @param administratorLoginPassword the administratorLoginPassword value to set.
* @return the ClusterInner object itself.
*/
@@ -100,7 +109,7 @@ public ClusterInner withAdministratorLoginPassword(String administratorLoginPass
/**
* Get the provisioningState property: Provisioning state of the cluster.
- *
+ *
* @return the provisioningState value.
*/
public String provisioningState() {
@@ -109,7 +118,7 @@ public String provisioningState() {
/**
* Get the state property: A state of a cluster/server that is visible to user.
- *
+ *
* @return the state value.
*/
public String state() {
@@ -118,7 +127,7 @@ public String state() {
/**
* Get the postgresqlVersion property: The major PostgreSQL version on all cluster servers.
- *
+ *
* @return the postgresqlVersion value.
*/
public String postgresqlVersion() {
@@ -127,7 +136,7 @@ public String postgresqlVersion() {
/**
* Set the postgresqlVersion property: The major PostgreSQL version on all cluster servers.
- *
+ *
* @param postgresqlVersion the postgresqlVersion value to set.
* @return the ClusterInner object itself.
*/
@@ -141,7 +150,7 @@ public ClusterInner withPostgresqlVersion(String postgresqlVersion) {
/**
* Get the citusVersion property: The Citus extension version on all cluster servers.
- *
+ *
* @return the citusVersion value.
*/
public String citusVersion() {
@@ -150,7 +159,7 @@ public String citusVersion() {
/**
* Set the citusVersion property: The Citus extension version on all cluster servers.
- *
+ *
* @param citusVersion the citusVersion value to set.
* @return the ClusterInner object itself.
*/
@@ -164,7 +173,7 @@ public ClusterInner withCitusVersion(String citusVersion) {
/**
* Get the maintenanceWindow property: Maintenance window of a cluster.
- *
+ *
* @return the maintenanceWindow value.
*/
public MaintenanceWindow maintenanceWindow() {
@@ -173,7 +182,7 @@ public MaintenanceWindow maintenanceWindow() {
/**
* Set the maintenanceWindow property: Maintenance window of a cluster.
- *
+ *
* @param maintenanceWindow the maintenanceWindow value to set.
* @return the ClusterInner object itself.
*/
@@ -187,7 +196,7 @@ public ClusterInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow) {
/**
* Get the preferredPrimaryZone property: Preferred primary availability zone (AZ) for all cluster servers.
- *
+ *
* @return the preferredPrimaryZone value.
*/
public String preferredPrimaryZone() {
@@ -196,7 +205,7 @@ public String preferredPrimaryZone() {
/**
* Set the preferredPrimaryZone property: Preferred primary availability zone (AZ) for all cluster servers.
- *
+ *
* @param preferredPrimaryZone the preferredPrimaryZone value to set.
* @return the ClusterInner object itself.
*/
@@ -209,9 +218,9 @@ public ClusterInner withPreferredPrimaryZone(String preferredPrimaryZone) {
}
/**
- * Get the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be set
- * to 'true' on single node clusters. Requires shard rebalancing after value is changed.
- *
+ * Get the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be
+ * set to 'true' on single node clusters. Requires shard rebalancing after value is changed.
+ *
* @return the enableShardsOnCoordinator value.
*/
public Boolean enableShardsOnCoordinator() {
@@ -219,9 +228,9 @@ public Boolean enableShardsOnCoordinator() {
}
/**
- * Set the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be set
- * to 'true' on single node clusters. Requires shard rebalancing after value is changed.
- *
+ * Set the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be
+ * set to 'true' on single node clusters. Requires shard rebalancing after value is changed.
+ *
* @param enableShardsOnCoordinator the enableShardsOnCoordinator value to set.
* @return the ClusterInner object itself.
*/
@@ -235,7 +244,7 @@ public ClusterInner withEnableShardsOnCoordinator(Boolean enableShardsOnCoordina
/**
* Get the enableHa property: If high availability (HA) is enabled or not for the cluster.
- *
+ *
* @return the enableHa value.
*/
public Boolean enableHa() {
@@ -244,7 +253,7 @@ public Boolean enableHa() {
/**
* Set the enableHa property: If high availability (HA) is enabled or not for the cluster.
- *
+ *
* @param enableHa the enableHa value to set.
* @return the ClusterInner object itself.
*/
@@ -259,7 +268,7 @@ public ClusterInner withEnableHa(Boolean enableHa) {
/**
* Get the coordinatorServerEdition property: The edition of a coordinator server (default: GeneralPurpose).
* Required for creation.
- *
+ *
* @return the coordinatorServerEdition value.
*/
public String coordinatorServerEdition() {
@@ -269,7 +278,7 @@ public String coordinatorServerEdition() {
/**
* Set the coordinatorServerEdition property: The edition of a coordinator server (default: GeneralPurpose).
* Required for creation.
- *
+ *
* @param coordinatorServerEdition the coordinatorServerEdition value to set.
* @return the ClusterInner object itself.
*/
@@ -284,7 +293,7 @@ public ClusterInner withCoordinatorServerEdition(String coordinatorServerEdition
/**
* Get the coordinatorStorageQuotaInMb property: The storage of a server in MB. Required for creation. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @return the coordinatorStorageQuotaInMb value.
*/
public Integer coordinatorStorageQuotaInMb() {
@@ -294,7 +303,7 @@ public Integer coordinatorStorageQuotaInMb() {
/**
* Set the coordinatorStorageQuotaInMb property: The storage of a server in MB. Required for creation. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @param coordinatorStorageQuotaInMb the coordinatorStorageQuotaInMb value to set.
* @return the ClusterInner object itself.
*/
@@ -309,7 +318,7 @@ public ClusterInner withCoordinatorStorageQuotaInMb(Integer coordinatorStorageQu
/**
* Get the coordinatorVCores property: The vCores count of a server (max: 96). Required for creation. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @return the coordinatorVCores value.
*/
public Integer coordinatorVCores() {
@@ -319,7 +328,7 @@ public Integer coordinatorVCores() {
/**
* Set the coordinatorVCores property: The vCores count of a server (max: 96). Required for creation. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @param coordinatorVCores the coordinatorVCores value to set.
* @return the ClusterInner object itself.
*/
@@ -333,7 +342,7 @@ public ClusterInner withCoordinatorVCores(Integer coordinatorVCores) {
/**
* Get the coordinatorEnablePublicIpAccess property: If public access is enabled on coordinator.
- *
+ *
* @return the coordinatorEnablePublicIpAccess value.
*/
public Boolean coordinatorEnablePublicIpAccess() {
@@ -342,7 +351,7 @@ public Boolean coordinatorEnablePublicIpAccess() {
/**
* Set the coordinatorEnablePublicIpAccess property: If public access is enabled on coordinator.
- *
+ *
* @param coordinatorEnablePublicIpAccess the coordinatorEnablePublicIpAccess value to set.
* @return the ClusterInner object itself.
*/
@@ -356,7 +365,7 @@ public ClusterInner withCoordinatorEnablePublicIpAccess(Boolean coordinatorEnabl
/**
* Get the nodeServerEdition property: The edition of a node server (default: MemoryOptimized).
- *
+ *
* @return the nodeServerEdition value.
*/
public String nodeServerEdition() {
@@ -365,7 +374,7 @@ public String nodeServerEdition() {
/**
* Set the nodeServerEdition property: The edition of a node server (default: MemoryOptimized).
- *
+ *
* @param nodeServerEdition the nodeServerEdition value to set.
* @return the ClusterInner object itself.
*/
@@ -381,7 +390,7 @@ public ClusterInner withNodeServerEdition(String nodeServerEdition) {
* Get the nodeCount property: Worker node count of the cluster. When node count is 0, it represents a single node
* configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent
* multi-node configuration. Node count value cannot be 1. Required for creation.
- *
+ *
* @return the nodeCount value.
*/
public Integer nodeCount() {
@@ -392,7 +401,7 @@ public Integer nodeCount() {
* Set the nodeCount property: Worker node count of the cluster. When node count is 0, it represents a single node
* configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent
* multi-node configuration. Node count value cannot be 1. Required for creation.
- *
+ *
* @param nodeCount the nodeCount value to set.
* @return the ClusterInner object itself.
*/
@@ -407,7 +416,7 @@ public ClusterInner withNodeCount(Integer nodeCount) {
/**
* Get the nodeStorageQuotaInMb property: The storage in MB on each worker node. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @return the nodeStorageQuotaInMb value.
*/
public Integer nodeStorageQuotaInMb() {
@@ -417,7 +426,7 @@ public Integer nodeStorageQuotaInMb() {
/**
* Set the nodeStorageQuotaInMb property: The storage in MB on each worker node. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @param nodeStorageQuotaInMb the nodeStorageQuotaInMb value to set.
* @return the ClusterInner object itself.
*/
@@ -432,7 +441,7 @@ public ClusterInner withNodeStorageQuotaInMb(Integer nodeStorageQuotaInMb) {
/**
* Get the nodeVCores property: The compute in vCores on each worker node (max: 104). See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @return the nodeVCores value.
*/
public Integer nodeVCores() {
@@ -442,7 +451,7 @@ public Integer nodeVCores() {
/**
* Set the nodeVCores property: The compute in vCores on each worker node (max: 104). See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @param nodeVCores the nodeVCores value to set.
* @return the ClusterInner object itself.
*/
@@ -456,7 +465,7 @@ public ClusterInner withNodeVCores(Integer nodeVCores) {
/**
* Get the nodeEnablePublicIpAccess property: If public access is enabled on worker nodes.
- *
+ *
* @return the nodeEnablePublicIpAccess value.
*/
public Boolean nodeEnablePublicIpAccess() {
@@ -465,7 +474,7 @@ public Boolean nodeEnablePublicIpAccess() {
/**
* Set the nodeEnablePublicIpAccess property: If public access is enabled on worker nodes.
- *
+ *
* @param nodeEnablePublicIpAccess the nodeEnablePublicIpAccess value to set.
* @return the ClusterInner object itself.
*/
@@ -479,7 +488,7 @@ public ClusterInner withNodeEnablePublicIpAccess(Boolean nodeEnablePublicIpAcces
/**
* Get the serverNames property: The list of server names in the cluster.
- *
+ *
* @return the serverNames value.
*/
public List serverNames() {
@@ -488,7 +497,7 @@ public List serverNames() {
/**
* Get the sourceResourceId property: The resource id of source cluster for read replica clusters.
- *
+ *
* @return the sourceResourceId value.
*/
public String sourceResourceId() {
@@ -497,7 +506,7 @@ public String sourceResourceId() {
/**
* Set the sourceResourceId property: The resource id of source cluster for read replica clusters.
- *
+ *
* @param sourceResourceId the sourceResourceId value to set.
* @return the ClusterInner object itself.
*/
@@ -511,7 +520,7 @@ public ClusterInner withSourceResourceId(String sourceResourceId) {
/**
* Get the sourceLocation property: The Azure region of source cluster for read replica clusters.
- *
+ *
* @return the sourceLocation value.
*/
public String sourceLocation() {
@@ -520,7 +529,7 @@ public String sourceLocation() {
/**
* Set the sourceLocation property: The Azure region of source cluster for read replica clusters.
- *
+ *
* @param sourceLocation the sourceLocation value to set.
* @return the ClusterInner object itself.
*/
@@ -534,7 +543,7 @@ public ClusterInner withSourceLocation(String sourceLocation) {
/**
* Get the pointInTimeUtc property: Date and time in UTC (ISO8601 format) for cluster restore.
- *
+ *
* @return the pointInTimeUtc value.
*/
public OffsetDateTime pointInTimeUtc() {
@@ -543,7 +552,7 @@ public OffsetDateTime pointInTimeUtc() {
/**
* Set the pointInTimeUtc property: Date and time in UTC (ISO8601 format) for cluster restore.
- *
+ *
* @param pointInTimeUtc the pointInTimeUtc value to set.
* @return the ClusterInner object itself.
*/
@@ -557,7 +566,7 @@ public ClusterInner withPointInTimeUtc(OffsetDateTime pointInTimeUtc) {
/**
* Get the readReplicas property: The array of read replica clusters.
- *
+ *
* @return the readReplicas value.
*/
public List readReplicas() {
@@ -566,7 +575,7 @@ public List readReplicas() {
/**
* Get the earliestRestoreTime property: The earliest restore point time (ISO8601 format) for the cluster.
- *
+ *
* @return the earliestRestoreTime value.
*/
public OffsetDateTime earliestRestoreTime() {
@@ -575,16 +584,87 @@ public OffsetDateTime earliestRestoreTime() {
/**
* Get the privateEndpointConnections property: The private endpoint connections for a cluster.
- *
+ *
* @return the privateEndpointConnections value.
*/
public List privateEndpointConnections() {
return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
}
+ /**
+ * Get the databaseName property: The database name of the cluster. Only one database per cluster is supported.
+ *
+ * @return the databaseName value.
+ */
+ public String databaseName() {
+ return this.innerProperties() == null ? null : this.innerProperties().databaseName();
+ }
+
+ /**
+ * Set the databaseName property: The database name of the cluster. Only one database per cluster is supported.
+ *
+ * @param databaseName the databaseName value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withDatabaseName(String databaseName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withDatabaseName(databaseName);
+ return this;
+ }
+
+ /**
+ * Get the enableGeoBackup property: If cluster backup is stored in another Azure region in addition to the copy of
+ * the backup stored in the cluster's region. Enabled only at the time of cluster creation.
+ *
+ * @return the enableGeoBackup value.
+ */
+ public Boolean enableGeoBackup() {
+ return this.innerProperties() == null ? null : this.innerProperties().enableGeoBackup();
+ }
+
+ /**
+ * Set the enableGeoBackup property: If cluster backup is stored in another Azure region in addition to the copy of
+ * the backup stored in the cluster's region. Enabled only at the time of cluster creation.
+ *
+ * @param enableGeoBackup the enableGeoBackup value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withEnableGeoBackup(Boolean enableGeoBackup) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withEnableGeoBackup(enableGeoBackup);
+ return this;
+ }
+
+ /**
+ * Get the authConfig property: Authentication configuration of a cluster.
+ *
+ * @return the authConfig value.
+ */
+ public AuthConfig authConfig() {
+ return this.innerProperties() == null ? null : this.innerProperties().authConfig();
+ }
+
+ /**
+ * Set the authConfig property: Authentication configuration of a cluster.
+ *
+ * @param authConfig the authConfig value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withAuthConfig(AuthConfig authConfig) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withAuthConfig(authConfig);
+ return this;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterProperties.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterProperties.java
index 22d77a68f0f4..6955296cfb4b 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterProperties.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterProperties.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.cosmosdbforpostgresql.models.AuthConfig;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.MaintenanceWindow;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ServerNameItem;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.SimplePrivateEndpointConnection;
@@ -12,7 +13,9 @@
import java.time.OffsetDateTime;
import java.util.List;
-/** Properties of the cluster. */
+/**
+ * Properties of the cluster.
+ */
@Fluent
public final class ClusterProperties {
/*
@@ -178,13 +181,34 @@ public final class ClusterProperties {
@JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
private List privateEndpointConnections;
- /** Creates an instance of ClusterProperties class. */
+ /*
+ * The database name of the cluster. Only one database per cluster is supported.
+ */
+ @JsonProperty(value = "databaseName")
+ private String databaseName;
+
+ /*
+ * If cluster backup is stored in another Azure region in addition to the copy of the backup stored in the
+ * cluster's region. Enabled only at the time of cluster creation.
+ */
+ @JsonProperty(value = "enableGeoBackup")
+ private Boolean enableGeoBackup;
+
+ /*
+ * Authentication configuration of a cluster.
+ */
+ @JsonProperty(value = "authConfig")
+ private AuthConfig authConfig;
+
+ /**
+ * Creates an instance of ClusterProperties class.
+ */
public ClusterProperties() {
}
/**
* Get the administratorLogin property: The administrator's login name of the servers in the cluster.
- *
+ *
* @return the administratorLogin value.
*/
public String administratorLogin() {
@@ -193,7 +217,7 @@ public String administratorLogin() {
/**
* Get the administratorLoginPassword property: The password of the administrator login. Required for creation.
- *
+ *
* @return the administratorLoginPassword value.
*/
public String administratorLoginPassword() {
@@ -202,7 +226,7 @@ public String administratorLoginPassword() {
/**
* Set the administratorLoginPassword property: The password of the administrator login. Required for creation.
- *
+ *
* @param administratorLoginPassword the administratorLoginPassword value to set.
* @return the ClusterProperties object itself.
*/
@@ -213,7 +237,7 @@ public ClusterProperties withAdministratorLoginPassword(String administratorLogi
/**
* Get the provisioningState property: Provisioning state of the cluster.
- *
+ *
* @return the provisioningState value.
*/
public String provisioningState() {
@@ -222,7 +246,7 @@ public String provisioningState() {
/**
* Get the state property: A state of a cluster/server that is visible to user.
- *
+ *
* @return the state value.
*/
public String state() {
@@ -231,7 +255,7 @@ public String state() {
/**
* Get the postgresqlVersion property: The major PostgreSQL version on all cluster servers.
- *
+ *
* @return the postgresqlVersion value.
*/
public String postgresqlVersion() {
@@ -240,7 +264,7 @@ public String postgresqlVersion() {
/**
* Set the postgresqlVersion property: The major PostgreSQL version on all cluster servers.
- *
+ *
* @param postgresqlVersion the postgresqlVersion value to set.
* @return the ClusterProperties object itself.
*/
@@ -251,7 +275,7 @@ public ClusterProperties withPostgresqlVersion(String postgresqlVersion) {
/**
* Get the citusVersion property: The Citus extension version on all cluster servers.
- *
+ *
* @return the citusVersion value.
*/
public String citusVersion() {
@@ -260,7 +284,7 @@ public String citusVersion() {
/**
* Set the citusVersion property: The Citus extension version on all cluster servers.
- *
+ *
* @param citusVersion the citusVersion value to set.
* @return the ClusterProperties object itself.
*/
@@ -271,7 +295,7 @@ public ClusterProperties withCitusVersion(String citusVersion) {
/**
* Get the maintenanceWindow property: Maintenance window of a cluster.
- *
+ *
* @return the maintenanceWindow value.
*/
public MaintenanceWindow maintenanceWindow() {
@@ -280,7 +304,7 @@ public MaintenanceWindow maintenanceWindow() {
/**
* Set the maintenanceWindow property: Maintenance window of a cluster.
- *
+ *
* @param maintenanceWindow the maintenanceWindow value to set.
* @return the ClusterProperties object itself.
*/
@@ -291,7 +315,7 @@ public ClusterProperties withMaintenanceWindow(MaintenanceWindow maintenanceWind
/**
* Get the preferredPrimaryZone property: Preferred primary availability zone (AZ) for all cluster servers.
- *
+ *
* @return the preferredPrimaryZone value.
*/
public String preferredPrimaryZone() {
@@ -300,7 +324,7 @@ public String preferredPrimaryZone() {
/**
* Set the preferredPrimaryZone property: Preferred primary availability zone (AZ) for all cluster servers.
- *
+ *
* @param preferredPrimaryZone the preferredPrimaryZone value to set.
* @return the ClusterProperties object itself.
*/
@@ -310,9 +334,9 @@ public ClusterProperties withPreferredPrimaryZone(String preferredPrimaryZone) {
}
/**
- * Get the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be set
- * to 'true' on single node clusters. Requires shard rebalancing after value is changed.
- *
+ * Get the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be
+ * set to 'true' on single node clusters. Requires shard rebalancing after value is changed.
+ *
* @return the enableShardsOnCoordinator value.
*/
public Boolean enableShardsOnCoordinator() {
@@ -320,9 +344,9 @@ public Boolean enableShardsOnCoordinator() {
}
/**
- * Set the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be set
- * to 'true' on single node clusters. Requires shard rebalancing after value is changed.
- *
+ * Set the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be
+ * set to 'true' on single node clusters. Requires shard rebalancing after value is changed.
+ *
* @param enableShardsOnCoordinator the enableShardsOnCoordinator value to set.
* @return the ClusterProperties object itself.
*/
@@ -333,7 +357,7 @@ public ClusterProperties withEnableShardsOnCoordinator(Boolean enableShardsOnCoo
/**
* Get the enableHa property: If high availability (HA) is enabled or not for the cluster.
- *
+ *
* @return the enableHa value.
*/
public Boolean enableHa() {
@@ -342,7 +366,7 @@ public Boolean enableHa() {
/**
* Set the enableHa property: If high availability (HA) is enabled or not for the cluster.
- *
+ *
* @param enableHa the enableHa value to set.
* @return the ClusterProperties object itself.
*/
@@ -354,7 +378,7 @@ public ClusterProperties withEnableHa(Boolean enableHa) {
/**
* Get the coordinatorServerEdition property: The edition of a coordinator server (default: GeneralPurpose).
* Required for creation.
- *
+ *
* @return the coordinatorServerEdition value.
*/
public String coordinatorServerEdition() {
@@ -364,7 +388,7 @@ public String coordinatorServerEdition() {
/**
* Set the coordinatorServerEdition property: The edition of a coordinator server (default: GeneralPurpose).
* Required for creation.
- *
+ *
* @param coordinatorServerEdition the coordinatorServerEdition value to set.
* @return the ClusterProperties object itself.
*/
@@ -376,7 +400,7 @@ public ClusterProperties withCoordinatorServerEdition(String coordinatorServerEd
/**
* Get the coordinatorStorageQuotaInMb property: The storage of a server in MB. Required for creation. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @return the coordinatorStorageQuotaInMb value.
*/
public Integer coordinatorStorageQuotaInMb() {
@@ -386,7 +410,7 @@ public Integer coordinatorStorageQuotaInMb() {
/**
* Set the coordinatorStorageQuotaInMb property: The storage of a server in MB. Required for creation. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @param coordinatorStorageQuotaInMb the coordinatorStorageQuotaInMb value to set.
* @return the ClusterProperties object itself.
*/
@@ -398,7 +422,7 @@ public ClusterProperties withCoordinatorStorageQuotaInMb(Integer coordinatorStor
/**
* Get the coordinatorVCores property: The vCores count of a server (max: 96). Required for creation. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @return the coordinatorVCores value.
*/
public Integer coordinatorVCores() {
@@ -408,7 +432,7 @@ public Integer coordinatorVCores() {
/**
* Set the coordinatorVCores property: The vCores count of a server (max: 96). Required for creation. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @param coordinatorVCores the coordinatorVCores value to set.
* @return the ClusterProperties object itself.
*/
@@ -419,7 +443,7 @@ public ClusterProperties withCoordinatorVCores(Integer coordinatorVCores) {
/**
* Get the coordinatorEnablePublicIpAccess property: If public access is enabled on coordinator.
- *
+ *
* @return the coordinatorEnablePublicIpAccess value.
*/
public Boolean coordinatorEnablePublicIpAccess() {
@@ -428,7 +452,7 @@ public Boolean coordinatorEnablePublicIpAccess() {
/**
* Set the coordinatorEnablePublicIpAccess property: If public access is enabled on coordinator.
- *
+ *
* @param coordinatorEnablePublicIpAccess the coordinatorEnablePublicIpAccess value to set.
* @return the ClusterProperties object itself.
*/
@@ -439,7 +463,7 @@ public ClusterProperties withCoordinatorEnablePublicIpAccess(Boolean coordinator
/**
* Get the nodeServerEdition property: The edition of a node server (default: MemoryOptimized).
- *
+ *
* @return the nodeServerEdition value.
*/
public String nodeServerEdition() {
@@ -448,7 +472,7 @@ public String nodeServerEdition() {
/**
* Set the nodeServerEdition property: The edition of a node server (default: MemoryOptimized).
- *
+ *
* @param nodeServerEdition the nodeServerEdition value to set.
* @return the ClusterProperties object itself.
*/
@@ -461,7 +485,7 @@ public ClusterProperties withNodeServerEdition(String nodeServerEdition) {
* Get the nodeCount property: Worker node count of the cluster. When node count is 0, it represents a single node
* configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent
* multi-node configuration. Node count value cannot be 1. Required for creation.
- *
+ *
* @return the nodeCount value.
*/
public Integer nodeCount() {
@@ -472,7 +496,7 @@ public Integer nodeCount() {
* Set the nodeCount property: Worker node count of the cluster. When node count is 0, it represents a single node
* configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent
* multi-node configuration. Node count value cannot be 1. Required for creation.
- *
+ *
* @param nodeCount the nodeCount value to set.
* @return the ClusterProperties object itself.
*/
@@ -484,7 +508,7 @@ public ClusterProperties withNodeCount(Integer nodeCount) {
/**
* Get the nodeStorageQuotaInMb property: The storage in MB on each worker node. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @return the nodeStorageQuotaInMb value.
*/
public Integer nodeStorageQuotaInMb() {
@@ -494,7 +518,7 @@ public Integer nodeStorageQuotaInMb() {
/**
* Set the nodeStorageQuotaInMb property: The storage in MB on each worker node. See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @param nodeStorageQuotaInMb the nodeStorageQuotaInMb value to set.
* @return the ClusterProperties object itself.
*/
@@ -506,7 +530,7 @@ public ClusterProperties withNodeStorageQuotaInMb(Integer nodeStorageQuotaInMb)
/**
* Get the nodeVCores property: The compute in vCores on each worker node (max: 104). See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @return the nodeVCores value.
*/
public Integer nodeVCores() {
@@ -516,7 +540,7 @@ public Integer nodeVCores() {
/**
* Set the nodeVCores property: The compute in vCores on each worker node (max: 104). See
* https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
- *
+ *
* @param nodeVCores the nodeVCores value to set.
* @return the ClusterProperties object itself.
*/
@@ -527,7 +551,7 @@ public ClusterProperties withNodeVCores(Integer nodeVCores) {
/**
* Get the nodeEnablePublicIpAccess property: If public access is enabled on worker nodes.
- *
+ *
* @return the nodeEnablePublicIpAccess value.
*/
public Boolean nodeEnablePublicIpAccess() {
@@ -536,7 +560,7 @@ public Boolean nodeEnablePublicIpAccess() {
/**
* Set the nodeEnablePublicIpAccess property: If public access is enabled on worker nodes.
- *
+ *
* @param nodeEnablePublicIpAccess the nodeEnablePublicIpAccess value to set.
* @return the ClusterProperties object itself.
*/
@@ -547,7 +571,7 @@ public ClusterProperties withNodeEnablePublicIpAccess(Boolean nodeEnablePublicIp
/**
* Get the serverNames property: The list of server names in the cluster.
- *
+ *
* @return the serverNames value.
*/
public List serverNames() {
@@ -556,7 +580,7 @@ public List serverNames() {
/**
* Get the sourceResourceId property: The resource id of source cluster for read replica clusters.
- *
+ *
* @return the sourceResourceId value.
*/
public String sourceResourceId() {
@@ -565,7 +589,7 @@ public String sourceResourceId() {
/**
* Set the sourceResourceId property: The resource id of source cluster for read replica clusters.
- *
+ *
* @param sourceResourceId the sourceResourceId value to set.
* @return the ClusterProperties object itself.
*/
@@ -576,7 +600,7 @@ public ClusterProperties withSourceResourceId(String sourceResourceId) {
/**
* Get the sourceLocation property: The Azure region of source cluster for read replica clusters.
- *
+ *
* @return the sourceLocation value.
*/
public String sourceLocation() {
@@ -585,7 +609,7 @@ public String sourceLocation() {
/**
* Set the sourceLocation property: The Azure region of source cluster for read replica clusters.
- *
+ *
* @param sourceLocation the sourceLocation value to set.
* @return the ClusterProperties object itself.
*/
@@ -596,7 +620,7 @@ public ClusterProperties withSourceLocation(String sourceLocation) {
/**
* Get the pointInTimeUtc property: Date and time in UTC (ISO8601 format) for cluster restore.
- *
+ *
* @return the pointInTimeUtc value.
*/
public OffsetDateTime pointInTimeUtc() {
@@ -605,7 +629,7 @@ public OffsetDateTime pointInTimeUtc() {
/**
* Set the pointInTimeUtc property: Date and time in UTC (ISO8601 format) for cluster restore.
- *
+ *
* @param pointInTimeUtc the pointInTimeUtc value to set.
* @return the ClusterProperties object itself.
*/
@@ -616,7 +640,7 @@ public ClusterProperties withPointInTimeUtc(OffsetDateTime pointInTimeUtc) {
/**
* Get the readReplicas property: The array of read replica clusters.
- *
+ *
* @return the readReplicas value.
*/
public List readReplicas() {
@@ -625,7 +649,7 @@ public List readReplicas() {
/**
* Get the earliestRestoreTime property: The earliest restore point time (ISO8601 format) for the cluster.
- *
+ *
* @return the earliestRestoreTime value.
*/
public OffsetDateTime earliestRestoreTime() {
@@ -634,16 +658,78 @@ public OffsetDateTime earliestRestoreTime() {
/**
* Get the privateEndpointConnections property: The private endpoint connections for a cluster.
- *
+ *
* @return the privateEndpointConnections value.
*/
public List privateEndpointConnections() {
return this.privateEndpointConnections;
}
+ /**
+ * Get the databaseName property: The database name of the cluster. Only one database per cluster is supported.
+ *
+ * @return the databaseName value.
+ */
+ public String databaseName() {
+ return this.databaseName;
+ }
+
+ /**
+ * Set the databaseName property: The database name of the cluster. Only one database per cluster is supported.
+ *
+ * @param databaseName the databaseName value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withDatabaseName(String databaseName) {
+ this.databaseName = databaseName;
+ return this;
+ }
+
+ /**
+ * Get the enableGeoBackup property: If cluster backup is stored in another Azure region in addition to the copy of
+ * the backup stored in the cluster's region. Enabled only at the time of cluster creation.
+ *
+ * @return the enableGeoBackup value.
+ */
+ public Boolean enableGeoBackup() {
+ return this.enableGeoBackup;
+ }
+
+ /**
+ * Set the enableGeoBackup property: If cluster backup is stored in another Azure region in addition to the copy of
+ * the backup stored in the cluster's region. Enabled only at the time of cluster creation.
+ *
+ * @param enableGeoBackup the enableGeoBackup value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withEnableGeoBackup(Boolean enableGeoBackup) {
+ this.enableGeoBackup = enableGeoBackup;
+ return this;
+ }
+
+ /**
+ * Get the authConfig property: Authentication configuration of a cluster.
+ *
+ * @return the authConfig value.
+ */
+ public AuthConfig authConfig() {
+ return this.authConfig;
+ }
+
+ /**
+ * Set the authConfig property: Authentication configuration of a cluster.
+ *
+ * @param authConfig the authConfig value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withAuthConfig(AuthConfig authConfig) {
+ this.authConfig = authConfig;
+ return this;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -656,5 +742,8 @@ public void validate() {
if (privateEndpointConnections() != null) {
privateEndpointConnections().forEach(e -> e.validate());
}
+ if (authConfig() != null) {
+ authConfig().validate();
+ }
}
}
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterPropertiesForUpdate.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterPropertiesForUpdate.java
index 82ee433f3368..88d4d1a9d36a 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterPropertiesForUpdate.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterPropertiesForUpdate.java
@@ -8,12 +8,14 @@
import com.azure.resourcemanager.cosmosdbforpostgresql.models.MaintenanceWindow;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The properties used to update a cluster. */
+/**
+ * The properties used to update a cluster.
+ */
@Fluent
public final class ClusterPropertiesForUpdate {
/*
* The password of the administrator login. Each cluster is created with pre-defined administrative role called
- * ‘citus’.
+ * ‘citus’. 
*/
@JsonProperty(value = "administratorLoginPassword")
private String administratorLoginPassword;
@@ -111,14 +113,16 @@ public final class ClusterPropertiesForUpdate {
@JsonProperty(value = "maintenanceWindow")
private MaintenanceWindow maintenanceWindow;
- /** Creates an instance of ClusterPropertiesForUpdate class. */
+ /**
+ * Creates an instance of ClusterPropertiesForUpdate class.
+ */
public ClusterPropertiesForUpdate() {
}
/**
* Get the administratorLoginPassword property: The password of the administrator login. Each cluster is created
* with pre-defined administrative role called ‘citus’. .
- *
+ *
* @return the administratorLoginPassword value.
*/
public String administratorLoginPassword() {
@@ -128,7 +132,7 @@ public String administratorLoginPassword() {
/**
* Set the administratorLoginPassword property: The password of the administrator login. Each cluster is created
* with pre-defined administrative role called ‘citus’. .
- *
+ *
* @param administratorLoginPassword the administratorLoginPassword value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -139,7 +143,7 @@ public ClusterPropertiesForUpdate withAdministratorLoginPassword(String administ
/**
* Get the postgresqlVersion property: The major PostgreSQL version on all cluster servers.
- *
+ *
* @return the postgresqlVersion value.
*/
public String postgresqlVersion() {
@@ -148,7 +152,7 @@ public String postgresqlVersion() {
/**
* Set the postgresqlVersion property: The major PostgreSQL version on all cluster servers.
- *
+ *
* @param postgresqlVersion the postgresqlVersion value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -159,7 +163,7 @@ public ClusterPropertiesForUpdate withPostgresqlVersion(String postgresqlVersion
/**
* Get the citusVersion property: The Citus extension version on all cluster servers.
- *
+ *
* @return the citusVersion value.
*/
public String citusVersion() {
@@ -168,7 +172,7 @@ public String citusVersion() {
/**
* Set the citusVersion property: The Citus extension version on all cluster servers.
- *
+ *
* @param citusVersion the citusVersion value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -178,9 +182,9 @@ public ClusterPropertiesForUpdate withCitusVersion(String citusVersion) {
}
/**
- * Get the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be set
- * to 'true' on single node clusters. Requires shard rebalancing after value is changed.
- *
+ * Get the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be
+ * set to 'true' on single node clusters. Requires shard rebalancing after value is changed.
+ *
* @return the enableShardsOnCoordinator value.
*/
public Boolean enableShardsOnCoordinator() {
@@ -188,9 +192,9 @@ public Boolean enableShardsOnCoordinator() {
}
/**
- * Set the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be set
- * to 'true' on single node clusters. Requires shard rebalancing after value is changed.
- *
+ * Set the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be
+ * set to 'true' on single node clusters. Requires shard rebalancing after value is changed.
+ *
* @param enableShardsOnCoordinator the enableShardsOnCoordinator value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -201,7 +205,7 @@ public ClusterPropertiesForUpdate withEnableShardsOnCoordinator(Boolean enableSh
/**
* Get the enableHa property: If high availability (HA) is enabled or not for the cluster.
- *
+ *
* @return the enableHa value.
*/
public Boolean enableHa() {
@@ -210,7 +214,7 @@ public Boolean enableHa() {
/**
* Set the enableHa property: If high availability (HA) is enabled or not for the cluster.
- *
+ *
* @param enableHa the enableHa value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -221,7 +225,7 @@ public ClusterPropertiesForUpdate withEnableHa(Boolean enableHa) {
/**
* Get the preferredPrimaryZone property: Preferred primary availability zone (AZ) for all cluster servers.
- *
+ *
* @return the preferredPrimaryZone value.
*/
public String preferredPrimaryZone() {
@@ -230,7 +234,7 @@ public String preferredPrimaryZone() {
/**
* Set the preferredPrimaryZone property: Preferred primary availability zone (AZ) for all cluster servers.
- *
+ *
* @param preferredPrimaryZone the preferredPrimaryZone value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -241,7 +245,7 @@ public ClusterPropertiesForUpdate withPreferredPrimaryZone(String preferredPrima
/**
* Get the coordinatorServerEdition property: The edition of the coordinator (default: GeneralPurpose).
- *
+ *
* @return the coordinatorServerEdition value.
*/
public String coordinatorServerEdition() {
@@ -250,7 +254,7 @@ public String coordinatorServerEdition() {
/**
* Set the coordinatorServerEdition property: The edition of the coordinator (default: GeneralPurpose).
- *
+ *
* @param coordinatorServerEdition the coordinatorServerEdition value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -261,7 +265,7 @@ public ClusterPropertiesForUpdate withCoordinatorServerEdition(String coordinato
/**
* Get the coordinatorStorageQuotaInMb property: The storage of the coordinator in MB.
- *
+ *
* @return the coordinatorStorageQuotaInMb value.
*/
public Integer coordinatorStorageQuotaInMb() {
@@ -270,7 +274,7 @@ public Integer coordinatorStorageQuotaInMb() {
/**
* Set the coordinatorStorageQuotaInMb property: The storage of the coordinator in MB.
- *
+ *
* @param coordinatorStorageQuotaInMb the coordinatorStorageQuotaInMb value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -281,7 +285,7 @@ public ClusterPropertiesForUpdate withCoordinatorStorageQuotaInMb(Integer coordi
/**
* Get the coordinatorVCores property: The vCores count of the coordinator (max: 96).
- *
+ *
* @return the coordinatorVCores value.
*/
public Integer coordinatorVCores() {
@@ -290,7 +294,7 @@ public Integer coordinatorVCores() {
/**
* Set the coordinatorVCores property: The vCores count of the coordinator (max: 96).
- *
+ *
* @param coordinatorVCores the coordinatorVCores value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -301,7 +305,7 @@ public ClusterPropertiesForUpdate withCoordinatorVCores(Integer coordinatorVCore
/**
* Get the coordinatorEnablePublicIpAccess property: If public access is enabled on coordinator.
- *
+ *
* @return the coordinatorEnablePublicIpAccess value.
*/
public Boolean coordinatorEnablePublicIpAccess() {
@@ -310,7 +314,7 @@ public Boolean coordinatorEnablePublicIpAccess() {
/**
* Set the coordinatorEnablePublicIpAccess property: If public access is enabled on coordinator.
- *
+ *
* @param coordinatorEnablePublicIpAccess the coordinatorEnablePublicIpAccess value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -321,7 +325,7 @@ public ClusterPropertiesForUpdate withCoordinatorEnablePublicIpAccess(Boolean co
/**
* Get the nodeServerEdition property: The edition of a node (default: MemoryOptimized).
- *
+ *
* @return the nodeServerEdition value.
*/
public String nodeServerEdition() {
@@ -330,7 +334,7 @@ public String nodeServerEdition() {
/**
* Set the nodeServerEdition property: The edition of a node (default: MemoryOptimized).
- *
+ *
* @param nodeServerEdition the nodeServerEdition value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -343,7 +347,7 @@ public ClusterPropertiesForUpdate withNodeServerEdition(String nodeServerEdition
* Get the nodeCount property: Worker node count of the cluster. When node count is 0, it represents a single node
* configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent
* multi-node configuration. Node count value cannot be 1.
- *
+ *
* @return the nodeCount value.
*/
public Integer nodeCount() {
@@ -354,7 +358,7 @@ public Integer nodeCount() {
* Set the nodeCount property: Worker node count of the cluster. When node count is 0, it represents a single node
* configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent
* multi-node configuration. Node count value cannot be 1.
- *
+ *
* @param nodeCount the nodeCount value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -365,7 +369,7 @@ public ClusterPropertiesForUpdate withNodeCount(Integer nodeCount) {
/**
* Get the nodeStorageQuotaInMb property: The storage in MB on each worker node.
- *
+ *
* @return the nodeStorageQuotaInMb value.
*/
public Integer nodeStorageQuotaInMb() {
@@ -374,7 +378,7 @@ public Integer nodeStorageQuotaInMb() {
/**
* Set the nodeStorageQuotaInMb property: The storage in MB on each worker node.
- *
+ *
* @param nodeStorageQuotaInMb the nodeStorageQuotaInMb value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -385,7 +389,7 @@ public ClusterPropertiesForUpdate withNodeStorageQuotaInMb(Integer nodeStorageQu
/**
* Get the nodeVCores property: The compute in vCores on each worker node (max: 104).
- *
+ *
* @return the nodeVCores value.
*/
public Integer nodeVCores() {
@@ -394,7 +398,7 @@ public Integer nodeVCores() {
/**
* Set the nodeVCores property: The compute in vCores on each worker node (max: 104).
- *
+ *
* @param nodeVCores the nodeVCores value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -405,7 +409,7 @@ public ClusterPropertiesForUpdate withNodeVCores(Integer nodeVCores) {
/**
* Get the nodeEnablePublicIpAccess property: If public access is enabled on worker nodes.
- *
+ *
* @return the nodeEnablePublicIpAccess value.
*/
public Boolean nodeEnablePublicIpAccess() {
@@ -414,7 +418,7 @@ public Boolean nodeEnablePublicIpAccess() {
/**
* Get the maintenanceWindow property: Maintenance window of a cluster.
- *
+ *
* @return the maintenanceWindow value.
*/
public MaintenanceWindow maintenanceWindow() {
@@ -423,7 +427,7 @@ public MaintenanceWindow maintenanceWindow() {
/**
* Set the maintenanceWindow property: Maintenance window of a cluster.
- *
+ *
* @param maintenanceWindow the maintenanceWindow value to set.
* @return the ClusterPropertiesForUpdate object itself.
*/
@@ -434,7 +438,7 @@ public ClusterPropertiesForUpdate withMaintenanceWindow(MaintenanceWindow mainte
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterServerInner.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterServerInner.java
index 0bd9e3e16550..56cb9ef68616 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterServerInner.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterServerInner.java
@@ -10,7 +10,9 @@
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ServerRole;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Represents a server in a cluster. */
+/**
+ * Represents a server in a cluster.
+ */
@Fluent
public final class ClusterServerInner extends ProxyResource {
/*
@@ -25,13 +27,15 @@ public final class ClusterServerInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of ClusterServerInner class. */
+ /**
+ * Creates an instance of ClusterServerInner class.
+ */
public ClusterServerInner() {
}
/**
* Get the innerProperties property: The properties of a server in a cluster.
- *
+ *
* @return the innerProperties value.
*/
private ClusterServerProperties innerProperties() {
@@ -40,7 +44,7 @@ private ClusterServerProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -49,7 +53,7 @@ public SystemData systemData() {
/**
* Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
- *
+ *
* @return the fullyQualifiedDomainName value.
*/
public String fullyQualifiedDomainName() {
@@ -58,7 +62,7 @@ public String fullyQualifiedDomainName() {
/**
* Get the role property: The role of server in the cluster.
- *
+ *
* @return the role value.
*/
public ServerRole role() {
@@ -67,7 +71,7 @@ public ServerRole role() {
/**
* Set the role property: The role of server in the cluster.
- *
+ *
* @param role the role value to set.
* @return the ClusterServerInner object itself.
*/
@@ -81,7 +85,7 @@ public ClusterServerInner withRole(ServerRole role) {
/**
* Get the state property: A state of a cluster/server that is visible to user.
- *
+ *
* @return the state value.
*/
public String state() {
@@ -90,7 +94,7 @@ public String state() {
/**
* Get the haState property: A state of HA feature for the cluster.
- *
+ *
* @return the haState value.
*/
public String haState() {
@@ -99,7 +103,7 @@ public String haState() {
/**
* Get the availabilityZone property: Availability Zone information of the server.
- *
+ *
* @return the availabilityZone value.
*/
public String availabilityZone() {
@@ -108,7 +112,7 @@ public String availabilityZone() {
/**
* Set the availabilityZone property: Availability Zone information of the server.
- *
+ *
* @param availabilityZone the availabilityZone value to set.
* @return the ClusterServerInner object itself.
*/
@@ -122,7 +126,7 @@ public ClusterServerInner withAvailabilityZone(String availabilityZone) {
/**
* Get the postgresqlVersion property: The major PostgreSQL version of server.
- *
+ *
* @return the postgresqlVersion value.
*/
public String postgresqlVersion() {
@@ -131,7 +135,7 @@ public String postgresqlVersion() {
/**
* Set the postgresqlVersion property: The major PostgreSQL version of server.
- *
+ *
* @param postgresqlVersion the postgresqlVersion value to set.
* @return the ClusterServerInner object itself.
*/
@@ -145,7 +149,7 @@ public ClusterServerInner withPostgresqlVersion(String postgresqlVersion) {
/**
* Get the citusVersion property: The Citus extension version of server.
- *
+ *
* @return the citusVersion value.
*/
public String citusVersion() {
@@ -154,7 +158,7 @@ public String citusVersion() {
/**
* Set the citusVersion property: The Citus extension version of server.
- *
+ *
* @param citusVersion the citusVersion value to set.
* @return the ClusterServerInner object itself.
*/
@@ -168,7 +172,7 @@ public ClusterServerInner withCitusVersion(String citusVersion) {
/**
* Get the serverEdition property: The edition of a server.
- *
+ *
* @return the serverEdition value.
*/
public String serverEdition() {
@@ -177,7 +181,7 @@ public String serverEdition() {
/**
* Set the serverEdition property: The edition of a server.
- *
+ *
* @param serverEdition the serverEdition value to set.
* @return the ClusterServerInner object itself.
*/
@@ -191,7 +195,7 @@ public ClusterServerInner withServerEdition(String serverEdition) {
/**
* Get the storageQuotaInMb property: The storage of a server in MB.
- *
+ *
* @return the storageQuotaInMb value.
*/
public Integer storageQuotaInMb() {
@@ -200,7 +204,7 @@ public Integer storageQuotaInMb() {
/**
* Set the storageQuotaInMb property: The storage of a server in MB.
- *
+ *
* @param storageQuotaInMb the storageQuotaInMb value to set.
* @return the ClusterServerInner object itself.
*/
@@ -214,7 +218,7 @@ public ClusterServerInner withStorageQuotaInMb(Integer storageQuotaInMb) {
/**
* Get the vCores property: The vCores count of a server.
- *
+ *
* @return the vCores value.
*/
public Integer vCores() {
@@ -223,7 +227,7 @@ public Integer vCores() {
/**
* Set the vCores property: The vCores count of a server.
- *
+ *
* @param vCores the vCores value to set.
* @return the ClusterServerInner object itself.
*/
@@ -237,7 +241,7 @@ public ClusterServerInner withVCores(Integer vCores) {
/**
* Get the enableHa property: If high availability (HA) is enabled or not for the server.
- *
+ *
* @return the enableHa value.
*/
public Boolean enableHa() {
@@ -246,7 +250,7 @@ public Boolean enableHa() {
/**
* Set the enableHa property: If high availability (HA) is enabled or not for the server.
- *
+ *
* @param enableHa the enableHa value to set.
* @return the ClusterServerInner object itself.
*/
@@ -260,7 +264,7 @@ public ClusterServerInner withEnableHa(Boolean enableHa) {
/**
* Get the enablePublicIpAccess property: If public access is enabled on server.
- *
+ *
* @return the enablePublicIpAccess value.
*/
public Boolean enablePublicIpAccess() {
@@ -270,7 +274,7 @@ public Boolean enablePublicIpAccess() {
/**
* Get the isReadOnly property: If server database is set to read-only by system maintenance depending on high disk
* space usage.
- *
+ *
* @return the isReadOnly value.
*/
public Boolean isReadOnly() {
@@ -279,7 +283,7 @@ public Boolean isReadOnly() {
/**
* Get the administratorLogin property: The administrator's login name of the servers in the cluster.
- *
+ *
* @return the administratorLogin value.
*/
public String administratorLogin() {
@@ -288,7 +292,7 @@ public String administratorLogin() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterServerProperties.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterServerProperties.java
index c52ed425d6f0..588cdef051f7 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterServerProperties.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ClusterServerProperties.java
@@ -9,7 +9,9 @@
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ServerRole;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The properties of a server in cluster. */
+/**
+ * The properties of a server in cluster.
+ */
@Fluent
public final class ClusterServerProperties extends ServerProperties {
/*
@@ -54,13 +56,15 @@ public final class ClusterServerProperties extends ServerProperties {
@JsonProperty(value = "citusVersion")
private String citusVersion;
- /** Creates an instance of ClusterServerProperties class. */
+ /**
+ * Creates an instance of ClusterServerProperties class.
+ */
public ClusterServerProperties() {
}
/**
* Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
- *
+ *
* @return the fullyQualifiedDomainName value.
*/
public String fullyQualifiedDomainName() {
@@ -69,7 +73,7 @@ public String fullyQualifiedDomainName() {
/**
* Get the role property: The role of server in the cluster.
- *
+ *
* @return the role value.
*/
public ServerRole role() {
@@ -78,7 +82,7 @@ public ServerRole role() {
/**
* Set the role property: The role of server in the cluster.
- *
+ *
* @param role the role value to set.
* @return the ClusterServerProperties object itself.
*/
@@ -89,7 +93,7 @@ public ClusterServerProperties withRole(ServerRole role) {
/**
* Get the state property: A state of a cluster/server that is visible to user.
- *
+ *
* @return the state value.
*/
public String state() {
@@ -98,7 +102,7 @@ public String state() {
/**
* Get the haState property: A state of HA feature for the cluster.
- *
+ *
* @return the haState value.
*/
public String haState() {
@@ -107,7 +111,7 @@ public String haState() {
/**
* Get the availabilityZone property: Availability Zone information of the server.
- *
+ *
* @return the availabilityZone value.
*/
public String availabilityZone() {
@@ -116,7 +120,7 @@ public String availabilityZone() {
/**
* Set the availabilityZone property: Availability Zone information of the server.
- *
+ *
* @param availabilityZone the availabilityZone value to set.
* @return the ClusterServerProperties object itself.
*/
@@ -127,7 +131,7 @@ public ClusterServerProperties withAvailabilityZone(String availabilityZone) {
/**
* Get the postgresqlVersion property: The major PostgreSQL version of server.
- *
+ *
* @return the postgresqlVersion value.
*/
public String postgresqlVersion() {
@@ -136,7 +140,7 @@ public String postgresqlVersion() {
/**
* Set the postgresqlVersion property: The major PostgreSQL version of server.
- *
+ *
* @param postgresqlVersion the postgresqlVersion value to set.
* @return the ClusterServerProperties object itself.
*/
@@ -147,7 +151,7 @@ public ClusterServerProperties withPostgresqlVersion(String postgresqlVersion) {
/**
* Get the citusVersion property: The Citus extension version of server.
- *
+ *
* @return the citusVersion value.
*/
public String citusVersion() {
@@ -156,7 +160,7 @@ public String citusVersion() {
/**
* Set the citusVersion property: The Citus extension version of server.
- *
+ *
* @param citusVersion the citusVersion value to set.
* @return the ClusterServerProperties object itself.
*/
@@ -165,28 +169,36 @@ public ClusterServerProperties withCitusVersion(String citusVersion) {
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ClusterServerProperties withServerEdition(String serverEdition) {
super.withServerEdition(serverEdition);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ClusterServerProperties withStorageQuotaInMb(Integer storageQuotaInMb) {
super.withStorageQuotaInMb(storageQuotaInMb);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ClusterServerProperties withVCores(Integer vCores) {
super.withVCores(vCores);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ClusterServerProperties withEnableHa(Boolean enableHa) {
super.withEnableHa(enableHa);
@@ -195,7 +207,7 @@ public ClusterServerProperties withEnableHa(Boolean enableHa) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ConfigurationInner.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ConfigurationInner.java
index e97037232bb2..86d787e7ee84 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ConfigurationInner.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ConfigurationInner.java
@@ -13,7 +13,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Represents configuration details for coordinator and node. */
+/**
+ * Represents configuration details for coordinator and node.
+ */
@Fluent
public final class ConfigurationInner extends ProxyResource {
/*
@@ -28,13 +30,15 @@ public final class ConfigurationInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of ConfigurationInner class. */
+ /**
+ * Creates an instance of ConfigurationInner class.
+ */
public ConfigurationInner() {
}
/**
* Get the innerProperties property: The properties of configuration.
- *
+ *
* @return the innerProperties value.
*/
private ConfigurationProperties innerProperties() {
@@ -43,7 +47,7 @@ private ConfigurationProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -52,7 +56,7 @@ public SystemData systemData() {
/**
* Get the description property: Description of the configuration.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -61,7 +65,7 @@ public String description() {
/**
* Get the dataType property: Data type of the configuration.
- *
+ *
* @return the dataType value.
*/
public ConfigurationDataType dataType() {
@@ -70,7 +74,7 @@ public ConfigurationDataType dataType() {
/**
* Get the allowedValues property: Allowed values of the configuration.
- *
+ *
* @return the allowedValues value.
*/
public String allowedValues() {
@@ -79,7 +83,7 @@ public String allowedValues() {
/**
* Get the requiresRestart property: If configuration change requires restart.
- *
+ *
* @return the requiresRestart value.
*/
public Boolean requiresRestart() {
@@ -88,7 +92,7 @@ public Boolean requiresRestart() {
/**
* Set the requiresRestart property: If configuration change requires restart.
- *
+ *
* @param requiresRestart the requiresRestart value to set.
* @return the ConfigurationInner object itself.
*/
@@ -102,7 +106,7 @@ public ConfigurationInner withRequiresRestart(Boolean requiresRestart) {
/**
* Get the serverRoleGroupConfigurations property: The list of server role group configuration values.
- *
+ *
* @return the serverRoleGroupConfigurations value.
*/
public List serverRoleGroupConfigurations() {
@@ -111,12 +115,12 @@ public List serverRoleGroupConfigurations() {
/**
* Set the serverRoleGroupConfigurations property: The list of server role group configuration values.
- *
+ *
* @param serverRoleGroupConfigurations the serverRoleGroupConfigurations value to set.
* @return the ConfigurationInner object itself.
*/
- public ConfigurationInner withServerRoleGroupConfigurations(
- List serverRoleGroupConfigurations) {
+ public ConfigurationInner
+ withServerRoleGroupConfigurations(List serverRoleGroupConfigurations) {
if (this.innerProperties() == null) {
this.innerProperties = new ConfigurationProperties();
}
@@ -126,7 +130,7 @@ public ConfigurationInner withServerRoleGroupConfigurations(
/**
* Get the provisioningState property: Provisioning state of the configuration.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -135,7 +139,7 @@ public ProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ConfigurationProperties.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ConfigurationProperties.java
index 719a8f0e66a1..df6046ec8638 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ConfigurationProperties.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ConfigurationProperties.java
@@ -12,7 +12,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** The properties of configuration. */
+/**
+ * The properties of configuration.
+ */
@Fluent
public final class ConfigurationProperties {
/*
@@ -51,13 +53,15 @@ public final class ConfigurationProperties {
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
- /** Creates an instance of ConfigurationProperties class. */
+ /**
+ * Creates an instance of ConfigurationProperties class.
+ */
public ConfigurationProperties() {
}
/**
* Get the description property: Description of the configuration.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -66,7 +70,7 @@ public String description() {
/**
* Get the dataType property: Data type of the configuration.
- *
+ *
* @return the dataType value.
*/
public ConfigurationDataType dataType() {
@@ -75,7 +79,7 @@ public ConfigurationDataType dataType() {
/**
* Get the allowedValues property: Allowed values of the configuration.
- *
+ *
* @return the allowedValues value.
*/
public String allowedValues() {
@@ -84,7 +88,7 @@ public String allowedValues() {
/**
* Get the requiresRestart property: If configuration change requires restart.
- *
+ *
* @return the requiresRestart value.
*/
public Boolean requiresRestart() {
@@ -93,7 +97,7 @@ public Boolean requiresRestart() {
/**
* Set the requiresRestart property: If configuration change requires restart.
- *
+ *
* @param requiresRestart the requiresRestart value to set.
* @return the ConfigurationProperties object itself.
*/
@@ -104,7 +108,7 @@ public ConfigurationProperties withRequiresRestart(Boolean requiresRestart) {
/**
* Get the serverRoleGroupConfigurations property: The list of server role group configuration values.
- *
+ *
* @return the serverRoleGroupConfigurations value.
*/
public List serverRoleGroupConfigurations() {
@@ -113,19 +117,19 @@ public List serverRoleGroupConfigurations() {
/**
* Set the serverRoleGroupConfigurations property: The list of server role group configuration values.
- *
+ *
* @param serverRoleGroupConfigurations the serverRoleGroupConfigurations value to set.
* @return the ConfigurationProperties object itself.
*/
- public ConfigurationProperties withServerRoleGroupConfigurations(
- List serverRoleGroupConfigurations) {
+ public ConfigurationProperties
+ withServerRoleGroupConfigurations(List serverRoleGroupConfigurations) {
this.serverRoleGroupConfigurations = serverRoleGroupConfigurations;
return this;
}
/**
* Get the provisioningState property: Provisioning state of the configuration.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -134,15 +138,13 @@ public ProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (serverRoleGroupConfigurations() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property serverRoleGroupConfigurations in model ConfigurationProperties"));
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property serverRoleGroupConfigurations in model ConfigurationProperties"));
} else {
serverRoleGroupConfigurations().forEach(e -> e.validate());
}
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/FirewallRuleInner.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/FirewallRuleInner.java
index 206493864632..3c59b51046a5 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/FirewallRuleInner.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/FirewallRuleInner.java
@@ -11,7 +11,9 @@
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Represents a cluster firewall rule. */
+/**
+ * Represents a cluster firewall rule.
+ */
@Fluent
public final class FirewallRuleInner extends ProxyResource {
/*
@@ -26,13 +28,15 @@ public final class FirewallRuleInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of FirewallRuleInner class. */
+ /**
+ * Creates an instance of FirewallRuleInner class.
+ */
public FirewallRuleInner() {
}
/**
* Get the innerProperties property: The properties of a firewall rule.
- *
+ *
* @return the innerProperties value.
*/
private FirewallRuleProperties innerProperties() {
@@ -41,7 +45,7 @@ private FirewallRuleProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -50,7 +54,7 @@ public SystemData systemData() {
/**
* Get the startIpAddress property: The start IP address of the cluster firewall rule. Must be IPv4 format.
- *
+ *
* @return the startIpAddress value.
*/
public String startIpAddress() {
@@ -59,7 +63,7 @@ public String startIpAddress() {
/**
* Set the startIpAddress property: The start IP address of the cluster firewall rule. Must be IPv4 format.
- *
+ *
* @param startIpAddress the startIpAddress value to set.
* @return the FirewallRuleInner object itself.
*/
@@ -73,7 +77,7 @@ public FirewallRuleInner withStartIpAddress(String startIpAddress) {
/**
* Get the endIpAddress property: The end IP address of the cluster firewall rule. Must be IPv4 format.
- *
+ *
* @return the endIpAddress value.
*/
public String endIpAddress() {
@@ -82,7 +86,7 @@ public String endIpAddress() {
/**
* Set the endIpAddress property: The end IP address of the cluster firewall rule. Must be IPv4 format.
- *
+ *
* @param endIpAddress the endIpAddress value to set.
* @return the FirewallRuleInner object itself.
*/
@@ -96,7 +100,7 @@ public FirewallRuleInner withEndIpAddress(String endIpAddress) {
/**
* Get the provisioningState property: Provisioning state of the firewall rule.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -105,15 +109,13 @@ public ProvisioningState provisioningState() {
/**
* 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 FirewallRuleInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property innerProperties in model FirewallRuleInner"));
} else {
innerProperties().validate();
}
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/FirewallRuleProperties.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/FirewallRuleProperties.java
index 1179a5aba67b..776e3d23c9bf 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/FirewallRuleProperties.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/FirewallRuleProperties.java
@@ -9,7 +9,9 @@
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The properties of a cluster firewall rule. */
+/**
+ * The properties of a cluster firewall rule.
+ */
@Fluent
public final class FirewallRuleProperties {
/*
@@ -30,13 +32,15 @@ public final class FirewallRuleProperties {
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
- /** Creates an instance of FirewallRuleProperties class. */
+ /**
+ * Creates an instance of FirewallRuleProperties class.
+ */
public FirewallRuleProperties() {
}
/**
* Get the startIpAddress property: The start IP address of the cluster firewall rule. Must be IPv4 format.
- *
+ *
* @return the startIpAddress value.
*/
public String startIpAddress() {
@@ -45,7 +49,7 @@ public String startIpAddress() {
/**
* Set the startIpAddress property: The start IP address of the cluster firewall rule. Must be IPv4 format.
- *
+ *
* @param startIpAddress the startIpAddress value to set.
* @return the FirewallRuleProperties object itself.
*/
@@ -56,7 +60,7 @@ public FirewallRuleProperties withStartIpAddress(String startIpAddress) {
/**
* Get the endIpAddress property: The end IP address of the cluster firewall rule. Must be IPv4 format.
- *
+ *
* @return the endIpAddress value.
*/
public String endIpAddress() {
@@ -65,7 +69,7 @@ public String endIpAddress() {
/**
* Set the endIpAddress property: The end IP address of the cluster firewall rule. Must be IPv4 format.
- *
+ *
* @param endIpAddress the endIpAddress value to set.
* @return the FirewallRuleProperties object itself.
*/
@@ -76,7 +80,7 @@ public FirewallRuleProperties withEndIpAddress(String endIpAddress) {
/**
* Get the provisioningState property: Provisioning state of the firewall rule.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -85,21 +89,17 @@ public ProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (startIpAddress() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property startIpAddress in model FirewallRuleProperties"));
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property startIpAddress in model FirewallRuleProperties"));
}
if (endIpAddress() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property endIpAddress in model FirewallRuleProperties"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property endIpAddress in model FirewallRuleProperties"));
}
}
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/NameAvailabilityInner.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/NameAvailabilityInner.java
index b2767f5b6b86..013f99e68d69 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/NameAvailabilityInner.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/NameAvailabilityInner.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Represents cluster name availability. */
+/**
+ * Represents cluster name availability.
+ */
@Fluent
public final class NameAvailabilityInner {
/*
@@ -34,13 +36,15 @@ public final class NameAvailabilityInner {
@JsonProperty(value = "type")
private String type;
- /** Creates an instance of NameAvailabilityInner class. */
+ /**
+ * Creates an instance of NameAvailabilityInner class.
+ */
public NameAvailabilityInner() {
}
/**
* Get the message property: Error message.
- *
+ *
* @return the message value.
*/
public String message() {
@@ -49,7 +53,7 @@ public String message() {
/**
* Set the message property: Error message.
- *
+ *
* @param message the message value to set.
* @return the NameAvailabilityInner object itself.
*/
@@ -60,7 +64,7 @@ public NameAvailabilityInner withMessage(String message) {
/**
* Get the nameAvailable property: Indicates whether the cluster name is available.
- *
+ *
* @return the nameAvailable value.
*/
public Boolean nameAvailable() {
@@ -69,7 +73,7 @@ public Boolean nameAvailable() {
/**
* Set the nameAvailable property: Indicates whether the cluster name is available.
- *
+ *
* @param nameAvailable the nameAvailable value to set.
* @return the NameAvailabilityInner object itself.
*/
@@ -80,7 +84,7 @@ public NameAvailabilityInner withNameAvailable(Boolean nameAvailable) {
/**
* Get the name property: Name of the cluster.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -89,7 +93,7 @@ public String name() {
/**
* Set the name property: Name of the cluster.
- *
+ *
* @param name the name value to set.
* @return the NameAvailabilityInner object itself.
*/
@@ -100,7 +104,7 @@ public NameAvailabilityInner withName(String name) {
/**
* Get the type property: Type of the cluster.
- *
+ *
* @return the type value.
*/
public String type() {
@@ -109,7 +113,7 @@ public String type() {
/**
* Set the type property: Type of the cluster.
- *
+ *
* @param type the type value to set.
* @return the NameAvailabilityInner object itself.
*/
@@ -120,7 +124,7 @@ public NameAvailabilityInner withType(String type) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/OperationInner.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/OperationInner.java
index 48ccbb7183a0..30ddcfccba5a 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/OperationInner.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/OperationInner.java
@@ -11,7 +11,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/** REST API operation definition. */
+/**
+ * REST API operation definition.
+ */
@Fluent
public final class OperationInner {
/*
@@ -45,13 +47,15 @@ public final class OperationInner {
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map properties;
- /** Creates an instance of OperationInner class. */
+ /**
+ * Creates an instance of OperationInner class.
+ */
public OperationInner() {
}
/**
* Get the name property: The name of the operation being performed on this particular object.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -60,7 +64,7 @@ public String name() {
/**
* Get the display property: The localized display information for this particular operation or action.
- *
+ *
* @return the display value.
*/
public OperationDisplay display() {
@@ -69,7 +73,7 @@ public OperationDisplay display() {
/**
* Get the isDataAction property: Indicates whether the operation is a data action.
- *
+ *
* @return the isDataAction value.
*/
public Boolean isDataAction() {
@@ -78,7 +82,7 @@ public Boolean isDataAction() {
/**
* Set the isDataAction property: Indicates whether the operation is a data action.
- *
+ *
* @param isDataAction the isDataAction value to set.
* @return the OperationInner object itself.
*/
@@ -89,7 +93,7 @@ public OperationInner withIsDataAction(Boolean isDataAction) {
/**
* Get the origin property: The intended executor of the operation.
- *
+ *
* @return the origin value.
*/
public OperationOrigin origin() {
@@ -98,7 +102,7 @@ public OperationOrigin origin() {
/**
* Get the properties property: Additional descriptions for the operation.
- *
+ *
* @return the properties value.
*/
public Map properties() {
@@ -107,7 +111,7 @@ public Map properties() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionInner.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionInner.java
index 42ba1013b5c9..18e464e6a162 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionInner.java
@@ -13,7 +13,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** The private endpoint connection resource. */
+/**
+ * The private endpoint connection resource.
+ */
@Fluent
public final class PrivateEndpointConnectionInner extends ProxyResource {
/*
@@ -28,13 +30,15 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of PrivateEndpointConnectionInner class. */
+ /**
+ * Creates an instance of PrivateEndpointConnectionInner class.
+ */
public PrivateEndpointConnectionInner() {
}
/**
* Get the innerProperties property: Resource properties.
- *
+ *
* @return the innerProperties value.
*/
private PrivateEndpointConnectionProperties innerProperties() {
@@ -43,7 +47,7 @@ private PrivateEndpointConnectionProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -52,7 +56,7 @@ public SystemData systemData() {
/**
* Get the groupIds property: The group ids for the private endpoint resource.
- *
+ *
* @return the groupIds value.
*/
public List groupIds() {
@@ -61,7 +65,7 @@ public List groupIds() {
/**
* Get the privateEndpoint property: The private endpoint resource.
- *
+ *
* @return the privateEndpoint value.
*/
public PrivateEndpoint privateEndpoint() {
@@ -70,7 +74,7 @@ public PrivateEndpoint privateEndpoint() {
/**
* Set the privateEndpoint property: The private endpoint resource.
- *
+ *
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
@@ -83,9 +87,9 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privat
}
/**
- * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the
+ * connection between service consumer and provider.
+ *
* @return the privateLinkServiceConnectionState value.
*/
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
@@ -93,14 +97,14 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
}
/**
- * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the
+ * connection between service consumer and provider.
+ *
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
- public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ public PrivateEndpointConnectionInner
+ withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
if (this.innerProperties() == null) {
this.innerProperties = new PrivateEndpointConnectionProperties();
}
@@ -110,7 +114,7 @@ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
/**
* Get the provisioningState property: The provisioning state of the private endpoint connection resource.
- *
+ *
* @return the provisioningState value.
*/
public PrivateEndpointConnectionProvisioningState provisioningState() {
@@ -119,7 +123,7 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionProperties.java
index dafec693728c..5e0615332456 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionProperties.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionProperties.java
@@ -12,7 +12,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Properties of the private endpoint connection. */
+/**
+ * Properties of the private endpoint connection.
+ */
@Fluent
public final class PrivateEndpointConnectionProperties {
/*
@@ -39,13 +41,15 @@ public final class PrivateEndpointConnectionProperties {
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private PrivateEndpointConnectionProvisioningState provisioningState;
- /** Creates an instance of PrivateEndpointConnectionProperties class. */
+ /**
+ * Creates an instance of PrivateEndpointConnectionProperties class.
+ */
public PrivateEndpointConnectionProperties() {
}
/**
* Get the groupIds property: The group ids for the private endpoint resource.
- *
+ *
* @return the groupIds value.
*/
public List groupIds() {
@@ -54,7 +58,7 @@ public List groupIds() {
/**
* Get the privateEndpoint property: The private endpoint resource.
- *
+ *
* @return the privateEndpoint value.
*/
public PrivateEndpoint privateEndpoint() {
@@ -63,7 +67,7 @@ public PrivateEndpoint privateEndpoint() {
/**
* Set the privateEndpoint property: The private endpoint resource.
- *
+ *
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionProperties object itself.
*/
@@ -73,9 +77,9 @@ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint p
}
/**
- * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the
+ * connection between service consumer and provider.
+ *
* @return the privateLinkServiceConnectionState value.
*/
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
@@ -83,21 +87,21 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
}
/**
- * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the
+ * connection between service consumer and provider.
+ *
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnectionProperties object itself.
*/
- public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ public PrivateEndpointConnectionProperties
+ withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}
/**
* Get the provisioningState property: The provisioning state of the private endpoint connection resource.
- *
+ *
* @return the provisioningState value.
*/
public PrivateEndpointConnectionProvisioningState provisioningState() {
@@ -106,7 +110,7 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -114,11 +118,8 @@ public void validate() {
privateEndpoint().validate();
}
if (privateLinkServiceConnectionState() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property privateLinkServiceConnectionState in model"
- + " PrivateEndpointConnectionProperties"));
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property privateLinkServiceConnectionState in model PrivateEndpointConnectionProperties"));
} else {
privateLinkServiceConnectionState().validate();
}
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionSimpleProperties.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionSimpleProperties.java
index ca268048eb10..7f79e8d3a2c8 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionSimpleProperties.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateEndpointConnectionSimpleProperties.java
@@ -10,7 +10,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** The properties in private endpoint connection. */
+/**
+ * The properties in private endpoint connection.
+ */
@Fluent
public final class PrivateEndpointConnectionSimpleProperties {
/*
@@ -31,13 +33,15 @@ public final class PrivateEndpointConnectionSimpleProperties {
@JsonProperty(value = "privateLinkServiceConnectionState")
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
- /** Creates an instance of PrivateEndpointConnectionSimpleProperties class. */
+ /**
+ * Creates an instance of PrivateEndpointConnectionSimpleProperties class.
+ */
public PrivateEndpointConnectionSimpleProperties() {
}
/**
* Get the privateEndpoint property: Private endpoint which the connection belongs to.
- *
+ *
* @return the privateEndpoint value.
*/
public PrivateEndpointProperty privateEndpoint() {
@@ -46,7 +50,7 @@ public PrivateEndpointProperty privateEndpoint() {
/**
* Set the privateEndpoint property: Private endpoint which the connection belongs to.
- *
+ *
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionSimpleProperties object itself.
*/
@@ -57,7 +61,7 @@ public PrivateEndpointConnectionSimpleProperties withPrivateEndpoint(PrivateEndp
/**
* Get the groupIds property: Group ids of the private endpoint connection.
- *
+ *
* @return the groupIds value.
*/
public List groupIds() {
@@ -66,7 +70,7 @@ public List groupIds() {
/**
* Set the groupIds property: Group ids of the private endpoint connection.
- *
+ *
* @param groupIds the groupIds value to set.
* @return the PrivateEndpointConnectionSimpleProperties object itself.
*/
@@ -76,9 +80,9 @@ public PrivateEndpointConnectionSimpleProperties withGroupIds(List group
}
/**
- * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the
+ * connection between service consumer and provider.
+ *
* @return the privateLinkServiceConnectionState value.
*/
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
@@ -86,21 +90,21 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
}
/**
- * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the
+ * connection between service consumer and provider.
+ *
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnectionSimpleProperties object itself.
*/
- public PrivateEndpointConnectionSimpleProperties withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ public PrivateEndpointConnectionSimpleProperties
+ withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateLinkResourceInner.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateLinkResourceInner.java
index 846734fa5f19..60df34d95153 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateLinkResourceInner.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateLinkResourceInner.java
@@ -10,7 +10,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** A private link resource. */
+/**
+ * A private link resource.
+ */
@Fluent
public final class PrivateLinkResourceInner extends ProxyResource {
/*
@@ -25,13 +27,15 @@ public final class PrivateLinkResourceInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of PrivateLinkResourceInner class. */
+ /**
+ * Creates an instance of PrivateLinkResourceInner class.
+ */
public PrivateLinkResourceInner() {
}
/**
* Get the innerProperties property: Resource properties.
- *
+ *
* @return the innerProperties value.
*/
private PrivateLinkResourceProperties innerProperties() {
@@ -40,7 +44,7 @@ private PrivateLinkResourceProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -49,7 +53,7 @@ public SystemData systemData() {
/**
* Get the groupId property: The private link resource group id.
- *
+ *
* @return the groupId value.
*/
public String groupId() {
@@ -58,7 +62,7 @@ public String groupId() {
/**
* Get the requiredMembers property: The private link resource required member names.
- *
+ *
* @return the requiredMembers value.
*/
public List requiredMembers() {
@@ -67,7 +71,7 @@ public List requiredMembers() {
/**
* Get the requiredZoneNames property: The private link resource private link DNS zone name.
- *
+ *
* @return the requiredZoneNames value.
*/
public List requiredZoneNames() {
@@ -76,7 +80,7 @@ public List requiredZoneNames() {
/**
* Set the requiredZoneNames property: The private link resource private link DNS zone name.
- *
+ *
* @param requiredZoneNames the requiredZoneNames value to set.
* @return the PrivateLinkResourceInner object itself.
*/
@@ -90,7 +94,7 @@ public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneN
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateLinkResourceProperties.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateLinkResourceProperties.java
index 150593b98fd1..b87e68850352 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateLinkResourceProperties.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/PrivateLinkResourceProperties.java
@@ -8,7 +8,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Properties of a private link resource. */
+/**
+ * Properties of a private link resource.
+ */
@Fluent
public final class PrivateLinkResourceProperties {
/*
@@ -29,13 +31,15 @@ public final class PrivateLinkResourceProperties {
@JsonProperty(value = "requiredZoneNames")
private List requiredZoneNames;
- /** Creates an instance of PrivateLinkResourceProperties class. */
+ /**
+ * Creates an instance of PrivateLinkResourceProperties class.
+ */
public PrivateLinkResourceProperties() {
}
/**
* Get the groupId property: The private link resource group id.
- *
+ *
* @return the groupId value.
*/
public String groupId() {
@@ -44,7 +48,7 @@ public String groupId() {
/**
* Get the requiredMembers property: The private link resource required member names.
- *
+ *
* @return the requiredMembers value.
*/
public List requiredMembers() {
@@ -53,7 +57,7 @@ public List requiredMembers() {
/**
* Get the requiredZoneNames property: The private link resource private link DNS zone name.
- *
+ *
* @return the requiredZoneNames value.
*/
public List requiredZoneNames() {
@@ -62,7 +66,7 @@ public List requiredZoneNames() {
/**
* Set the requiredZoneNames property: The private link resource private link DNS zone name.
- *
+ *
* @param requiredZoneNames the requiredZoneNames value to set.
* @return the PrivateLinkResourceProperties object itself.
*/
@@ -73,7 +77,7 @@ public PrivateLinkResourceProperties withRequiredZoneNames(List required
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/RoleInner.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/RoleInner.java
index 6eb3cb6f8687..52d20f0e3df5 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/RoleInner.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/RoleInner.java
@@ -8,10 +8,14 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.cosmosdbforpostgresql.models.PrincipalType;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ProvisioningState;
+import com.azure.resourcemanager.cosmosdbforpostgresql.models.RoleType;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Represents a cluster role. */
+/**
+ * Represents a cluster role.
+ */
@Fluent
public final class RoleInner extends ProxyResource {
/*
@@ -26,13 +30,15 @@ public final class RoleInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of RoleInner class. */
+ /**
+ * Creates an instance of RoleInner class.
+ */
public RoleInner() {
}
/**
* Get the innerProperties property: The properties of a role.
- *
+ *
* @return the innerProperties value.
*/
private RoleProperties innerProperties() {
@@ -41,7 +47,7 @@ private RoleProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -49,8 +55,32 @@ public SystemData systemData() {
}
/**
- * Get the password property: The password of the cluster role.
- *
+ * Get the roleType property: The roleType property.
+ *
+ * @return the roleType value.
+ */
+ public RoleType roleType() {
+ return this.innerProperties() == null ? null : this.innerProperties().roleType();
+ }
+
+ /**
+ * Set the roleType property: The roleType property.
+ *
+ * @param roleType the roleType value to set.
+ * @return the RoleInner object itself.
+ */
+ public RoleInner withRoleType(RoleType roleType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RoleProperties();
+ }
+ this.innerProperties().withRoleType(roleType);
+ return this;
+ }
+
+ /**
+ * Get the password property: The password of the cluster role. If an identity is used, password will not be
+ * required.
+ *
* @return the password value.
*/
public String password() {
@@ -58,8 +88,9 @@ public String password() {
}
/**
- * Set the password property: The password of the cluster role.
- *
+ * Set the password property: The password of the cluster role. If an identity is used, password will not be
+ * required.
+ *
* @param password the password value to set.
* @return the RoleInner object itself.
*/
@@ -73,23 +104,91 @@ public RoleInner withPassword(String password) {
/**
* Get the provisioningState property: Provisioning state of the role.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
+ /**
+ * Get the objectId property: The objectId property.
+ *
+ * @return the objectId value.
+ */
+ public String objectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().objectId();
+ }
+
+ /**
+ * Set the objectId property: The objectId property.
+ *
+ * @param objectId the objectId value to set.
+ * @return the RoleInner object itself.
+ */
+ public RoleInner withObjectId(String objectId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RoleProperties();
+ }
+ this.innerProperties().withObjectId(objectId);
+ return this;
+ }
+
+ /**
+ * Get the principalType property: The principalType property.
+ *
+ * @return the principalType value.
+ */
+ public PrincipalType principalType() {
+ return this.innerProperties() == null ? null : this.innerProperties().principalType();
+ }
+
+ /**
+ * Set the principalType property: The principalType property.
+ *
+ * @param principalType the principalType value to set.
+ * @return the RoleInner object itself.
+ */
+ public RoleInner withPrincipalType(PrincipalType principalType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RoleProperties();
+ }
+ this.innerProperties().withPrincipalType(principalType);
+ return this;
+ }
+
+ /**
+ * Get the tenantId property: The tenantId property.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.innerProperties() == null ? null : this.innerProperties().tenantId();
+ }
+
+ /**
+ * Set the tenantId property: The tenantId property.
+ *
+ * @param tenantId the tenantId value to set.
+ * @return the RoleInner object itself.
+ */
+ public RoleInner withTenantId(String tenantId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RoleProperties();
+ }
+ this.innerProperties().withTenantId(tenantId);
+ 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 RoleInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property innerProperties in model RoleInner"));
} else {
innerProperties().validate();
}
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/RoleProperties.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/RoleProperties.java
index e2fb46c24d88..d22be56b854f 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/RoleProperties.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/RoleProperties.java
@@ -5,32 +5,70 @@
package com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.cosmosdbforpostgresql.models.PrincipalType;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ProvisioningState;
+import com.azure.resourcemanager.cosmosdbforpostgresql.models.RoleType;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The properties of a cluster role. */
+/**
+ * The properties of a cluster role.
+ */
@Fluent
public final class RoleProperties {
/*
- * The password of the cluster role.
+ * The roleType property.
+ */
+ @JsonProperty(value = "roleType")
+ private RoleType roleType;
+
+ /*
+ * The password of the cluster role. If an identity is used, password will not be required.
*/
@JsonProperty(value = "password")
private String password;
+ /*
+ * The externalIdentity property.
+ */
+ @JsonProperty(value = "externalIdentity")
+ private RolePropertiesExternalIdentity innerExternalIdentity;
+
/*
* Provisioning state of the role
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
- /** Creates an instance of RoleProperties class. */
+ /**
+ * Creates an instance of RoleProperties class.
+ */
public RoleProperties() {
}
/**
- * Get the password property: The password of the cluster role.
- *
+ * Get the roleType property: The roleType property.
+ *
+ * @return the roleType value.
+ */
+ public RoleType roleType() {
+ return this.roleType;
+ }
+
+ /**
+ * Set the roleType property: The roleType property.
+ *
+ * @param roleType the roleType value to set.
+ * @return the RoleProperties object itself.
+ */
+ public RoleProperties withRoleType(RoleType roleType) {
+ this.roleType = roleType;
+ return this;
+ }
+
+ /**
+ * Get the password property: The password of the cluster role. If an identity is used, password will not be
+ * required.
+ *
* @return the password value.
*/
public String password() {
@@ -38,8 +76,9 @@ public String password() {
}
/**
- * Set the password property: The password of the cluster role.
- *
+ * Set the password property: The password of the cluster role. If an identity is used, password will not be
+ * required.
+ *
* @param password the password value to set.
* @return the RoleProperties object itself.
*/
@@ -48,27 +87,101 @@ public RoleProperties withPassword(String password) {
return this;
}
+ /**
+ * Get the innerExternalIdentity property: The externalIdentity property.
+ *
+ * @return the innerExternalIdentity value.
+ */
+ private RolePropertiesExternalIdentity innerExternalIdentity() {
+ return this.innerExternalIdentity;
+ }
+
/**
* Get the provisioningState property: Provisioning state of the role.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
}
+ /**
+ * Get the objectId property: The objectId property.
+ *
+ * @return the objectId value.
+ */
+ public String objectId() {
+ return this.innerExternalIdentity() == null ? null : this.innerExternalIdentity().objectId();
+ }
+
+ /**
+ * Set the objectId property: The objectId property.
+ *
+ * @param objectId the objectId value to set.
+ * @return the RoleProperties object itself.
+ */
+ public RoleProperties withObjectId(String objectId) {
+ if (this.innerExternalIdentity() == null) {
+ this.innerExternalIdentity = new RolePropertiesExternalIdentity();
+ }
+ this.innerExternalIdentity().withObjectId(objectId);
+ return this;
+ }
+
+ /**
+ * Get the principalType property: The principalType property.
+ *
+ * @return the principalType value.
+ */
+ public PrincipalType principalType() {
+ return this.innerExternalIdentity() == null ? null : this.innerExternalIdentity().principalType();
+ }
+
+ /**
+ * Set the principalType property: The principalType property.
+ *
+ * @param principalType the principalType value to set.
+ * @return the RoleProperties object itself.
+ */
+ public RoleProperties withPrincipalType(PrincipalType principalType) {
+ if (this.innerExternalIdentity() == null) {
+ this.innerExternalIdentity = new RolePropertiesExternalIdentity();
+ }
+ this.innerExternalIdentity().withPrincipalType(principalType);
+ return this;
+ }
+
+ /**
+ * Get the tenantId property: The tenantId property.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.innerExternalIdentity() == null ? null : this.innerExternalIdentity().tenantId();
+ }
+
+ /**
+ * Set the tenantId property: The tenantId property.
+ *
+ * @param tenantId the tenantId value to set.
+ * @return the RoleProperties object itself.
+ */
+ public RoleProperties withTenantId(String tenantId) {
+ if (this.innerExternalIdentity() == null) {
+ this.innerExternalIdentity = new RolePropertiesExternalIdentity();
+ }
+ this.innerExternalIdentity().withTenantId(tenantId);
+ return this;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (password() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property password in model RoleProperties"));
+ if (innerExternalIdentity() != null) {
+ innerExternalIdentity().validate();
}
}
-
- private static final ClientLogger LOGGER = new ClientLogger(RoleProperties.class);
}
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/RolePropertiesExternalIdentity.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/RolePropertiesExternalIdentity.java
new file mode 100644
index 000000000000..1f6119b5232d
--- /dev/null
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/RolePropertiesExternalIdentity.java
@@ -0,0 +1,118 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.cosmosdbforpostgresql.models.PrincipalType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The RolePropertiesExternalIdentity model.
+ */
+@Fluent
+public final class RolePropertiesExternalIdentity {
+ /*
+ * The objectId property.
+ */
+ @JsonProperty(value = "objectId", required = true)
+ private String objectId;
+
+ /*
+ * The principalType property.
+ */
+ @JsonProperty(value = "principalType", required = true)
+ private PrincipalType principalType;
+
+ /*
+ * The tenantId property.
+ */
+ @JsonProperty(value = "tenantId")
+ private String tenantId;
+
+ /**
+ * Creates an instance of RolePropertiesExternalIdentity class.
+ */
+ public RolePropertiesExternalIdentity() {
+ }
+
+ /**
+ * Get the objectId property: The objectId property.
+ *
+ * @return the objectId value.
+ */
+ public String objectId() {
+ return this.objectId;
+ }
+
+ /**
+ * Set the objectId property: The objectId property.
+ *
+ * @param objectId the objectId value to set.
+ * @return the RolePropertiesExternalIdentity object itself.
+ */
+ public RolePropertiesExternalIdentity withObjectId(String objectId) {
+ this.objectId = objectId;
+ return this;
+ }
+
+ /**
+ * Get the principalType property: The principalType property.
+ *
+ * @return the principalType value.
+ */
+ public PrincipalType principalType() {
+ return this.principalType;
+ }
+
+ /**
+ * Set the principalType property: The principalType property.
+ *
+ * @param principalType the principalType value to set.
+ * @return the RolePropertiesExternalIdentity object itself.
+ */
+ public RolePropertiesExternalIdentity withPrincipalType(PrincipalType principalType) {
+ this.principalType = principalType;
+ return this;
+ }
+
+ /**
+ * Get the tenantId property: The tenantId property.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Set the tenantId property: The tenantId property.
+ *
+ * @param tenantId the tenantId value to set.
+ * @return the RolePropertiesExternalIdentity object itself.
+ */
+ public RolePropertiesExternalIdentity withTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (objectId() == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property objectId in model RolePropertiesExternalIdentity"));
+ }
+ if (principalType() == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property principalType in model RolePropertiesExternalIdentity"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RolePropertiesExternalIdentity.class);
+}
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ServerConfigurationInner.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ServerConfigurationInner.java
index 7ac043e1389c..648ce836ea9e 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ServerConfigurationInner.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ServerConfigurationInner.java
@@ -11,7 +11,9 @@
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Represents a configuration. */
+/**
+ * Represents a configuration.
+ */
@Fluent
public final class ServerConfigurationInner extends ProxyResource {
/*
@@ -26,13 +28,15 @@ public final class ServerConfigurationInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of ServerConfigurationInner class. */
+ /**
+ * Creates an instance of ServerConfigurationInner class.
+ */
public ServerConfigurationInner() {
}
/**
* Get the innerProperties property: The properties of a configuration.
- *
+ *
* @return the innerProperties value.
*/
private ServerConfigurationProperties innerProperties() {
@@ -41,7 +45,7 @@ private ServerConfigurationProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -50,7 +54,7 @@ public SystemData systemData() {
/**
* Get the value property: Value of the configuration.
- *
+ *
* @return the value value.
*/
public String value() {
@@ -59,7 +63,7 @@ public String value() {
/**
* Set the value property: Value of the configuration.
- *
+ *
* @param value the value value to set.
* @return the ServerConfigurationInner object itself.
*/
@@ -73,7 +77,7 @@ public ServerConfigurationInner withValue(String value) {
/**
* Get the source property: Source of the configuration.
- *
+ *
* @return the source value.
*/
public String source() {
@@ -82,7 +86,7 @@ public String source() {
/**
* Get the description property: Description of the configuration.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -91,7 +95,7 @@ public String description() {
/**
* Get the defaultValue property: Default value of the configuration.
- *
+ *
* @return the defaultValue value.
*/
public String defaultValue() {
@@ -100,7 +104,7 @@ public String defaultValue() {
/**
* Get the dataType property: Data type of the configuration.
- *
+ *
* @return the dataType value.
*/
public ConfigurationDataType dataType() {
@@ -109,7 +113,7 @@ public ConfigurationDataType dataType() {
/**
* Get the allowedValues property: Allowed values of the configuration.
- *
+ *
* @return the allowedValues value.
*/
public String allowedValues() {
@@ -118,7 +122,7 @@ public String allowedValues() {
/**
* Get the requiresRestart property: If configuration change requires restart.
- *
+ *
* @return the requiresRestart value.
*/
public Boolean requiresRestart() {
@@ -127,7 +131,7 @@ public Boolean requiresRestart() {
/**
* Get the provisioningState property: Provisioning state of the configuration.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -136,7 +140,7 @@ public ProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ServerConfigurationProperties.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ServerConfigurationProperties.java
index 57038b9bba76..2a6549277ec8 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ServerConfigurationProperties.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/ServerConfigurationProperties.java
@@ -10,7 +10,9 @@
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The properties of a configuration. */
+/**
+ * The properties of a configuration.
+ */
@Fluent
public final class ServerConfigurationProperties {
/*
@@ -61,13 +63,15 @@ public final class ServerConfigurationProperties {
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
- /** Creates an instance of ServerConfigurationProperties class. */
+ /**
+ * Creates an instance of ServerConfigurationProperties class.
+ */
public ServerConfigurationProperties() {
}
/**
* Get the value property: Value of the configuration.
- *
+ *
* @return the value value.
*/
public String value() {
@@ -76,7 +80,7 @@ public String value() {
/**
* Set the value property: Value of the configuration.
- *
+ *
* @param value the value value to set.
* @return the ServerConfigurationProperties object itself.
*/
@@ -87,7 +91,7 @@ public ServerConfigurationProperties withValue(String value) {
/**
* Get the source property: Source of the configuration.
- *
+ *
* @return the source value.
*/
public String source() {
@@ -96,7 +100,7 @@ public String source() {
/**
* Get the description property: Description of the configuration.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -105,7 +109,7 @@ public String description() {
/**
* Get the defaultValue property: Default value of the configuration.
- *
+ *
* @return the defaultValue value.
*/
public String defaultValue() {
@@ -114,7 +118,7 @@ public String defaultValue() {
/**
* Get the dataType property: Data type of the configuration.
- *
+ *
* @return the dataType value.
*/
public ConfigurationDataType dataType() {
@@ -123,7 +127,7 @@ public ConfigurationDataType dataType() {
/**
* Get the allowedValues property: Allowed values of the configuration.
- *
+ *
* @return the allowedValues value.
*/
public String allowedValues() {
@@ -132,7 +136,7 @@ public String allowedValues() {
/**
* Get the requiresRestart property: If configuration change requires restart.
- *
+ *
* @return the requiresRestart value.
*/
public Boolean requiresRestart() {
@@ -141,7 +145,7 @@ public Boolean requiresRestart() {
/**
* Get the provisioningState property: Provisioning state of the configuration.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -150,15 +154,13 @@ public ProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (value() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property value in model ServerConfigurationProperties"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property value in model ServerConfigurationProperties"));
}
}
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/package-info.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/package-info.java
index c8e5f81ab2d3..e3459212be87 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/package-info.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/models/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the inner data models for CosmosDBForPostgreSql. Azure Cosmos DB for PostgreSQL database service
- * resource provider REST APIs.
+ * Package containing the inner data models for CosmosDBForPostgreSql.
+ * Azure Cosmos DB for PostgreSQL database service resource provider REST APIs.
*/
package com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models;
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/package-info.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/package-info.java
index 7b95ca7d7afd..635ba5c27558 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/package-info.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/fluent/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the service clients for CosmosDBForPostgreSql. Azure Cosmos DB for PostgreSQL database service
- * resource provider REST APIs.
+ * Package containing the service clients for CosmosDBForPostgreSql.
+ * Azure Cosmos DB for PostgreSQL database service resource provider REST APIs.
*/
package com.azure.resourcemanager.cosmosdbforpostgresql.fluent;
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClusterImpl.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClusterImpl.java
index 647d161b56c5..afae3dba643b 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClusterImpl.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClusterImpl.java
@@ -8,9 +8,11 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.cosmosdbforpostgresql.fluent.models.ClusterInner;
+import com.azure.resourcemanager.cosmosdbforpostgresql.models.AuthConfig;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.Cluster;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ClusterForUpdate;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.MaintenanceWindow;
+import com.azure.resourcemanager.cosmosdbforpostgresql.models.PromoteRequest;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ServerNameItem;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.SimplePrivateEndpointConnection;
import java.time.OffsetDateTime;
@@ -171,6 +173,18 @@ public List privateEndpointConnections() {
}
}
+ public String databaseName() {
+ return this.innerModel().databaseName();
+ }
+
+ public Boolean enableGeoBackup() {
+ return this.innerModel().enableGeoBackup();
+ }
+
+ public AuthConfig authConfig() {
+ return this.innerModel().authConfig();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -203,25 +217,19 @@ public ClusterImpl withExistingResourceGroup(String resourceGroupName) {
}
public Cluster create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .create(resourceGroupName, clusterName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient().getClusters().create(resourceGroupName, clusterName,
+ this.innerModel(), Context.NONE);
return this;
}
public Cluster create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .create(resourceGroupName, clusterName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient().getClusters().create(resourceGroupName, clusterName,
+ this.innerModel(), context);
return this;
}
- ClusterImpl(
- String name, com.azure.resourcemanager.cosmosdbforpostgresql.CosmosDBForPostgreSqlManager serviceManager) {
+ ClusterImpl(String name,
+ com.azure.resourcemanager.cosmosdbforpostgresql.CosmosDBForPostgreSqlManager serviceManager) {
this.innerObject = new ClusterInner();
this.serviceManager = serviceManager;
this.clusterName = name;
@@ -233,49 +241,34 @@ public ClusterImpl update() {
}
public Cluster apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .update(resourceGroupName, clusterName, updateParameters, Context.NONE);
+ this.innerObject = serviceManager.serviceClient().getClusters().update(resourceGroupName, clusterName,
+ updateParameters, Context.NONE);
return this;
}
public Cluster apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .update(resourceGroupName, clusterName, updateParameters, context);
+ this.innerObject = serviceManager.serviceClient().getClusters().update(resourceGroupName, clusterName,
+ updateParameters, context);
return this;
}
- ClusterImpl(
- ClusterInner innerObject,
+ ClusterImpl(ClusterInner innerObject,
com.azure.resourcemanager.cosmosdbforpostgresql.CosmosDBForPostgreSqlManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "serverGroupsv2");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "serverGroupsv2");
}
public Cluster refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getClusters()
+ .getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE).getValue();
return this;
}
public Cluster refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .getByResourceGroupWithResponse(resourceGroupName, clusterName, context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getClusters()
+ .getByResourceGroupWithResponse(resourceGroupName, clusterName, context).getValue();
return this;
}
@@ -307,8 +300,8 @@ public void promoteReadReplica() {
serviceManager.clusters().promoteReadReplica(resourceGroupName, clusterName);
}
- public void promoteReadReplica(Context context) {
- serviceManager.clusters().promoteReadReplica(resourceGroupName, clusterName, context);
+ public void promoteReadReplica(PromoteRequest promoteRequest, Context context) {
+ serviceManager.clusters().promoteReadReplica(resourceGroupName, clusterName, promoteRequest, context);
}
public ClusterImpl withRegion(Region location) {
@@ -501,6 +494,21 @@ public ClusterImpl withPointInTimeUtc(OffsetDateTime pointInTimeUtc) {
return this;
}
+ public ClusterImpl withDatabaseName(String databaseName) {
+ this.innerModel().withDatabaseName(databaseName);
+ return this;
+ }
+
+ public ClusterImpl withEnableGeoBackup(Boolean enableGeoBackup) {
+ this.innerModel().withEnableGeoBackup(enableGeoBackup);
+ return this;
+ }
+
+ public ClusterImpl withAuthConfig(AuthConfig authConfig) {
+ this.innerModel().withAuthConfig(authConfig);
+ return this;
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClusterServerImpl.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClusterServerImpl.java
index e35c4acace80..413ccee27f1e 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClusterServerImpl.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClusterServerImpl.java
@@ -14,8 +14,7 @@ public final class ClusterServerImpl implements ClusterServer {
private final com.azure.resourcemanager.cosmosdbforpostgresql.CosmosDBForPostgreSqlManager serviceManager;
- ClusterServerImpl(
- ClusterServerInner innerObject,
+ ClusterServerImpl(ClusterServerInner innerObject,
com.azure.resourcemanager.cosmosdbforpostgresql.CosmosDBForPostgreSqlManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
diff --git a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClustersClientImpl.java b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClustersClientImpl.java
index 815d4af7b178..c445bcf5c570 100644
--- a/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClustersClientImpl.java
+++ b/sdk/cosmosdbforpostgresql/azure-resourcemanager-cosmosdbforpostgresql/src/main/java/com/azure/resourcemanager/cosmosdbforpostgresql/implementation/ClustersClientImpl.java
@@ -39,21 +39,28 @@
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ClusterForUpdate;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.ClusterListResult;
import com.azure.resourcemanager.cosmosdbforpostgresql.models.NameAvailabilityRequest;
+import com.azure.resourcemanager.cosmosdbforpostgresql.models.PromoteRequest;
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 ClustersClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ClustersClient.
+ */
public final class ClustersClientImpl implements ClustersClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final ClustersService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final CosmosDBForPostgreSqlImpl client;
/**
* Initializes an instance of ClustersClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
ClustersClientImpl(CosmosDBForPostgreSqlImpl client) {
@@ -68,180 +75,126 @@ public final class ClustersClientImpl implements ClustersClient {
@Host("{$host}")
@ServiceInterface(name = "CosmosDBForPostgreSq")
public interface ClustersService {
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @HeaderParam("Accept") String accept,
+ Mono> listByResourceGroup(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}")
- @ExpectedResponses({200, 201})
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> create(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @BodyParam("application/json") ClusterInner parameters,
- @HeaderParam("Accept") String accept,
+ Mono>> create(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @BodyParam("application/json") ClusterInner parameters, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}")
- @ExpectedResponses({200, 202, 204})
+ Mono> getByResourceGroup(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}")
- @ExpectedResponses({200, 202})
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}")
+ @ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @BodyParam("application/json") ClusterForUpdate parameters,
- @HeaderParam("Accept") String accept,
+ Mono>> update(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @BodyParam("application/json") ClusterForUpdate parameters, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/restart")
- @ExpectedResponses({202})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/restart")
+ @ExpectedResponses({ 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> restart(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/start")
- @ExpectedResponses({200, 202})
+ Mono>> restart(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/start")
+ @ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> start(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/stop")
- @ExpectedResponses({200, 202})
+ Mono>> start(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/stop")
+ @ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> stop(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/promote")
- @ExpectedResponses({202})
+ Mono>> stop(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/promote")
+ @ExpectedResponses({ 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> promoteReadReplica(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept,
+ Mono>> promoteReadReplica(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @BodyParam("application/json") PromoteRequest promoteRequest, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> checkNameAvailability(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono> checkNameAvailability(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@BodyParam("application/json") NameAvailabilityRequest nameAvailabilityRequest,
- @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
* Lists all clusters in a subscription.
- *
+ *
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of clusters along with {@link PagedResponse} on successful completion of {@link Mono}.
@@ -249,43 +202,25 @@ Mono> listByResourceGroupNext(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ 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."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Lists all clusters in a subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -295,40 +230,25 @@ private Mono> listSinglePageAsync() {
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ 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."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- accept,
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept,
context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* Lists all clusters in a subscription.
- *
+ *
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of clusters as paginated response with {@link PagedFlux}.
@@ -340,7 +260,7 @@ private PagedFlux listAsync() {
/**
* Lists all clusters in a subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -349,13 +269,13 @@ private PagedFlux listAsync() {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
- return new PagedFlux<>(
- () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context));
+ return new PagedFlux<>(() -> listSinglePageAsync(context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
* Lists all clusters in a subscription.
- *
+ *
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of clusters as paginated response with {@link PagedIterable}.
@@ -367,7 +287,7 @@ public PagedIterable list() {
/**
* Lists all clusters in a subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -381,7 +301,7 @@ public PagedIterable list(Context context) {
/**
* Lists all clusters in a resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -391,16 +311,12 @@ public PagedIterable list(Context context) {
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be 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."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -408,31 +324,16 @@ private Mono> listByResourceGroupSinglePageAsync(Str
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .listByResourceGroup(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Lists all clusters in a resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -441,19 +342,15 @@ private Mono> listByResourceGroupSinglePageAsync(Str
* @return a list of clusters along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupSinglePageAsync(
- String resourceGroupName, Context context) {
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
+ Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be 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."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -462,27 +359,15 @@ private Mono> listByResourceGroupSinglePageAsync(
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listByResourceGroup(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* Lists all clusters in a resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -491,14 +376,13 @@ private Mono> listByResourceGroupSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
- return new PagedFlux<>(
- () -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
}
/**
* Lists all clusters in a resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -508,14 +392,13 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
- return new PagedFlux<>(
- () -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
}
/**
* Lists all clusters in a resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -529,7 +412,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName)
/**
* Lists all clusters in a resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -544,7 +427,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName,
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -554,19 +437,15 @@ public PagedIterable listByResourceGroup(String resourceGroupName,
* @return represents a cluster along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(
- String resourceGroupName, String clusterName, ClusterInner parameters) {
+ private Mono>> createWithResponseAsync(String resourceGroupName, String clusterName,
+ ClusterInner parameters) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be 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."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -582,24 +461,14 @@ private Mono>> createWithResponseAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .create(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- clusterName,
- parameters,
- accept,
- context))
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, parameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -610,19 +479,15 @@ private Mono>> createWithResponseAsync(
* @return represents a cluster along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(
- String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ private Mono>> createWithResponseAsync(String resourceGroupName, String clusterName,
+ ClusterInner parameters, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be 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."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -638,21 +503,13 @@ private Mono>> createWithResponseAsync(
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .create(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- clusterName,
- parameters,
- accept,
- context);
+ return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, clusterName, parameters, accept, context);
}
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -662,18 +519,16 @@ private Mono>> createWithResponseAsync(
* @return the {@link PollerFlux} for polling of represents a cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ClusterInner> beginCreateAsync(
- String resourceGroupName, String clusterName, ClusterInner parameters) {
+ private PollerFlux, ClusterInner> beginCreateAsync(String resourceGroupName,
+ String clusterName, ClusterInner parameters) {
Mono>> mono = createWithResponseAsync(resourceGroupName, clusterName, parameters);
- return this
- .client
- .getLroResult(
- mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, this.client.getContext());
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ ClusterInner.class, ClusterInner.class, this.client.getContext());
}
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -684,20 +539,18 @@ private PollerFlux, ClusterInner> beginCreateAsync(
* @return the {@link PollerFlux} for polling of represents a cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ClusterInner> beginCreateAsync(
- String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ private PollerFlux, ClusterInner> beginCreateAsync(String resourceGroupName,
+ String clusterName, ClusterInner parameters, Context context) {
context = this.client.mergeContext(context);
- Mono>> mono =
- createWithResponseAsync(resourceGroupName, clusterName, parameters, context);
- return this
- .client
- .getLroResult(
- mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, context);
+ Mono>> mono
+ = createWithResponseAsync(resourceGroupName, clusterName, parameters, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ ClusterInner.class, ClusterInner.class, context);
}
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -707,14 +560,14 @@ private PollerFlux, ClusterInner> beginCreateAsync(
* @return the {@link SyncPoller} for polling of represents a cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ClusterInner> beginCreate(
- String resourceGroupName, String clusterName, ClusterInner parameters) {
+ public SyncPoller, ClusterInner> beginCreate(String resourceGroupName, String clusterName,
+ ClusterInner parameters) {
return this.beginCreateAsync(resourceGroupName, clusterName, parameters).getSyncPoller();
}
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -725,14 +578,14 @@ public SyncPoller, ClusterInner> beginCreate(
* @return the {@link SyncPoller} for polling of represents a cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ClusterInner> beginCreate(
- String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ public SyncPoller, ClusterInner> beginCreate(String resourceGroupName, String clusterName,
+ ClusterInner parameters, Context context) {
return this.beginCreateAsync(resourceGroupName, clusterName, parameters, context).getSyncPoller();
}
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -743,14 +596,13 @@ public SyncPoller, ClusterInner> beginCreate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(String resourceGroupName, String clusterName, ClusterInner parameters) {
- return beginCreateAsync(resourceGroupName, clusterName, parameters)
- .last()
+ return beginCreateAsync(resourceGroupName, clusterName, parameters).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -761,16 +613,15 @@ private Mono createAsync(String resourceGroupName, String clusterN
* @return represents a cluster on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(
- String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
- return beginCreateAsync(resourceGroupName, clusterName, parameters, context)
- .last()
+ private Mono createAsync(String resourceGroupName, String clusterName, ClusterInner parameters,
+ Context context) {
+ return beginCreateAsync(resourceGroupName, clusterName, parameters, context).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -786,7 +637,7 @@ public ClusterInner create(String resourceGroupName, String clusterName, Cluster
/**
* Creates a new cluster with servers.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param parameters The required parameters for creating or updating a cluster.
@@ -804,29 +655,25 @@ public ClusterInner create(String resourceGroupName, String clusterName, Cluster
/**
* Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as
* cluster creation date and time.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a cluster such as compute and storage configuration and cluster lifecycle metadata such
- * as cluster creation date and time along with {@link Response} on successful completion of {@link Mono}.
+ * as cluster creation date and time along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(
- String resourceGroupName, String clusterName) {
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String clusterName) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be 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."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -837,24 +684,15 @@ private Mono> getByResourceGroupWithResponseAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .getByResourceGroup(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- clusterName,
- accept,
- context))
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as
* cluster creation date and time.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param context The context to associate with this operation.
@@ -862,22 +700,18 @@ private Mono> getByResourceGroupWithResponseAsync(
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a cluster such as compute and storage configuration and cluster lifecycle metadata such
- * as cluster creation date and time along with {@link Response} on successful completion of {@link Mono}.
+ * as cluster creation date and time along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(
- String resourceGroupName, String clusterName, Context context) {
+ private Mono