From 5cd42f3f45694e83d535624f3f9f24edea101154 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 15 Nov 2024 23:32:17 +0000 Subject: [PATCH] CodeGen from PR 31071 in Azure/azure-rest-api-specs Merge 9ea124b3fc2141fdf22285c78d688ea6e1b29eaf into a7c4ee8a7f36ff5e653cf1d0b0a02fad7735c2c0 --- .../CHANGELOG.md | 18 +++- .../README.md | 21 ++--- .../SAMPLE.md | 73 +++++++++------ .../pom.xml | 5 +- .../MongoClusterManagementClientImpl.java | 2 +- .../mongocluster/models/DataApiMode.java | 51 ++++++++++ .../models/DataApiProperties.java | 93 +++++++++++++++++++ .../models/MongoClusterProperties.java | 31 +++++++ .../models/MongoClusterUpdateProperties.java | 31 +++++++ .../FirewallRulesCreateOrUpdateSamples.java | 2 +- .../generated/FirewallRulesDeleteSamples.java | 2 +- .../generated/FirewallRulesGetSamples.java | 2 +- ...irewallRulesListByMongoClusterSamples.java | 2 +- ...oClustersCheckNameAvailabilitySamples.java | 4 +- .../MongoClustersCreateOrUpdateSamples.java | 6 +- .../generated/MongoClustersDeleteSamples.java | 2 +- ...ongoClustersGetByResourceGroupSamples.java | 2 +- ...ngoClustersListByResourceGroupSamples.java | 2 +- ...oClustersListConnectionStringsSamples.java | 2 +- .../generated/MongoClustersListSamples.java | 2 +- .../MongoClustersPromoteSamples.java | 2 +- .../generated/MongoClustersUpdateSamples.java | 29 +++++- .../generated/OperationsListSamples.java | 2 +- ...ivateEndpointConnectionsCreateSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...tConnectionsListByMongoClusterSamples.java | 2 +- ...PrivateLinksListByMongoClusterSamples.java | 2 +- .../ReplicasListByParentSamples.java | 2 +- .../CheckNameAvailabilityRequestTests.java | 16 ++-- ...eckNameAvailabilityResponseInnerTests.java | 10 +- .../generated/ConnectionStringTests.java | 2 +- .../generated/DataApiPropertiesTests.java | 25 +++++ .../generated/FirewallRuleInnerTests.java | 12 +-- .../FirewallRuleListResultTests.java | 8 +- .../FirewallRulePropertiesTests.java | 12 +-- .../FirewallRulesCreateOrUpdateMockTests.java | 13 +-- ...FirewallRulesGetWithResponseMockTests.java | 8 +- ...ewallRulesListByMongoClusterMockTests.java | 10 +- ...ListConnectionStringsResultInnerTests.java | 2 +- ...NameAvailabilityWithResponseMockTests.java | 12 +-- ...onnectionStringsWithResponseMockTests.java | 4 +- .../generated/OperationsListMockTests.java | 2 +- ...vateEndpointConnectionPropertiesTests.java | 20 ++-- ...eEndpointConnectionResourceInnerTests.java | 22 +++-- ...ointConnectionResourceListResultTests.java | 8 +- .../PrivateEndpointConnectionTests.java | 8 +- ...ateEndpointConnectionsCreateMockTests.java | 15 +-- ...ntConnectionsGetWithResponseMockTests.java | 11 +-- ...onnectionsListByMongoClusterMockTests.java | 8 +- .../generated/PrivateEndpointTests.java | 2 +- .../PrivateLinkResourceInnerTests.java | 4 +- .../PrivateLinkResourceListResultTests.java | 6 +- .../PrivateLinkResourcePropertiesTests.java | 6 +- ...rivateLinkServiceConnectionStateTests.java | 14 +-- ...ivateLinksListByMongoClusterMockTests.java | 6 +- .../generated/ReplicationPropertiesTests.java | 3 +- .../tsp-location.yaml | 2 +- 58 files changed, 476 insertions(+), 193 deletions(-) create mode 100644 sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/DataApiMode.java create mode 100644 sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/DataApiProperties.java create mode 100644 sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/DataApiPropertiesTests.java diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/CHANGELOG.md b/sdk/mongocluster/azure-resourcemanager-mongocluster/CHANGELOG.md index 6e07633255eaf..d3e86db0618da 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/CHANGELOG.md +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/CHANGELOG.md @@ -1,14 +1,24 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2024-11-15) + +- Azure Resource Manager Mongo Cluster client library for Java. This package contains Microsoft Azure SDK for Mongo Cluster Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure Cosmos DB for MongoDB vCore resources including clusters and firewall rules. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added -### Breaking Changes +* `models.DataApiMode` was added + +* `models.DataApiProperties` was added -### Bugs Fixed +#### `models.MongoClusterProperties` was modified + +* `withDataApi(models.DataApiProperties)` was added +* `dataApi()` was added + +#### `models.MongoClusterUpdateProperties` was modified -### Other Changes +* `dataApi()` was added +* `withDataApi(models.DataApiProperties)` was added ## 1.0.0 (2024-09-25) diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/README.md b/sdk/mongocluster/azure-resourcemanager-mongocluster/README.md index 1190015dc8375..f4b95dd408c03 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/README.md +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-mongocluster - 1.0.0 + 1.1.0-beta.1 ``` [//]: # ({x-version-update-end}) @@ -75,16 +75,15 @@ mongoCluster = mongoClusterManager.mongoClusters() .define(clusterName) .withRegion(REGION) .withExistingResourceGroup(resourceGroupName) - .withProperties( - new MongoClusterProperties() - .withAdministrator(new AdministratorProperties().withUserName(loginUser).withPassword(loginPwd)) - .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) - .withStorage(new StorageProperties().withSizeGb(128L)) - .withCompute(new ComputeProperties().withTier("M30")) - .withHighAvailability(new HighAvailabilityProperties().withTargetMode(HighAvailabilityMode.DISABLED)) - .withSharding(new ShardingProperties().withShardCount(1)) - .withServerVersion("7.0") - ) + .withProperties(new MongoClusterProperties() + .withAdministrator(new AdministratorProperties().withUserName(loginUser).withPassword(loginPwd)) + .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) + .withStorage(new StorageProperties().withSizeGb(128L)) + .withCompute(new ComputeProperties().withTier("M30")) + .withHighAvailability( + new HighAvailabilityProperties().withTargetMode(HighAvailabilityMode.DISABLED)) + .withSharding(new ShardingProperties().withShardCount(1)) + .withServerVersion("7.0")) .create(); ``` [Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mongocluster/azure-resourcemanager-mongocluster/SAMPLE.md) diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/SAMPLE.md b/sdk/mongocluster/azure-resourcemanager-mongocluster/SAMPLE.md index 8beccb3647da3..300fa2ef5fcc6 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/SAMPLE.md +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/SAMPLE.md @@ -48,7 +48,7 @@ import com.azure.resourcemanager.mongocluster.models.FirewallRuleProperties; */ public final class FirewallRulesCreateOrUpdateSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_FirewallRuleCreate.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_FirewallRuleCreate.json */ /** * Sample code: Creates a firewall rule on a Mongo Cluster resource. @@ -75,7 +75,7 @@ public final class FirewallRulesCreateOrUpdateSamples { */ public final class FirewallRulesDeleteSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_FirewallRuleDelete.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_FirewallRuleDelete.json */ /** * Sample code: Deletes a firewall rule on a Mongo Cluster resource. @@ -97,7 +97,7 @@ public final class FirewallRulesDeleteSamples { */ public final class FirewallRulesGetSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_FirewallRuleGet.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_FirewallRuleGet.json */ /** * Sample code: Gets a firewall rule on a Mongo Cluster resource. @@ -120,7 +120,7 @@ public final class FirewallRulesGetSamples { */ public final class FirewallRulesListByMongoClusterSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_FirewallRuleList.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_FirewallRuleList.json */ /** * Sample code: List the firewall rules on a Mongo Cluster resource. @@ -144,7 +144,7 @@ import com.azure.resourcemanager.mongocluster.models.CheckNameAvailabilityReques */ public final class MongoClustersCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_NameAvailability.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_NameAvailability.json */ /** * Sample code: Checks and confirms the Mongo Cluster name is availability for use. @@ -159,7 +159,7 @@ public final class MongoClustersCheckNameAvailabilitySamples { } /* - * x-ms-original-file: 2024-07-01/MongoClusters_NameAvailability_AlreadyExists.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_NameAvailability_AlreadyExists.json */ /** * Sample code: Checks and returns that the Mongo Cluster name is already in-use. @@ -197,7 +197,7 @@ import java.time.OffsetDateTime; */ public final class MongoClustersCreateOrUpdateSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_CreateGeoReplica.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_CreateGeoReplica.json */ /** * Sample code: Creates a replica Mongo Cluster resource from a source resource. @@ -218,7 +218,7 @@ public final class MongoClustersCreateOrUpdateSamples { } /* - * x-ms-original-file: 2024-07-01/MongoClusters_CreatePITR.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_CreatePITR.json */ /** * Sample code: Creates a Mongo Cluster resource from a point in time restore. @@ -240,7 +240,7 @@ public final class MongoClustersCreateOrUpdateSamples { } /* - * x-ms-original-file: 2024-07-01/MongoClusters_Create.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_Create.json */ /** * Sample code: Creates a new Mongo Cluster resource. @@ -274,7 +274,7 @@ public final class MongoClustersCreateOrUpdateSamples { */ public final class MongoClustersDeleteSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_Delete.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_Delete.json */ /** * Sample code: Deletes a Mongo Cluster resource. @@ -296,7 +296,7 @@ public final class MongoClustersDeleteSamples { */ public final class MongoClustersGetByResourceGroupSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_Get.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_Get.json */ /** * Sample code: Gets a Mongo Cluster resource. @@ -318,7 +318,7 @@ public final class MongoClustersGetByResourceGroupSamples { */ public final class MongoClustersListSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_List.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_List.json */ /** * Sample code: Lists the Mongo Cluster resources in a subscription. @@ -340,7 +340,7 @@ public final class MongoClustersListSamples { */ public final class MongoClustersListByResourceGroupSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_ListByResourceGroup.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_ListByResourceGroup.json */ /** * Sample code: Lists the Mongo Cluster resources in a resource group. @@ -362,7 +362,7 @@ public final class MongoClustersListByResourceGroupSamples { */ public final class MongoClustersListConnectionStringsSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_ListConnectionStrings.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_ListConnectionStrings.json */ /** * Sample code: List the available connection strings for the Mongo Cluster resource. @@ -389,7 +389,7 @@ import com.azure.resourcemanager.mongocluster.models.PromoteReplicaRequest; */ public final class MongoClustersPromoteSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_ForcePromoteReplica.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_ForcePromoteReplica.json */ /** * Sample code: Promotes a replica Mongo Cluster resource to a primary role. @@ -411,6 +411,8 @@ public final class MongoClustersPromoteSamples { ```java import com.azure.resourcemanager.mongocluster.models.AdministratorProperties; import com.azure.resourcemanager.mongocluster.models.ComputeProperties; +import com.azure.resourcemanager.mongocluster.models.DataApiMode; +import com.azure.resourcemanager.mongocluster.models.DataApiProperties; import com.azure.resourcemanager.mongocluster.models.HighAvailabilityMode; import com.azure.resourcemanager.mongocluster.models.HighAvailabilityProperties; import com.azure.resourcemanager.mongocluster.models.MongoCluster; @@ -425,7 +427,7 @@ import java.util.Arrays; */ public final class MongoClustersUpdateSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_ResetPassword.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_ResetPassword.json */ /** * Sample code: Resets the administrator login password. @@ -444,7 +446,7 @@ public final class MongoClustersUpdateSamples { } /* - * x-ms-original-file: 2024-07-01/MongoClusters_PatchDiskSize.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PatchDiskSize.json */ /** * Sample code: Updates the disk size on a Mongo Cluster resource. @@ -462,7 +464,7 @@ public final class MongoClustersUpdateSamples { } /* - * x-ms-original-file: 2024-07-01/MongoClusters_PatchPrivateNetworkAccess.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PatchPrivateNetworkAccess.json */ /** * Sample code: Disables public network access on a Mongo Cluster resource with a private endpoint connection. @@ -480,7 +482,26 @@ public final class MongoClustersUpdateSamples { } /* - * x-ms-original-file: 2024-07-01/MongoClusters_Update.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PatchDataApi.json + */ + /** + * Sample code: Enables data API on a mongo cluster resource. + * + * @param manager Entry point to MongoClusterManager. + */ + public static void + enablesDataAPIOnAMongoClusterResource(com.azure.resourcemanager.mongocluster.MongoClusterManager manager) { + MongoCluster resource = manager.mongoClusters() + .getByResourceGroupWithResponse("TestResourceGroup", "myMongoCluster", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties( + new MongoClusterUpdateProperties().withDataApi(new DataApiProperties().withMode(DataApiMode.ENABLED))) + .apply(); + } + + /* + * x-ms-original-file: 2024-10-01-preview/MongoClusters_Update.json */ /** * Sample code: Updates a Mongo Cluster resource. @@ -515,7 +536,7 @@ public final class MongoClustersUpdateSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2024-07-01/Operations_List.json + * x-ms-original-file: 2024-10-01-preview/Operations_List.json */ /** * Sample code: Operations_List. @@ -540,7 +561,7 @@ import com.azure.resourcemanager.mongocluster.models.PrivateLinkServiceConnectio */ public final class PrivateEndpointConnectionsCreateSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_PrivateEndpointConnectionPut.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PrivateEndpointConnectionPut.json */ /** * Sample code: Approves a private endpoint connection on a Mongo Cluster resource. @@ -568,7 +589,7 @@ public final class PrivateEndpointConnectionsCreateSamples { */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_PrivateEndpointConnectionDelete.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PrivateEndpointConnectionDelete.json */ /** * Sample code: Delete a private endpoint connection on a Mongo Cluster resource. @@ -592,7 +613,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_PrivateEndpointConnectionGet.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PrivateEndpointConnectionGet.json */ /** * Sample code: Get a private endpoint connection on a Mongo Cluster resource. @@ -616,7 +637,7 @@ public final class PrivateEndpointConnectionsGetSamples { */ public final class PrivateEndpointConnectionsListByMongoClusterSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_PrivateEndpointConnectionList.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PrivateEndpointConnectionList.json */ /** * Sample code: Lists the private endpoint connection resources on a Mongo Cluster resource. @@ -639,7 +660,7 @@ public final class PrivateEndpointConnectionsListByMongoClusterSamples { */ public final class PrivateLinksListByMongoClusterSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_PrivateLinkResourceList.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PrivateLinkResourceList.json */ /** * Sample code: Lists the private link resources available on a Mongo Cluster resource. @@ -661,7 +682,7 @@ public final class PrivateLinksListByMongoClusterSamples { */ public final class ReplicasListByParentSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_ReplicaList.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_ReplicaList.json */ /** * Sample code: List the replicas linked to a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/pom.xml b/sdk/mongocluster/azure-resourcemanager-mongocluster/pom.xml index fdc83c215d548..171fdaa607118 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/pom.xml +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/pom.xml @@ -1,7 +1,7 @@ 4.0.0 @@ -46,6 +46,7 @@ Code generated by Microsoft (R) TypeSpec Code Generator. 0 0 true + false diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/implementation/MongoClusterManagementClientImpl.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/implementation/MongoClusterManagementClientImpl.java index e682a3799ebb5..e7abe1f2d72f3 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/implementation/MongoClusterManagementClientImpl.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/implementation/MongoClusterManagementClientImpl.java @@ -229,7 +229,7 @@ public ReplicasClient getReplicas() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2024-07-01"; + this.apiVersion = "2024-10-01-preview"; this.operations = new OperationsClientImpl(this); this.mongoClusters = new MongoClustersClientImpl(this); this.firewallRules = new FirewallRulesClientImpl(this); diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/DataApiMode.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/DataApiMode.java new file mode 100644 index 0000000000000..21f34a44d85d7 --- /dev/null +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/DataApiMode.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.mongocluster.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The mode to apply to the Mongo Data API. + */ +public final class DataApiMode extends ExpandableStringEnum { + /** + * Mongo Data API is enabled for the cluster. + */ + public static final DataApiMode ENABLED = fromString("Enabled"); + + /** + * Mongo Data API is disabled for the cluster. + */ + public static final DataApiMode DISABLED = fromString("Disabled"); + + /** + * Creates a new instance of DataApiMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DataApiMode() { + } + + /** + * Creates or finds a DataApiMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding DataApiMode. + */ + public static DataApiMode fromString(String name) { + return fromString(name, DataApiMode.class); + } + + /** + * Gets known DataApiMode values. + * + * @return known DataApiMode values. + */ + public static Collection values() { + return values(DataApiMode.class); + } +} diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/DataApiProperties.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/DataApiProperties.java new file mode 100644 index 0000000000000..cb44e3d9c665c --- /dev/null +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/DataApiProperties.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.mongocluster.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Data API properties. + */ +@Fluent +public final class DataApiProperties implements JsonSerializable { + /* + * The mode to indicate whether the Mongo Data API is enabled for a cluster. + */ + private DataApiMode mode; + + /** + * Creates an instance of DataApiProperties class. + */ + public DataApiProperties() { + } + + /** + * Get the mode property: The mode to indicate whether the Mongo Data API is enabled for a cluster. + * + * @return the mode value. + */ + public DataApiMode mode() { + return this.mode; + } + + /** + * Set the mode property: The mode to indicate whether the Mongo Data API is enabled for a cluster. + * + * @param mode the mode value to set. + * @return the DataApiProperties object itself. + */ + public DataApiProperties withMode(DataApiMode mode) { + this.mode = mode; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataApiProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataApiProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the DataApiProperties. + */ + public static DataApiProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DataApiProperties deserializedDataApiProperties = new DataApiProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("mode".equals(fieldName)) { + deserializedDataApiProperties.mode = DataApiMode.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedDataApiProperties; + }); + } +} diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/MongoClusterProperties.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/MongoClusterProperties.java index 8500f1d1295c5..85c0cba785c57 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/MongoClusterProperties.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/MongoClusterProperties.java @@ -87,6 +87,11 @@ public final class MongoClusterProperties implements JsonSerializable e.validate()); } @@ -465,6 +493,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("sharding", this.sharding); jsonWriter.writeJsonField("compute", this.compute); jsonWriter.writeJsonField("backup", this.backup); + jsonWriter.writeJsonField("dataApi", this.dataApi); jsonWriter.writeArrayField("previewFeatures", this.previewFeatures, (writer, element) -> writer.writeString(element == null ? null : element.toString())); return jsonWriter.writeEndObject(); @@ -518,6 +547,8 @@ public static MongoClusterProperties fromJson(JsonReader jsonReader) throws IOEx deserializedMongoClusterProperties.compute = ComputeProperties.fromJson(reader); } else if ("backup".equals(fieldName)) { deserializedMongoClusterProperties.backup = BackupProperties.fromJson(reader); + } else if ("dataApi".equals(fieldName)) { + deserializedMongoClusterProperties.dataApi = DataApiProperties.fromJson(reader); } else if ("privateEndpointConnections".equals(fieldName)) { List privateEndpointConnections = reader.readArray(reader1 -> PrivateEndpointConnection.fromJson(reader1)); diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/MongoClusterUpdateProperties.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/MongoClusterUpdateProperties.java index 9c63c1270b452..696f6bbe72d80 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/MongoClusterUpdateProperties.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/main/java/com/azure/resourcemanager/mongocluster/models/MongoClusterUpdateProperties.java @@ -57,6 +57,11 @@ public final class MongoClusterUpdateProperties implements JsonSerializable writer.writeString(element == null ? null : element.toString())); return jsonWriter.writeEndObject(); @@ -329,6 +358,8 @@ public static MongoClusterUpdateProperties fromJson(JsonReader jsonReader) throw deserializedMongoClusterUpdateProperties.compute = ComputeProperties.fromJson(reader); } else if ("backup".equals(fieldName)) { deserializedMongoClusterUpdateProperties.backup = BackupProperties.fromJson(reader); + } else if ("dataApi".equals(fieldName)) { + deserializedMongoClusterUpdateProperties.dataApi = DataApiProperties.fromJson(reader); } else if ("previewFeatures".equals(fieldName)) { List previewFeatures = reader.readArray(reader1 -> PreviewFeature.fromString(reader1.getString())); diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesCreateOrUpdateSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesCreateOrUpdateSamples.java index 6e11833fcb927..3a35acac170a3 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesCreateOrUpdateSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class FirewallRulesCreateOrUpdateSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_FirewallRuleCreate.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_FirewallRuleCreate.json */ /** * Sample code: Creates a firewall rule on a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesDeleteSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesDeleteSamples.java index 4f6d4ca1b06ea..09b6c4a760b38 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesDeleteSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class FirewallRulesDeleteSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_FirewallRuleDelete.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_FirewallRuleDelete.json */ /** * Sample code: Deletes a firewall rule on a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesGetSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesGetSamples.java index 6405457102ce6..d006a56449629 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesGetSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesGetSamples.java @@ -9,7 +9,7 @@ */ public final class FirewallRulesGetSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_FirewallRuleGet.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_FirewallRuleGet.json */ /** * Sample code: Gets a firewall rule on a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesListByMongoClusterSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesListByMongoClusterSamples.java index 6f5872795e987..7c3dcd24e06f2 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesListByMongoClusterSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesListByMongoClusterSamples.java @@ -9,7 +9,7 @@ */ public final class FirewallRulesListByMongoClusterSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_FirewallRuleList.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_FirewallRuleList.json */ /** * Sample code: List the firewall rules on a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCheckNameAvailabilitySamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCheckNameAvailabilitySamples.java index eb2099974fab9..eba5d886e09c9 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCheckNameAvailabilitySamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCheckNameAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class MongoClustersCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_NameAvailability.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_NameAvailability.json */ /** * Sample code: Checks and confirms the Mongo Cluster name is availability for use. @@ -26,7 +26,7 @@ public static void checksAndConfirmsTheMongoClusterNameIsAvailabilityForUse( } /* - * x-ms-original-file: 2024-07-01/MongoClusters_NameAvailability_AlreadyExists.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_NameAvailability_AlreadyExists.json */ /** * Sample code: Checks and returns that the Mongo Cluster name is already in-use. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCreateOrUpdateSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCreateOrUpdateSamples.java index 1ebddefc4843c..b926ab2f86902 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCreateOrUpdateSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCreateOrUpdateSamples.java @@ -21,7 +21,7 @@ */ public final class MongoClustersCreateOrUpdateSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_CreateGeoReplica.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_CreateGeoReplica.json */ /** * Sample code: Creates a replica Mongo Cluster resource from a source resource. @@ -42,7 +42,7 @@ public static void createsAReplicaMongoClusterResourceFromASourceResource( } /* - * x-ms-original-file: 2024-07-01/MongoClusters_CreatePITR.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_CreatePITR.json */ /** * Sample code: Creates a Mongo Cluster resource from a point in time restore. @@ -64,7 +64,7 @@ public static void createsAMongoClusterResourceFromAPointInTimeRestore( } /* - * x-ms-original-file: 2024-07-01/MongoClusters_Create.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_Create.json */ /** * Sample code: Creates a new Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersDeleteSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersDeleteSamples.java index e4608cda29680..b330ccd4deae1 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersDeleteSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class MongoClustersDeleteSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_Delete.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_Delete.json */ /** * Sample code: Deletes a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersGetByResourceGroupSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersGetByResourceGroupSamples.java index 8e3c662ede83f..cb4e694433577 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersGetByResourceGroupSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class MongoClustersGetByResourceGroupSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_Get.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_Get.json */ /** * Sample code: Gets a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListByResourceGroupSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListByResourceGroupSamples.java index 32fff6b5b5081..2b1f25fed6273 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListByResourceGroupSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class MongoClustersListByResourceGroupSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_ListByResourceGroup.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_ListByResourceGroup.json */ /** * Sample code: Lists the Mongo Cluster resources in a resource group. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListConnectionStringsSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListConnectionStringsSamples.java index 7bafeb2fe3689..6e98a562b012f 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListConnectionStringsSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListConnectionStringsSamples.java @@ -9,7 +9,7 @@ */ public final class MongoClustersListConnectionStringsSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_ListConnectionStrings.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_ListConnectionStrings.json */ /** * Sample code: List the available connection strings for the Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListSamples.java index b5d902f848466..3f0aad12128ea 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListSamples.java @@ -9,7 +9,7 @@ */ public final class MongoClustersListSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_List.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_List.json */ /** * Sample code: Lists the Mongo Cluster resources in a subscription. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersPromoteSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersPromoteSamples.java index 3d9c9ba51ef44..b69e419811641 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersPromoteSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersPromoteSamples.java @@ -13,7 +13,7 @@ */ public final class MongoClustersPromoteSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_ForcePromoteReplica.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_ForcePromoteReplica.json */ /** * Sample code: Promotes a replica Mongo Cluster resource to a primary role. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersUpdateSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersUpdateSamples.java index fa97da9c846f3..1d79c88af151e 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersUpdateSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersUpdateSamples.java @@ -6,6 +6,8 @@ import com.azure.resourcemanager.mongocluster.models.AdministratorProperties; import com.azure.resourcemanager.mongocluster.models.ComputeProperties; +import com.azure.resourcemanager.mongocluster.models.DataApiMode; +import com.azure.resourcemanager.mongocluster.models.DataApiProperties; import com.azure.resourcemanager.mongocluster.models.HighAvailabilityMode; import com.azure.resourcemanager.mongocluster.models.HighAvailabilityProperties; import com.azure.resourcemanager.mongocluster.models.MongoCluster; @@ -20,7 +22,7 @@ */ public final class MongoClustersUpdateSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_ResetPassword.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_ResetPassword.json */ /** * Sample code: Resets the administrator login password. @@ -39,7 +41,7 @@ public final class MongoClustersUpdateSamples { } /* - * x-ms-original-file: 2024-07-01/MongoClusters_PatchDiskSize.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PatchDiskSize.json */ /** * Sample code: Updates the disk size on a Mongo Cluster resource. @@ -57,7 +59,7 @@ public final class MongoClustersUpdateSamples { } /* - * x-ms-original-file: 2024-07-01/MongoClusters_PatchPrivateNetworkAccess.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PatchPrivateNetworkAccess.json */ /** * Sample code: Disables public network access on a Mongo Cluster resource with a private endpoint connection. @@ -75,7 +77,26 @@ public static void disablesPublicNetworkAccessOnAMongoClusterResourceWithAPrivat } /* - * x-ms-original-file: 2024-07-01/MongoClusters_Update.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PatchDataApi.json + */ + /** + * Sample code: Enables data API on a mongo cluster resource. + * + * @param manager Entry point to MongoClusterManager. + */ + public static void + enablesDataAPIOnAMongoClusterResource(com.azure.resourcemanager.mongocluster.MongoClusterManager manager) { + MongoCluster resource = manager.mongoClusters() + .getByResourceGroupWithResponse("TestResourceGroup", "myMongoCluster", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties( + new MongoClusterUpdateProperties().withDataApi(new DataApiProperties().withMode(DataApiMode.ENABLED))) + .apply(); + } + + /* + * x-ms-original-file: 2024-10-01-preview/MongoClusters_Update.json */ /** * Sample code: Updates a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/OperationsListSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/OperationsListSamples.java index d251fb3d91797..5769673d11bda 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/OperationsListSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2024-07-01/Operations_List.json + * x-ms-original-file: 2024-10-01-preview/Operations_List.json */ /** * Sample code: Operations_List. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsCreateSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsCreateSamples.java index 3d92d1f63d074..78d43e1857327 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsCreateSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsCreateSamples.java @@ -13,7 +13,7 @@ */ public final class PrivateEndpointConnectionsCreateSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_PrivateEndpointConnectionPut.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PrivateEndpointConnectionPut.json */ /** * Sample code: Approves a private endpoint connection on a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsDeleteSamples.java index db9ba788b1984..a43448f21266f 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_PrivateEndpointConnectionDelete.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PrivateEndpointConnectionDelete.json */ /** * Sample code: Delete a private endpoint connection on a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsGetSamples.java index 0c213919533e1..a27277c4b29b2 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_PrivateEndpointConnectionGet.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PrivateEndpointConnectionGet.json */ /** * Sample code: Get a private endpoint connection on a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsListByMongoClusterSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsListByMongoClusterSamples.java index 7f1fdcf686906..4ba3ae7edff01 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsListByMongoClusterSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsListByMongoClusterSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsListByMongoClusterSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_PrivateEndpointConnectionList.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PrivateEndpointConnectionList.json */ /** * Sample code: Lists the private endpoint connection resources on a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinksListByMongoClusterSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinksListByMongoClusterSamples.java index c7a346ac9627d..f4204a8009fed 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinksListByMongoClusterSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinksListByMongoClusterSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinksListByMongoClusterSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_PrivateLinkResourceList.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_PrivateLinkResourceList.json */ /** * Sample code: Lists the private link resources available on a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/ReplicasListByParentSamples.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/ReplicasListByParentSamples.java index bb627d70b0bc3..a984e905f7174 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/ReplicasListByParentSamples.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/samples/java/com/azure/resourcemanager/mongocluster/generated/ReplicasListByParentSamples.java @@ -9,7 +9,7 @@ */ public final class ReplicasListByParentSamples { /* - * x-ms-original-file: 2024-07-01/MongoClusters_ReplicaList.json + * x-ms-original-file: 2024-10-01-preview/MongoClusters_ReplicaList.json */ /** * Sample code: List the replicas linked to a Mongo Cluster resource. diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/CheckNameAvailabilityRequestTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/CheckNameAvailabilityRequestTests.java index b1d0aeb950967..efb90a1a70ebe 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/CheckNameAvailabilityRequestTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/CheckNameAvailabilityRequestTests.java @@ -11,19 +11,17 @@ public final class CheckNameAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CheckNameAvailabilityRequest model - = BinaryData.fromString("{\"name\":\"hsgcbacphejkot\",\"type\":\"qgoulznd\"}") - .toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("hsgcbacphejkot", model.name()); - Assertions.assertEquals("qgoulznd", model.type()); + CheckNameAvailabilityRequest model = BinaryData.fromString("{\"name\":\"kwy\",\"type\":\"gfgibm\"}") + .toObject(CheckNameAvailabilityRequest.class); + Assertions.assertEquals("kwy", model.name()); + Assertions.assertEquals("gfgibm", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CheckNameAvailabilityRequest model - = new CheckNameAvailabilityRequest().withName("hsgcbacphejkot").withType("qgoulznd"); + CheckNameAvailabilityRequest model = new CheckNameAvailabilityRequest().withName("kwy").withType("gfgibm"); model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("hsgcbacphejkot", model.name()); - Assertions.assertEquals("qgoulznd", model.type()); + Assertions.assertEquals("kwy", model.name()); + Assertions.assertEquals("gfgibm", model.type()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/CheckNameAvailabilityResponseInnerTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/CheckNameAvailabilityResponseInnerTests.java index 2ddc63d07fb88..b0445f0ea7dc2 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/CheckNameAvailabilityResponseInnerTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/CheckNameAvailabilityResponseInnerTests.java @@ -12,11 +12,11 @@ public final class CheckNameAvailabilityResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CheckNameAvailabilityResponseInner model - = BinaryData.fromString("{\"nameAvailable\":false,\"reason\":\"Invalid\",\"message\":\"kgfg\"}") - .toObject(CheckNameAvailabilityResponseInner.class); + CheckNameAvailabilityResponseInner model = BinaryData + .fromString("{\"nameAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"qsrxybzqqed\"}") + .toObject(CheckNameAvailabilityResponseInner.class); Assertions.assertEquals(false, model.nameAvailable()); - Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, model.reason()); - Assertions.assertEquals("kgfg", model.message()); + Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, model.reason()); + Assertions.assertEquals("qsrxybzqqed", model.message()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ConnectionStringTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ConnectionStringTests.java index c0d2137a662aa..e57810257e461 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ConnectionStringTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ConnectionStringTests.java @@ -11,7 +11,7 @@ public final class ConnectionStringTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionString model = BinaryData - .fromString("{\"connectionString\":\"jfkgiawxk\",\"description\":\"ypl\",\"name\":\"kbasyypn\"}") + .fromString("{\"connectionString\":\"kbasyypn\",\"description\":\"hsgcbacphejkot\",\"name\":\"qgoulznd\"}") .toObject(ConnectionString.class); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/DataApiPropertiesTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/DataApiPropertiesTests.java new file mode 100644 index 0000000000000..7b85a8bec8395 --- /dev/null +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/DataApiPropertiesTests.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.mongocluster.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.mongocluster.models.DataApiMode; +import com.azure.resourcemanager.mongocluster.models.DataApiProperties; +import org.junit.jupiter.api.Assertions; + +public final class DataApiPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DataApiProperties model = BinaryData.fromString("{\"mode\":\"Enabled\"}").toObject(DataApiProperties.class); + Assertions.assertEquals(DataApiMode.ENABLED, model.mode()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + DataApiProperties model = new DataApiProperties().withMode(DataApiMode.ENABLED); + model = BinaryData.fromObject(model).toObject(DataApiProperties.class); + Assertions.assertEquals(DataApiMode.ENABLED, model.mode()); + } +} diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRuleInnerTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRuleInnerTests.java index d25f19427fbf7..c624f1a876c6e 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRuleInnerTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRuleInnerTests.java @@ -13,18 +13,18 @@ public final class FirewallRuleInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FirewallRuleInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Updating\",\"startIpAddress\":\"keqsrxybzqqedq\",\"endIpAddress\":\"tbciqfouflmm\"},\"id\":\"zsm\",\"name\":\"dmgloug\",\"type\":\"b\"}") + "{\"properties\":{\"provisioningState\":\"Updating\",\"startIpAddress\":\"fouflmmnkzsmo\",\"endIpAddress\":\"mglougpbkw\"},\"id\":\"utduqktapspwgcu\",\"name\":\"rtumkdosvq\",\"type\":\"hbmdgbbjfdd\"}") .toObject(FirewallRuleInner.class); - Assertions.assertEquals("keqsrxybzqqedq", model.properties().startIpAddress()); - Assertions.assertEquals("tbciqfouflmm", model.properties().endIpAddress()); + Assertions.assertEquals("fouflmmnkzsmo", model.properties().startIpAddress()); + Assertions.assertEquals("mglougpbkw", model.properties().endIpAddress()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FirewallRuleInner model = new FirewallRuleInner().withProperties( - new FirewallRuleProperties().withStartIpAddress("keqsrxybzqqedq").withEndIpAddress("tbciqfouflmm")); + new FirewallRuleProperties().withStartIpAddress("fouflmmnkzsmo").withEndIpAddress("mglougpbkw")); model = BinaryData.fromObject(model).toObject(FirewallRuleInner.class); - Assertions.assertEquals("keqsrxybzqqedq", model.properties().startIpAddress()); - Assertions.assertEquals("tbciqfouflmm", model.properties().endIpAddress()); + Assertions.assertEquals("fouflmmnkzsmo", model.properties().startIpAddress()); + Assertions.assertEquals("mglougpbkw", model.properties().endIpAddress()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRuleListResultTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRuleListResultTests.java index 123c76378bf03..61936f545d8d8 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRuleListResultTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRuleListResultTests.java @@ -12,10 +12,10 @@ public final class FirewallRuleListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FirewallRuleListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"startIpAddress\":\"kdosvqw\",\"endIpAddress\":\"bmdg\"},\"id\":\"jfddgmbmbe\",\"name\":\"ppbhtqqrolfp\",\"type\":\"psalgbqux\"},{\"properties\":{\"provisioningState\":\"Failed\",\"startIpAddress\":\"jgzjaoyfhrtx\",\"endIpAddress\":\"lnerkujysvleju\"},\"id\":\"qawrlyxwj\",\"name\":\"cpr\",\"type\":\"nwbxgjvtbvpyssz\"},{\"properties\":{\"provisioningState\":\"Failed\",\"startIpAddress\":\"jq\",\"endIpAddress\":\"uhmuouqfprwzwbn\"},\"id\":\"itnwuizgazxufi\",\"name\":\"uckyf\",\"type\":\"hr\"}],\"nextLink\":\"dfvzwdzuhty\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"startIpAddress\":\"gbquxigj\",\"endIpAddress\":\"jgzjaoyfhrtx\"},\"id\":\"n\",\"name\":\"rkujy\",\"type\":\"vlejuvfqa\"},{\"properties\":{\"provisioningState\":\"Failed\",\"startIpAddress\":\"xwjkcprbnwbxg\",\"endIpAddress\":\"vtb\"},\"id\":\"ysszdnrujqguh\",\"name\":\"uouq\",\"type\":\"prwzwbnguitnwui\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"x\",\"endIpAddress\":\"fizuckyf\"},\"id\":\"rfidfvzwdz\",\"name\":\"htymw\",\"type\":\"sdkf\"}],\"nextLink\":\"wxmnteiwao\"}") .toObject(FirewallRuleListResult.class); - Assertions.assertEquals("kdosvqw", model.value().get(0).properties().startIpAddress()); - Assertions.assertEquals("bmdg", model.value().get(0).properties().endIpAddress()); - Assertions.assertEquals("dfvzwdzuhty", model.nextLink()); + Assertions.assertEquals("gbquxigj", model.value().get(0).properties().startIpAddress()); + Assertions.assertEquals("jgzjaoyfhrtx", model.value().get(0).properties().endIpAddress()); + Assertions.assertEquals("wxmnteiwao", model.nextLink()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulePropertiesTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulePropertiesTests.java index 5ea379f172d5c..ed45da76e05d3 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulePropertiesTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulePropertiesTests.java @@ -13,18 +13,18 @@ public final class FirewallRulePropertiesTests { public void testDeserialize() throws Exception { FirewallRuleProperties model = BinaryData .fromString( - "{\"provisioningState\":\"Updating\",\"startIpAddress\":\"mutduqktaps\",\"endIpAddress\":\"wgcu\"}") + "{\"provisioningState\":\"Updating\",\"startIpAddress\":\"mbe\",\"endIpAddress\":\"ppbhtqqrolfp\"}") .toObject(FirewallRuleProperties.class); - Assertions.assertEquals("mutduqktaps", model.startIpAddress()); - Assertions.assertEquals("wgcu", model.endIpAddress()); + Assertions.assertEquals("mbe", model.startIpAddress()); + Assertions.assertEquals("ppbhtqqrolfp", model.endIpAddress()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FirewallRuleProperties model - = new FirewallRuleProperties().withStartIpAddress("mutduqktaps").withEndIpAddress("wgcu"); + = new FirewallRuleProperties().withStartIpAddress("mbe").withEndIpAddress("ppbhtqqrolfp"); model = BinaryData.fromObject(model).toObject(FirewallRuleProperties.class); - Assertions.assertEquals("mutduqktaps", model.startIpAddress()); - Assertions.assertEquals("wgcu", model.endIpAddress()); + Assertions.assertEquals("mbe", model.startIpAddress()); + Assertions.assertEquals("ppbhtqqrolfp", model.endIpAddress()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesCreateOrUpdateMockTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesCreateOrUpdateMockTests.java index 6e4fea9e8c797..4983c2cc7c0df 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesCreateOrUpdateMockTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesCreateOrUpdateMockTests.java @@ -22,7 +22,7 @@ public final class FirewallRulesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"dnfyhxdeoejzicwi\",\"endIpAddress\":\"sjttgzfbish\"},\"id\":\"khaj\",\"name\":\"eyeam\",\"type\":\"p\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"ibnuqqkpik\",\"endIpAddress\":\"drgvtqagn\"},\"id\":\"ynhijggme\",\"name\":\"fsiarbutr\",\"type\":\"vpnazzm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,13 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); FirewallRule response = manager.firewallRules() - .define("oenkouknvudwti") - .withExistingMongoCluster("gigr", "wburvjxxjnspydpt") - .withProperties(new FirewallRuleProperties().withStartIpAddress("dng").withEndIpAddress("pocipazyxoegu")) + .define("bgsncghkjeszzhb") + .withExistingMongoCluster("uujqgidokgjljyo", "gvcl") + .withProperties( + new FirewallRuleProperties().withStartIpAddress("xfvgxbfsmxne").withEndIpAddress("mpvecxgodebfqk")) .create(); - Assertions.assertEquals("dnfyhxdeoejzicwi", response.properties().startIpAddress()); - Assertions.assertEquals("sjttgzfbish", response.properties().endIpAddress()); + Assertions.assertEquals("ibnuqqkpik", response.properties().startIpAddress()); + Assertions.assertEquals("drgvtqagn", response.properties().endIpAddress()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesGetWithResponseMockTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesGetWithResponseMockTests.java index a84e09f0e4011..5dd43e3237a35 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesGetWithResponseMockTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class FirewallRulesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"InProgress\",\"startIpAddress\":\"bpxjmfl\",\"endIpAddress\":\"vvnchrkcc\"},\"id\":\"wzjuqk\",\"name\":\"rsa\",\"type\":\"iwkuofos\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"mjmwvvjektcx\",\"endIpAddress\":\"enhwlrs\"},\"id\":\"rzpwvlqdqgbiq\",\"name\":\"lihkaetcktvfc\",\"type\":\"vf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); FirewallRule response = manager.firewallRules() - .getWithResponse("ulexxbczwtr", "wiqzbqjvsovmyo", "acspkwl", com.azure.core.util.Context.NONE) + .getWithResponse("noc", "koklya", "uconuqszfkbey", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("bpxjmfl", response.properties().startIpAddress()); - Assertions.assertEquals("vvnchrkcc", response.properties().endIpAddress()); + Assertions.assertEquals("mjmwvvjektcx", response.properties().startIpAddress()); + Assertions.assertEquals("enhwlrs", response.properties().endIpAddress()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesListByMongoClusterMockTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesListByMongoClusterMockTests.java index b755305e634d8..c4b57bed6dc9c 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesListByMongoClusterMockTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/FirewallRulesListByMongoClusterMockTests.java @@ -22,7 +22,7 @@ public final class FirewallRulesListByMongoClusterMockTests { @Test public void testListByMongoCluster() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"startIpAddress\":\"osvexcsonpclhoc\",\"endIpAddress\":\"hslkevleggzf\"},\"id\":\"hfmvfaxkffe\",\"name\":\"ithlvmezyvshxm\",\"type\":\"sbbzo\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"startIpAddress\":\"ttxfvjr\",\"endIpAddress\":\"i\"},\"id\":\"hxepcyvahfnlj\",\"name\":\"yq\",\"type\":\"j\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testListByMongoCluster() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.firewallRules() - .listByMongoCluster("ghsauuimjmvxied", "ugidyjrr", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.firewallRules().listByMongoCluster("nkymuctqhjfbebrj", "xerf", com.azure.core.util.Context.NONE); - Assertions.assertEquals("osvexcsonpclhoc", response.iterator().next().properties().startIpAddress()); - Assertions.assertEquals("hslkevleggzf", response.iterator().next().properties().endIpAddress()); + Assertions.assertEquals("ttxfvjr", response.iterator().next().properties().startIpAddress()); + Assertions.assertEquals("i", response.iterator().next().properties().endIpAddress()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ListConnectionStringsResultInnerTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ListConnectionStringsResultInnerTests.java index de38e58fb7524..c2a4ca98c75b1 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ListConnectionStringsResultInnerTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ListConnectionStringsResultInnerTests.java @@ -11,7 +11,7 @@ public final class ListConnectionStringsResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ListConnectionStringsResultInner model = BinaryData.fromString( - "{\"connectionStrings\":[{\"connectionString\":\"qduujitcjczdz\",\"description\":\"ndhkrw\",\"name\":\"appd\"},{\"connectionString\":\"dkvwrwjfe\",\"description\":\"nhutjeltmrldhugj\",\"name\":\"datqxhocdgeabl\"},{\"connectionString\":\"huticndvkao\",\"description\":\"yiftyhxhuro\",\"name\":\"tyxolniwpwc\"}]}") + "{\"connectionStrings\":[{\"connectionString\":\"uujitcjc\",\"description\":\"zevndhkrwpdappds\",\"name\":\"kvwrwjfeu\"},{\"connectionString\":\"hutje\",\"description\":\"mrldhu\",\"name\":\"zzd\"},{\"connectionString\":\"qxhocdgeablgphut\",\"description\":\"ndv\",\"name\":\"ozwyiftyhxhuro\"},{\"connectionString\":\"tyxolniwpwc\",\"description\":\"jfkgiawxk\",\"name\":\"ypl\"}]}") .toObject(ListConnectionStringsResultInner.class); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCheckNameAvailabilityWithResponseMockTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCheckNameAvailabilityWithResponseMockTests.java index 2b92f58a6e4c8..ace142dde081c 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersCheckNameAvailabilityWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class MongoClustersCheckNameAvailabilityWithResponseMockTests { @Test public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"wqsmbsur\"}"; + String responseStr = "{\"nameAvailable\":true,\"reason\":\"Invalid\",\"message\":\"xw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testCheckNameAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); CheckNameAvailabilityResponse response = manager.mongoClusters() - .checkNameAvailabilityWithResponse("uiuaodsfcpkvxodp", - new CheckNameAvailabilityRequest().withName("zmyzydagf").withType("xbezyiuokktwh"), + .checkNameAvailabilityWithResponse("fsj", + new CheckNameAvailabilityRequest().withName("gzfbishcbk").withType("jdeyeamdpha"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(false, response.nameAvailable()); - Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("wqsmbsur", response.message()); + Assertions.assertEquals(true, response.nameAvailable()); + Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, response.reason()); + Assertions.assertEquals("xw", response.message()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListConnectionStringsWithResponseMockTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListConnectionStringsWithResponseMockTests.java index 931ec0d10aba7..883f7918c082f 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListConnectionStringsWithResponseMockTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/MongoClustersListConnectionStringsWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class MongoClustersListConnectionStringsWithResponseMockTests { @Test public void testListConnectionStringsWithResponse() throws Exception { String responseStr - = "{\"connectionStrings\":[{\"connectionString\":\"hbkuofqwey\",\"description\":\"menevfyexfwh\",\"name\":\"cibvyvdcsitynn\"},{\"connectionString\":\"mdectehfiqscjey\",\"description\":\"hezrkgq\",\"name\":\"jrefovgmkqsle\"},{\"connectionString\":\"vxyqjpkcattpngjc\",\"description\":\"czsqpjhvm\",\"name\":\"jvnysounqe\"},{\"connectionString\":\"noae\",\"description\":\"fhyhltrpmopjmcma\",\"name\":\"okth\"}]}"; + = "{\"connectionStrings\":[{\"connectionString\":\"r\",\"description\":\"sdpydnfyhxdeoejz\",\"name\":\"w\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testListConnectionStringsWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ListConnectionStringsResult response = manager.mongoClusters() - .listConnectionStringsWithResponse("owgujjugwdkcglhs", "azjdyggd", com.azure.core.util.Context.NONE) + .listConnectionStringsWithResponse("xoegukgjnpiucgy", "evqzntypmrbp", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/OperationsListMockTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/OperationsListMockTests.java index 6d424a75211f0..df65cfd3317a8 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/OperationsListMockTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/OperationsListMockTests.java @@ -23,7 +23,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"ecfvmm\",\"isDataAction\":false,\"display\":{\"provider\":\"xlzevgbmqjqabcy\",\"resource\":\"ivkwlzuvccfwnfnb\",\"operation\":\"fionl\",\"description\":\"x\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"bsureximo\",\"isDataAction\":false,\"display\":{\"provider\":\"sfksy\",\"resource\":\"dystkiiuxhqyud\",\"operation\":\"rrqnbpoczvyifqrv\",\"description\":\"vjsllrmvvdfw\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionPropertiesTests.java index 02c1c79ef2888..0d2bd8e6de4a1 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionPropertiesTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionPropertiesTests.java @@ -15,12 +15,12 @@ public final class PrivateEndpointConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionProperties model = BinaryData.fromString( - "{\"groupIds\":[\"inzgvfcj\"],\"privateEndpoint\":{\"id\":\"oxxjtfelluwf\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"np\",\"actionsRequired\":\"fpjkjlxofp\"},\"provisioningState\":\"Succeeded\"}") + "{\"groupIds\":[\"wzo\",\"xjtfelluwfzit\",\"np\",\"qfpjk\"],\"privateEndpoint\":{\"id\":\"ofpdvh\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"ypininm\",\"actionsRequired\":\"huyb\"},\"provisioningState\":\"Creating\"}") .toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("np", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("fpjkjlxofp", model.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("ypininm", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("huyb", model.privateLinkServiceConnectionState().actionsRequired()); } @org.junit.jupiter.api.Test @@ -28,13 +28,13 @@ public void testSerialize() throws Exception { PrivateEndpointConnectionProperties model = new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("np") - .withActionsRequired("fpjkjlxofp")); + new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) + .withDescription("ypininm") + .withActionsRequired("huyb")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("np", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("fpjkjlxofp", model.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("ypininm", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("huyb", model.privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionResourceInnerTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionResourceInnerTests.java index c112f8f3b62fa..3cf1f4441e71c 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionResourceInnerTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionResourceInnerTests.java @@ -16,12 +16,13 @@ public final class PrivateEndpointConnectionResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionResourceInner model = BinaryData.fromString( - "{\"properties\":{\"groupIds\":[\"bl\"],\"privateEndpoint\":{\"id\":\"pbtoqcjmkl\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"qidtqajzyu\",\"actionsRequired\":\"kudjkrlkhb\"},\"provisioningState\":\"Creating\"},\"id\":\"pgzgq\",\"name\":\"xzlocxscp\",\"type\":\"ierhhbcsglummaj\"}") + "{\"properties\":{\"groupIds\":[\"igdtopbob\",\"og\",\"m\",\"w\"],\"privateEndpoint\":{\"id\":\"a\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"ayvvtpgvdf\",\"actionsRequired\":\"otkftutqxlngx\"},\"provisioningState\":\"Failed\"},\"id\":\"ugnxkrxdqmi\",\"name\":\"tthzrvqd\",\"type\":\"abhjybi\"}") .toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("qidtqajzyu", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("kudjkrlkhb", model.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("ayvvtpgvdf", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("otkftutqxlngx", + model.properties().privateLinkServiceConnectionState().actionsRequired()); } @org.junit.jupiter.api.Test @@ -30,13 +31,14 @@ public void testSerialize() throws Exception { = new PrivateEndpointConnectionResourceInner() .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.REJECTED) - .withDescription("qidtqajzyu") - .withActionsRequired("kudjkrlkhb"))); + .withStatus(PrivateEndpointServiceConnectionStatus.PENDING) + .withDescription("ayvvtpgvdf") + .withActionsRequired("otkftutqxlngx"))); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("qidtqajzyu", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("kudjkrlkhb", model.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("ayvvtpgvdf", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("otkftutqxlngx", + model.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionResourceListResultTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionResourceListResultTests.java index 2fc7a869d33c3..da69d4d69117b 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionResourceListResultTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionResourceListResultTests.java @@ -13,14 +13,14 @@ public final class PrivateEndpointConnectionResourceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupIds\":[\"kfthwxmntei\",\"aop\",\"km\"],\"privateEndpoint\":{\"id\":\"mmxdcu\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"rpymzidnsez\",\"actionsRequired\":\"tbzsgfyccs\"},\"provisioningState\":\"Failed\"},\"id\":\"dwzjeiach\",\"name\":\"oosflnr\",\"type\":\"sfqpteehz\"},{\"properties\":{\"groupIds\":[\"yqrimzin\"],\"privateEndpoint\":{\"id\":\"wjdk\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"od\",\"actionsRequired\":\"hc\"},\"provisioningState\":\"Creating\"},\"id\":\"hjtckwhd\",\"name\":\"oifiyipjxsqwpgr\",\"type\":\"bznorcjxvsnby\"}],\"nextLink\":\"abnmocpcyshu\"}") + "{\"value\":[{\"properties\":{\"groupIds\":[\"jcmmxdcufufsrp\",\"mzidnsezcxtb\"],\"privateEndpoint\":{\"id\":\"fycc\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"mdwzjeiachboo\",\"actionsRequired\":\"lnrosfqp\"},\"provisioningState\":\"Deleting\"},\"id\":\"zzvypyqrimzinp\",\"name\":\"swjdkirso\",\"type\":\"dqxhcrmnohjtckwh\"},{\"properties\":{\"groupIds\":[\"fiyipjxsqwpgrj\",\"znorcj\",\"vsnb\",\"xqabnmocpcysh\"],\"privateEndpoint\":{\"id\":\"afbljjgpbtoqcjmk\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"bqidtqaj\",\"actionsRequired\":\"ulpkudjkrl\"},\"provisioningState\":\"Failed\"},\"id\":\"hfepgzgqex\",\"name\":\"locx\",\"type\":\"c\"},{\"properties\":{\"groupIds\":[\"rhhbcs\",\"l\",\"mmajtjaodx\"],\"privateEndpoint\":{\"id\":\"bdxkqpxokaj\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"imexgstxgcpodgma\",\"actionsRequired\":\"r\"},\"provisioningState\":\"Creating\"},\"id\":\"wzrlovmclwhij\",\"name\":\"oejctbzaqsqsy\",\"type\":\"bkbfkgukdkex\"},{\"properties\":{\"groupIds\":[\"fmxa\"],\"privateEndpoint\":{\"id\":\"jpgd\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"jjxhvpmo\",\"actionsRequired\":\"xhdzxibqeojnx\"},\"provisioningState\":\"Failed\"},\"id\":\"ddntwndei\",\"name\":\"btwnpzaoqvuhrhcf\",\"type\":\"cyddglmjthjqk\"}],\"nextLink\":\"yeicxmqciwqvhk\"}") .toObject(PrivateEndpointConnectionResourceListResult.class); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("rpymzidnsez", + Assertions.assertEquals("mdwzjeiachboo", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("tbzsgfyccs", + Assertions.assertEquals("lnrosfqp", model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("abnmocpcyshu", model.nextLink()); + Assertions.assertEquals("yeicxmqciwqvhk", model.nextLink()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionTests.java index a702fbb1f9324..3d2f4f1703ddd 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionTests.java @@ -13,12 +13,12 @@ public final class PrivateEndpointConnectionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnection model = BinaryData.fromString( - "{\"properties\":{\"groupIds\":[\"cmdv\",\"jhulsuuvmkjo\",\"k\",\"wfndiodjpsl\"],\"privateEndpoint\":{\"id\":\"dpvwryoqpsoaccta\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"j\",\"actionsRequired\":\"hbcryffdfdosyge\"},\"provisioningState\":\"Failed\"},\"id\":\"jakhmsbzjh\",\"name\":\"rzevdphlxaol\",\"type\":\"hqtrgqjbpf\"}") + "{\"properties\":{\"groupIds\":[\"dvpjhulsuuvmk\",\"ozkrwfndiodjpslw\",\"jdpvwryo\"],\"privateEndpoint\":{\"id\":\"oacctaza\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"ahbc\",\"actionsRequired\":\"ffdfdosygexpa\"},\"provisioningState\":\"Deleting\"},\"id\":\"hmsbzjhcrzevdp\",\"name\":\"lxaolthqtrgqjbp\",\"type\":\"zfsinzgvf\"}") .toObject(PrivateEndpointConnection.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("j", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("hbcryffdfdosyge", + Assertions.assertEquals("ahbc", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("ffdfdosygexpa", model.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsCreateMockTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsCreateMockTests.java index f80e86ade435f..c16ca20e32220 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsCreateMockTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsCreateMockTests.java @@ -25,7 +25,7 @@ public final class PrivateEndpointConnectionsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"groupIds\":[\"nuqqkpikadrgvt\",\"agnb\",\"ynhijggme\"],\"privateEndpoint\":{\"id\":\"iarbutrcvpna\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"jrunmpxtt\",\"actionsRequired\":\"hrbnlankxmyskpbh\"},\"provisioningState\":\"Succeeded\"},\"id\":\"kcxywnyt\",\"name\":\"rsyn\",\"type\":\"qidybyx\"}"; + = "{\"properties\":{\"groupIds\":[\"twrupqsxvnm\"],\"privateEndpoint\":{\"id\":\"kvceoveilovnotyf\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"jbkcnxdhbttkph\",\"actionsRequired\":\"pnvjtoqnermclf\"},\"provisioningState\":\"Succeeded\"},\"id\":\"oxuscrpabgyepsbj\",\"name\":\"azqugxywpmueefj\",\"type\":\"wfqkquj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,19 +36,20 @@ public void testCreate() throws Exception { PrivateEndpointConnectionResource response = manager.privateEndpointConnections() - .define("ljyoxgvcltb") - .withExistingMongoCluster("jky", "xjvuujqgidokg") + .define("nkjzkdeslpvlop") + .withExistingMongoCluster("yuguosvmkfssx", "ukkfplgmgs") .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("ec") - .withActionsRequired("odebfqkkrbmpu"))) + .withDescription("txp") + .withActionsRequired("ebtfhvpesap"))) .create(); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("jrunmpxtt", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("hrbnlankxmyskpbh", + Assertions.assertEquals("jbkcnxdhbttkph", + response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("pnvjtoqnermclf", response.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java index adb45eff8c8f2..2e0adf6a38103 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"groupIds\":[\"pwvlqdq\"],\"privateEndpoint\":{\"id\":\"qylihkaetckt\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"vf\",\"actionsRequired\":\"kymuctqhjfbebr\"},\"provisioningState\":\"Succeeded\"},\"id\":\"rfuwutt\",\"name\":\"xfvjrbirp\",\"type\":\"xepcyvahfn\"}"; + = "{\"properties\":{\"groupIds\":[\"lmuzy\",\"xaepdkzjancuxr\",\"d\",\"bavxbniwdjswzt\"],\"privateEndpoint\":{\"id\":\"pgn\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"hpzxbzpfzab\",\"actionsRequired\":\"cuh\"},\"provisioningState\":\"Succeeded\"},\"id\":\"tyq\",\"name\":\"klbb\",\"type\":\"vplwzbhv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateEndpointConnectionResource response = manager.privateEndpointConnections() - .getWithResponse("uconuqszfkbey", "ewrmjmwvvjektc", "senhwlrs", com.azure.core.util.Context.NONE) + .getWithResponse("edckzywbiexzfey", "eaxib", "ujwb", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("vf", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("kymuctqhjfbebr", - response.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("hpzxbzpfzab", response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("cuh", response.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsListByMongoClusterMockTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsListByMongoClusterMockTests.java index 3e18244ca20ea..6cd3bac1c28d4 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsListByMongoClusterMockTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointConnectionsListByMongoClusterMockTests.java @@ -23,7 +23,7 @@ public final class PrivateEndpointConnectionsListByMongoClusterMockTests { @Test public void testListByMongoCluster() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupIds\":[\"zbinjeputtm\",\"ywnuzoq\",\"tiyqzrnkcqv\"],\"privateEndpoint\":{\"id\":\"whzlsicohoq\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"lryav\",\"actionsRequired\":\"heun\"},\"provisioningState\":\"Failed\"},\"id\":\"gyxzk\",\"name\":\"noc\",\"type\":\"koklya\"}]}"; + = "{\"value\":[{\"properties\":{\"groupIds\":[\"ankxmyskpbhenb\"],\"privateEndpoint\":{\"id\":\"xywnytnrsynlqidy\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"zfcl\",\"actionsRequired\":\"axdbabph\"},\"provisioningState\":\"Failed\"},\"id\":\"lfktsths\",\"name\":\"cocmnyyaztt\",\"type\":\"twwrqp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,13 +33,13 @@ public void testListByMongoCluster() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.privateEndpointConnections() - .listByMongoCluster("agalpbuxwgipwhon", "wkgshwa", com.azure.core.util.Context.NONE); + .listByMongoCluster("jrunmpxtt", "bh", com.azure.core.util.Context.NONE); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, response.iterator().next().properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("lryav", + Assertions.assertEquals("zfcl", response.iterator().next().properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("heun", + Assertions.assertEquals("axdbabph", response.iterator().next().properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointTests.java index 7c0105dd64832..68a38a5797ade 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateEndpointTests.java @@ -10,7 +10,7 @@ public final class PrivateEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"fxxypininmayhuy\"}").toObject(PrivateEndpoint.class); + PrivateEndpoint model = BinaryData.fromString("{\"id\":\"depoog\"}").toObject(PrivateEndpoint.class); } @org.junit.jupiter.api.Test diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourceInnerTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourceInnerTests.java index e09b918d5d059..1fba2cf243f89 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourceInnerTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourceInnerTests.java @@ -12,8 +12,8 @@ public final class PrivateLinkResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceInner model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"exhd\",\"requiredMembers\":[\"bqe\"],\"requiredZoneNames\":[\"xqbzvddntwnd\",\"icbtwnpzao\",\"vuhrhcffcyddgl\"]},\"id\":\"t\",\"name\":\"jqkwpyeicx\",\"type\":\"qciwqvhkhixuigdt\"}") + "{\"properties\":{\"groupId\":\"xhbkuofq\",\"requiredMembers\":[\"kh\"],\"requiredZoneNames\":[\"evfyexfwhybcib\"]},\"id\":\"vdcsitynn\",\"name\":\"amdecte\",\"type\":\"f\"}") .toObject(PrivateLinkResourceInner.class); - Assertions.assertEquals("xqbzvddntwnd", model.properties().requiredZoneNames().get(0)); + Assertions.assertEquals("evfyexfwhybcib", model.properties().requiredZoneNames().get(0)); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourceListResultTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourceListResultTests.java index 43d54ec620449..b505b922c2efd 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourceListResultTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourceListResultTests.java @@ -12,9 +12,9 @@ public final class PrivateLinkResourceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"dxob\",\"requiredMembers\":[\"xkqpxo\",\"ajionpimexgstxg\"],\"requiredZoneNames\":[\"dg\",\"aajrm\",\"djwzrlov\",\"clwhijcoejctbz\"]},\"id\":\"s\",\"name\":\"sycbkbfk\",\"type\":\"ukdkexxppofmxa\"}],\"nextLink\":\"fjpgddtocjjxhvp\"}") + "{\"value\":[{\"properties\":{\"groupId\":\"qfbow\",\"requiredMembers\":[\"nyktzlcuiy\",\"gqywgndrv\",\"nhzgpphrcgyn\",\"ocpecfvmmco\"],\"requiredZoneNames\":[\"xlzevgbmqjqabcy\",\"mivkwlzuvcc\",\"wnfnbacf\"]},\"id\":\"nlebxetqgtzxd\",\"name\":\"nqbqqwxr\",\"type\":\"feallnwsu\"},{\"properties\":{\"groupId\":\"njampm\",\"requiredMembers\":[\"zscxaqwo\",\"chcbonqvpkvlrxnj\"],\"requiredZoneNames\":[\"eipheoflokeyy\",\"enjbdlwtgrhp\"]},\"id\":\"pj\",\"name\":\"masxazjpqyegu\",\"type\":\"lhbxxhejjzzvdud\"},{\"properties\":{\"groupId\":\"slfhotwm\",\"requiredMembers\":[\"pwlbjnpg\",\"cftadeh\",\"nltyfsoppusuesnz\"],\"requiredZoneNames\":[\"jbavorxzdm\"]},\"id\":\"ctbqvudwx\",\"name\":\"ndnvo\",\"type\":\"gujjugwdkcglh\"}],\"nextLink\":\"azjdyggd\"}") .toObject(PrivateLinkResourceListResult.class); - Assertions.assertEquals("dg", model.value().get(0).properties().requiredZoneNames().get(0)); - Assertions.assertEquals("fjpgddtocjjxhvp", model.nextLink()); + Assertions.assertEquals("xlzevgbmqjqabcy", model.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("azjdyggd", model.nextLink()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourcePropertiesTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourcePropertiesTests.java index 9c907cd9aeb6e..922a98bea656b 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourcePropertiesTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkResourcePropertiesTests.java @@ -11,9 +11,9 @@ public final class PrivateLinkResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PrivateLinkResourceProperties model = BinaryData - .fromString("{\"groupId\":\"bob\",\"requiredMembers\":[\"hm\",\"w\"],\"requiredZoneNames\":[\"a\"]}") + PrivateLinkResourceProperties model = BinaryData.fromString( + "{\"groupId\":\"scjeypv\",\"requiredMembers\":[\"rkgqhcjrefo\",\"gm\",\"qsl\",\"yyvxyqjpkcattpn\"],\"requiredZoneNames\":[\"rcczsqpjhvmd\"]}") .toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("a", model.requiredZoneNames().get(0)); + Assertions.assertEquals("rcczsqpjhvmd", model.requiredZoneNames().get(0)); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkServiceConnectionStateTests.java index f7380066e61dc..b9511354d9306 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkServiceConnectionStateTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinkServiceConnectionStateTests.java @@ -13,22 +13,22 @@ public final class PrivateLinkServiceConnectionStateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkServiceConnectionState model = BinaryData - .fromString("{\"status\":\"Approved\",\"description\":\"odepoogin\",\"actionsRequired\":\"amiheognarxz\"}") + .fromString("{\"status\":\"Approved\",\"description\":\"amiheognarxz\",\"actionsRequired\":\"heotusiv\"}") .toObject(PrivateLinkServiceConnectionState.class); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, model.status()); - Assertions.assertEquals("odepoogin", model.description()); - Assertions.assertEquals("amiheognarxz", model.actionsRequired()); + Assertions.assertEquals("amiheognarxz", model.description()); + Assertions.assertEquals("heotusiv", model.actionsRequired()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateLinkServiceConnectionState model = new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("odepoogin") - .withActionsRequired("amiheognarxz"); + .withDescription("amiheognarxz") + .withActionsRequired("heotusiv"); model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, model.status()); - Assertions.assertEquals("odepoogin", model.description()); - Assertions.assertEquals("amiheognarxz", model.actionsRequired()); + Assertions.assertEquals("amiheognarxz", model.description()); + Assertions.assertEquals("heotusiv", model.actionsRequired()); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinksListByMongoClusterMockTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinksListByMongoClusterMockTests.java index f28dfbe7bb926..d802afd82a30b 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinksListByMongoClusterMockTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/PrivateLinksListByMongoClusterMockTests.java @@ -22,7 +22,7 @@ public final class PrivateLinksListByMongoClusterMockTests { @Test public void testListByMongoCluster() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"tsthsucocm\",\"requiredMembers\":[\"azt\",\"bt\",\"wrqpue\",\"ckzywbiexzfeyue\"],\"requiredZoneNames\":[\"bxu\"]},\"id\":\"bhqwalmuzyoxa\",\"name\":\"pdkzjancuxr\",\"type\":\"d\"}]}"; + = "{\"value\":[{\"properties\":{\"groupId\":\"cmgyud\",\"requiredMembers\":[\"lmoyrx\",\"wfudwpzntxhdzhl\"],\"requiredZoneNames\":[\"bh\",\"kfrlhrxsbky\",\"pycanuzbpz\"]},\"id\":\"fkuwbcrnwbmehhse\",\"name\":\"v\",\"type\":\"us\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testListByMongoCluster() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.privateLinks().listByMongoCluster("zfcl", "aaxdbabphlwrq", com.azure.core.util.Context.NONE); + = manager.privateLinks().listByMongoCluster("dsuyonobgla", "cq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("bxu", response.iterator().next().properties().requiredZoneNames().get(0)); + Assertions.assertEquals("bh", response.iterator().next().properties().requiredZoneNames().get(0)); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ReplicationPropertiesTests.java b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ReplicationPropertiesTests.java index 30db951954b59..07dfbc068f17e 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ReplicationPropertiesTests.java +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/src/test/java/com/azure/resourcemanager/mongocluster/generated/ReplicationPropertiesTests.java @@ -11,8 +11,7 @@ public final class ReplicationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReplicationProperties model = BinaryData - .fromString( - "{\"sourceResourceId\":\"heotusiv\",\"role\":\"Primary\",\"replicationState\":\"Provisioning\"}") + .fromString("{\"sourceResourceId\":\"v\",\"role\":\"GeoAsyncReplica\",\"replicationState\":\"Active\"}") .toObject(ReplicationProperties.class); } } diff --git a/sdk/mongocluster/azure-resourcemanager-mongocluster/tsp-location.yaml b/sdk/mongocluster/azure-resourcemanager-mongocluster/tsp-location.yaml index ee73a0cd70d3a..6c99cf6a72162 100644 --- a/sdk/mongocluster/azure-resourcemanager-mongocluster/tsp-location.yaml +++ b/sdk/mongocluster/azure-resourcemanager-mongocluster/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/mongocluster/DocumentDB.MongoCluster.Management -commit: 07bdede4651ce2ea0e4039d76e81a69df23a3d6e +commit: 866ab9d8f57433e6277179d104f515d420b2e0c0 repo: Azure/azure-rest-api-specs additionalDirectories: